Lines Matching refs:ctx
63 static void vp9_raw_reorder_clear_slot(VP9RawReorderContext *ctx, int s)
65 if (ctx->slot[s]) {
66 ctx->slot[s]->slots &= ~(1 << s);
67 if (ctx->slot[s]->slots == 0)
68 vp9_raw_reorder_frame_free(&ctx->slot[s]);
70 ctx->slot[s] = NULL;
175 VP9RawReorderContext *ctx = bsf->priv_data;
181 frame = ctx->slot[s];
279 VP9RawReorderContext *ctx = bsf->priv_data;
284 if (ctx->next_frame) {
285 frame = ctx->next_frame;
315 frame->sequence = ++ctx->sequence;
336 ctx->next_frame = frame;
342 if (ctx->slot[s] && ctx->slot[s]->needs_display &&
343 ctx->slot[s]->slots == (1 << s)) {
348 err = vp9_raw_reorder_make_output(bsf, out, ctx->slot[s]);
355 vp9_raw_reorder_clear_slot(ctx, s);
360 vp9_raw_reorder_clear_slot(ctx, s);
366 ctx->slot[s] = frame;
375 ctx->next_frame = NULL;
380 ctx->next_frame = NULL;
385 ctx->next_frame = NULL;
395 VP9RawReorderContext *ctx = bsf->priv_data;
398 vp9_raw_reorder_clear_slot(ctx, s);
399 vp9_raw_reorder_frame_free(&ctx->next_frame);
400 ctx->sequence = 0;