Lines Matching defs:slice
276 int slice, nslices;
286 /* Header + at least one slice (4) */
352 /* Slice height for all but the last slice. */
357 /* First slice offset and remaining data. */
366 /* Allocate slice data. */
370 av_log(avctx, AV_LOG_ERROR, "Could not allocate slice data.\n");
375 for (slice = 0; slice < nslices; slice++) {
376 unsigned slice_off = AV_RB32(src + tsize + FIC_HEADER_SIZE + slice * 4);
378 int y_off = ctx->slice_h * slice;
382 * Either read the slice size, or consume all data left.
385 if (slice == nslices - 1) {
389 slice_size = AV_RB32(src + tsize + FIC_HEADER_SIZE + slice * 4 + 4);
399 ctx->slice_data[slice].src = sdata + slice_off;
400 ctx->slice_data[slice].src_size = slice_size;
401 ctx->slice_data[slice].slice_h = slice_h;
402 ctx->slice_data[slice].y_off = y_off;
411 for (slice = 0; slice < nslices; slice++) {
412 if (ctx->slice_data[slice].p_frame) {