Lines Matching defs:avctx

56 static int8_t vaapi_av1_get_bit_depth_idx(AVCodecContext *avctx)
58 AV1DecContext *s = avctx->priv_data;
67 av_log(avctx, AV_LOG_ERROR,
74 static int vaapi_av1_decode_init(AVCodecContext *avctx)
76 VAAPIAV1DecContext *ctx = avctx->internal->hwaccel_priv_data;
80 av_log(avctx, AV_LOG_ERROR,
88 av_log(avctx, AV_LOG_ERROR,
95 return ff_vaapi_decode_init(avctx);
98 static int vaapi_av1_decode_uninit(AVCodecContext *avctx)
100 VAAPIAV1DecContext *ctx = avctx->internal->hwaccel_priv_data;
103 ff_thread_release_buffer(avctx, ctx->tmp_frame);
108 ff_thread_release_buffer(avctx, ctx->ref_tab[i].frame);
112 return ff_vaapi_decode_uninit(avctx);
116 static int vaapi_av1_start_frame(AVCodecContext *avctx,
120 AV1DecContext *s = avctx->priv_data;
125 VAAPIAV1DecContext *ctx = avctx->internal->hwaccel_priv_data;
129 int apply_grain = !(avctx->export_side_data & AV_CODEC_EXPORT_DATA_FILM_GRAIN) && film_grain->apply_grain;
135 bit_depth_idx = vaapi_av1_get_bit_depth_idx(avctx);
141 ff_thread_release_buffer(avctx, ctx->tmp_frame);
142 err = ff_thread_get_buffer(avctx, ctx->tmp_frame, AV_GET_BUFFER_FLAG_REF);
198 !(avctx->export_side_data & AV_CODEC_EXPORT_DATA_FILM_GRAIN),
356 err = ff_vaapi_decode_make_param_buffer(avctx, pic,
365 ff_vaapi_decode_cancel(avctx, pic);
369 static int vaapi_av1_end_frame(AVCodecContext *avctx)
371 const AV1DecContext *s = avctx->priv_data;
375 VAAPIAV1DecContext *ctx = avctx->internal->hwaccel_priv_data;
377 int apply_grain = !(avctx->export_side_data & AV_CODEC_EXPORT_DATA_FILM_GRAIN) && film_grain->apply_grain;
379 ret = ff_vaapi_decode_issue(avctx, pic);
386 ff_thread_release_buffer(avctx, ctx->ref_tab[i].frame);
402 static int vaapi_av1_decode_slice(AVCodecContext *avctx,
406 const AV1DecContext *s = avctx->priv_data;
424 err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &slice_param,
429 ff_vaapi_decode_cancel(avctx, pic);