Lines Matching refs:frames

56     ThreadFrame     frames     [16];
114 for (i = 0; i < FF_ARRAY_ELEMS(ctx->frames); i++) {
115 if (ctx->frames[i].f)
116 ff_thread_release_ext_buffer(avctx, &ctx->frames[i]);
117 av_frame_free(&ctx->frames[i].f);
144 for (i = 0; i < FF_ARRAY_ELEMS(ctx->frames); i++) {
145 ctx->frames[i].f = av_frame_alloc();
146 if (!ctx->frames[i].f)
167 for (i = 0; i < FF_ARRAY_ELEMS(dst->frames); i++) {
168 ff_thread_release_ext_buffer(avctx, &dst->frames[i]);
169 if (i != src->next_cur_index && src->frames[i].f->data[0]) {
170 ret = ff_thread_ref_frame(&dst->frames[i], &src->frames[i]);
270 const int stride = ctx->frames[ctx->cur_index ].f->linesize[plane];
271 const uint8_t *src = ctx->frames[ctx->prev_index].f->data[plane];
272 uint8_t *dst = ctx->frames[ctx->cur_index ].f->data[plane];
282 * frames preceding the previous. (get_bits1 == 1)
295 uint8_t *p = ctx->frames[index].f->data[0];
298 ff_thread_await_progress(&ctx->frames[index],
301 ctx->frames[ctx->prev_index].f->data[plane];
309 ff_thread_await_progress(&ctx->frames[ctx->prev_index],
319 ff_thread_report_progress(&ctx->frames[ctx->cur_index],
329 * way Mimic encodes frames.
394 if (is_pframe && !ctx->frames[ctx->prev_index].f->data[0]) {
399 ff_thread_release_ext_buffer(avctx, &ctx->frames[ctx->cur_index]);
400 ctx->frames[ctx->cur_index].f->pict_type = is_pframe ? AV_PICTURE_TYPE_P :
402 if ((res = ff_thread_get_ext_buffer(avctx, &ctx->frames[ctx->cur_index],
421 ff_thread_report_progress(&ctx->frames[ctx->cur_index], INT_MAX, 0);
424 ff_thread_release_ext_buffer(avctx, &ctx->frames[ctx->cur_index]);
428 if ((res = av_frame_ref(rframe, ctx->frames[ctx->cur_index].f)) < 0)