[FFmpeg-devel] [PATCH] avfilter/tonemap_vaapi: pass filter parameters to VA parameter buffer

Sun, Xinpeng xinpeng.sun at intel.com
Mon Feb 10 17:45:52 EET 2020


> -----Original Message-----
> From: Sun, Xinpeng <xinpeng.sun at intel.com>
> Sent: Friday, January 17, 2020 11:57 AM
> To: ffmpeg-devel at ffmpeg.org
> Cc: Sun, Xinpeng <xinpeng.sun at intel.com>
> Subject: [PATCH] avfilter/tonemap_vaapi: pass filter parameters to VA
> parameter buffer
> 
> Signed-off-by: Xinpeng Sun <xinpeng.sun at intel.com>
> ---
>  libavfilter/vf_tonemap_vaapi.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/libavfilter/vf_tonemap_vaapi.c b/libavfilter/vf_tonemap_vaapi.c
> index 2f41b90424..540d656dca 100644
> --- a/libavfilter/vf_tonemap_vaapi.c
> +++ b/libavfilter/vf_tonemap_vaapi.c
> @@ -296,6 +296,9 @@ static int tonemap_vaapi_filter_frame(AVFilterLink
> *inlink, AVFrame *input_frame
>      if (err < 0)
>          goto fail;
> 
> +    params.filters     = &vpp_ctx->filter_buffers[0];
> +    params.num_filters = vpp_ctx->nb_filter_buffers;
> +
>      err = ff_vaapi_vpp_render_picture(avctx, &params, output_frame);
>      if (err < 0)
>          goto fail;
> --
> 2.17.1

Kindly Ping.

Thx.



More information about the ffmpeg-devel mailing list