aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorXinpeng Sun <xinpeng.sun@intel.com>2024-03-18 16:12:46 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2024-04-18 14:43:07 +0800
commit35ae44c6156216b8c745e4bc65f309840101d21a (patch)
treef825c435b964de2651118f702db53ae27b1f6457 /doc
parentdb22804145a456718b780c5cadbd468aa5e67c68 (diff)
downloadffmpeg-35ae44c6156216b8c745e4bc65f309840101d21a.tar.gz
lavfi/tonemap_vaapi: Add support for HDR to HDR tone mapping
Usage example: ffmpeg -y -hwaccel vaapi -hwaccel_output_format vaapi -i hdr.mp4 \ -vf "tonemap_vaapi=display=7500 3000|34000 16000|13250 34500|15635 16450|500 10000000:extra_hw_frames=64" \ -c:v hevc_vaapi output.mp4 Signed-off-by: Xinpeng Sun <xinpeng.sun@intel.com> Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/filters.texi42
1 files changed, 30 insertions, 12 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 09c7349313..fc813f12c1 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -27832,8 +27832,7 @@ The inputs have same memory layout for color channels, the overlay has additiona
@section tonemap_vaapi
-Perform HDR(High Dynamic Range) to SDR(Standard Dynamic Range) conversion with tone-mapping.
-It maps the dynamic range of HDR10 content to the SDR content.
+Perform HDR-to-SDR or HDR-to-HDR tone-mapping.
It currently only accepts HDR10 as input.
It accepts the following parameters:
@@ -27842,28 +27841,42 @@ It accepts the following parameters:
@item format
Specify the output pixel format.
-Currently supported formats are:
-@table @var
-@item p010
-@item nv12
-@end table
-
-Default is nv12.
+Default is nv12 for HDR-to-SDR tone-mapping and p010 for HDR-to-HDR
+tone-mapping.
@item primaries, p
Set the output color primaries.
-Default is bt709.
+Default is bt709 for HDR-to-SDR tone-mapping and same as input for HDR-to-HDR
+tone-mapping.
@item transfer, t
Set the output transfer characteristics.
-Default is bt709.
+Default is bt709 for HDR-to-SDR tone-mapping and same as input for HDR-to-HDR
+tone-mapping.
@item matrix, m
Set the output colorspace matrix.
-Default is bt709.
+Default is bt709 for HDR-to-SDR tone-mapping and same as input for HDR-to-HDR
+tone-mapping.
+
+@item display
+Set the output mastering display colour volume. It is given by a '|'-separated
+list of two values, two values are space separated. It set display primaries
+x & y in G, B, R order, then white point x & y, the nominal minimum & maximum
+display luminances.
+
+HDR-to-HDR tone-mapping will be performed when this option is set.
+
+@item light
+Set the output content light level information. It accepts 2 space-separated
+values, the first input is the maximum light level and the second input is
+the maximum average light level.
+
+It is ignored for HDR-to-SDR tone-mapping, and optional for HDR-to-HDR
+tone-mapping.
@end table
@@ -27875,6 +27888,11 @@ Convert HDR(HDR10) video to bt2020-transfer-characteristic p010 format
@example
tonemap_vaapi=format=p010:t=bt2020-10
@end example
+@item
+Convert HDR video to HDR video
+@example
+tonemap_vaapi=display=7500\ 3000|34000\ 16000|13250\ 34500|15635\ 16450|500\ 10000000
+@end example
@end itemize
@section hstack_vaapi