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 |
Context | Check | Description |
---|---|---|
andriy/ffmpeg-patchwork | success | Make fate finished |
> -----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.
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;
Signed-off-by: Xinpeng Sun <xinpeng.sun@intel.com> --- libavfilter/vf_tonemap_vaapi.c | 3 +++ 1 file changed, 3 insertions(+)