diff mbox series

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

Message ID 20200117035650.16416-1-xinpeng.sun@intel.com
State New
Headers show
Series [FFmpeg-devel] avfilter/tonemap_vaapi: pass filter parameters to VA parameter buffer | expand

Checks

Context Check Description
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Sun, Xinpeng Jan. 17, 2020, 3:56 a.m. UTC
Signed-off-by: Xinpeng Sun <xinpeng.sun@intel.com>
---
 libavfilter/vf_tonemap_vaapi.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Sun, Xinpeng Feb. 10, 2020, 3:45 p.m. UTC | #1
> -----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, &params, output_frame);
>      if (err < 0)
>          goto fail;
> --
> 2.17.1

Kindly Ping.

Thx.
diff mbox series

Patch

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;