Lines Matching defs:avctx
252 static int vaapi_vc1_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size)
254 const VC1Context *v = avctx->priv_data;
276 .max_b_frames = s->avctx->max_b_frames,
279 .coded_width = s->avctx->coded_width,
280 .coded_height = s->avctx->coded_height,
384 err = ff_vaapi_decode_make_param_buffer(avctx, pic,
435 err = ff_vaapi_decode_make_param_buffer(avctx, pic,
445 ff_vaapi_decode_cancel(avctx, pic);
449 static int vaapi_vc1_end_frame(AVCodecContext *avctx)
451 VC1Context *v = avctx->priv_data;
456 ret = ff_vaapi_decode_issue(avctx, pic);
460 ff_mpeg_draw_horiz_band(s, 0, s->avctx->height);
466 static int vaapi_vc1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size)
468 const VC1Context *v = avctx->priv_data;
476 if (avctx->codec_id == AV_CODEC_ID_VC1 && IS_MARKER(AV_RB32(buffer))) {
482 mb_height = avctx->coded_height + 31 >> 5;
484 mb_height = avctx->coded_height + 15 >> 4;
494 err = ff_vaapi_decode_make_slice_buffer(avctx, pic,
498 ff_vaapi_decode_cancel(avctx, pic);