From b46a77f19ddc4b2b5fa3187835ceb602a5244e24 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 19 Oct 2017 16:38:20 +0200 Subject: lavc: external hardware frame pool initialization This adds a new API, which allows the API user to query the required AVHWFramesContext parameters. This also reduces code duplication across the hwaccels by introducing ff_decode_get_hw_frames_ctx(), which uses the new API function. It takes care of initializing the hw_frames_ctx if needed, and does additional error handling and API usage checking. Support for VDA and Cuvid missing. Signed-off-by: Anton Khirnov --- libavcodec/vaapi_hevc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/vaapi_hevc.c') diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c index 4b4d8782ac..085d84142d 100644 --- a/libavcodec/vaapi_hevc.c +++ b/libavcodec/vaapi_hevc.c @@ -434,6 +434,7 @@ AVHWAccel ff_hevc_vaapi_hwaccel = { .frame_priv_data_size = sizeof(VAAPIDecodePictureHEVC), .init = ff_vaapi_decode_init, .uninit = ff_vaapi_decode_uninit, + .frame_params = ff_vaapi_common_frame_params, .priv_data_size = sizeof(VAAPIDecodeContext), .caps_internal = HWACCEL_CAP_ASYNC_SAFE, }; -- cgit v1.2.3