[FFmpeg-devel] avfilter/tonemap_vaapi: pass filter parameters to VA parameter buffer
Checks
Context |
Check |
Description |
andriy/ffmpeg-patchwork |
success
|
Make fate finished
|
Commit Message
Signed-off-by: Xinpeng Sun <xinpeng.sun@intel.com>
---
libavfilter/vf_tonemap_vaapi.c | 3 +++
1 file changed, 3 insertions(+)
Comments
> -----Original Message-----
> From: Sun, Xinpeng <xinpeng.sun@intel.com>
> Sent: Friday, January 17, 2020 11:57 AM
> To: ffmpeg-devel@ffmpeg.org
> Cc: Sun, Xinpeng <xinpeng.sun@intel.com>
> Subject: [PATCH] avfilter/tonemap_vaapi: pass filter parameters to VA
> parameter buffer
>
> Signed-off-by: Xinpeng Sun <xinpeng.sun@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, ¶ms, output_frame);
> if (err < 0)
> goto fail;
> --
> 2.17.1
Kindly Ping.
Thx.
@@ -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, ¶ms, output_frame);
if (err < 0)
goto fail;