Lines Matching defs:avctx
117 static int vaapi_hevc_start_frame(AVCodecContext *avctx,
121 const HEVCContext *h = avctx->priv_data;
221 if (avctx->profile == FF_PROFILE_HEVC_REXT) {
249 pic_param_size = avctx->profile == FF_PROFILE_HEVC_REXT ?
252 err = ff_vaapi_decode_make_param_buffer(avctx, &pic->pic,
281 err = ff_vaapi_decode_make_param_buffer(avctx, &pic->pic,
291 ff_vaapi_decode_cancel(avctx, &pic->pic);
295 static int vaapi_hevc_end_frame(AVCodecContext *avctx)
297 const HEVCContext *h = avctx->priv_data;
302 int slice_param_size = avctx->profile == FF_PROFILE_HEVC_REXT ?
307 ret = ff_vaapi_decode_make_slice_buffer(avctx, &pic->pic,
315 ret = ff_vaapi_decode_issue(avctx, &pic->pic);
321 ff_vaapi_decode_cancel(avctx, &pic->pic);
325 static void fill_pred_weight_table(AVCodecContext *avctx,
332 int is_rext = avctx->profile >= FF_PROFILE_HEVC_REXT;
335 if (avctx->profile >= FF_PROFILE_HEVC_REXT)
336 av_log(avctx, AV_LOG_WARNING, "Please consider to update to VAAPI 1.2.0 "
407 static int vaapi_hevc_decode_slice(AVCodecContext *avctx,
411 const HEVCContext *h = avctx->priv_data;
416 int slice_param_size = avctx->profile == FF_PROFILE_HEVC_REXT ?
425 err = ff_vaapi_decode_make_slice_buffer(avctx, &pic->pic,
431 ff_vaapi_decode_cancel(avctx, &pic->pic);
478 fill_pred_weight_table(avctx, h, sh, last_slice_param);
481 if (avctx->profile == FF_PROFILE_HEVC_REXT) {
549 VAProfile ff_vaapi_parse_hevc_rext_profile(AVCodecContext *avctx)
551 const HEVCContext *h = avctx->priv_data;
563 av_log(avctx, AV_LOG_WARNING, "HEVC profile is not found.\n");
566 av_log(avctx, AV_LOG_VERBOSE, "HEVC profile %s is found.\n", profile->name);
580 av_log(avctx, AV_LOG_WARNING, "HEVC profile %s is "
585 if (avctx->hwaccel_flags & AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH) {