avfilter: Add tonemap vaapi filter for H2S

Multimedia / FFmpeg - Xinpeng Sun [intel.com] - 16 December 2019 23:49 EST

It performs HDR(High Dynamic Range) to SDR(Standard Dynamic Range) conversion with tone-mapping. It only supports HDR10 as input temporarily.

An example command to use this filter with vaapi codecs: FFMPEG -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi \-i INPUT -vf 'tonemap_vaapi=format=p010' -c:v hevc_vaapi -profile 2 OUTPUT

2e2dfe6673 avfilter: Add tonemap vaapi filter for H2S
configure | 2 +
doc/filters.texi | 59 ++++++
libavfilter/Makefile | 1 +
libavfilter/allfilters.c | 1 +
libavfilter/version.h | 2 +-
libavfilter/vf_tonemap_vaapi.c | 419 +++++++++++++++++++++++++++++++++++++++++
6 files changed, 483 insertions(+), 1 deletion(-)

  • Share