Lines Matching defs:slice
39 * For HQA it just happens that each slice is on every 8th macroblock,
124 int slice, start_off, next_off, i, ret;
150 for (slice = 0; slice < profile->num_slices; slice++) {
152 next_off = profile->tab_h * (slice + 1) / profile->num_slices;
155 if (slice_off[slice] < (profile->num_slices + 1) * 3 ||
156 slice_off[slice] >= slice_off[slice + 1] ||
157 slice_off[slice + 1] > data_size) {
159 "Invalid slice size %"SIZE_SPECIFIER".\n", data_size);
162 init_get_bits(&gb, src + slice_off[slice],
163 (slice_off[slice + 1] - slice_off[slice]) * 8);
169 "Error decoding macroblock %d at slice %d.\n", i, slice);
248 int i, slice, ret;
285 for (slice = 0; slice < num_slices; slice++) {
286 if (slice_off[slice] < (num_slices + 1) * 3 ||
287 slice_off[slice] >= slice_off[slice + 1] ||
288 slice_off[slice + 1] > data_size) {
290 "Invalid slice size %"SIZE_SPECIFIER".\n", data_size);
293 init_get_bits(&gb, src + slice_off[slice],
294 (slice_off[slice + 1] - slice_off[slice]) * 8);
296 ret = hqa_decode_slice(ctx, pic, &gb, quant, slice, width, height);
339 /* HQ defines dimensions and number of slices, and thus slice traversal