[FFmpeg-cvslog] fate: add a test for HDR Vivid metadata in HEVC

Limin Wang git at videolan.org
Thu Mar 10 01:06:33 EET 2022


ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Thu Mar  3 20:09:30 2022 +0800| [0a005b1207c669c7006f9a8e3fb8922184b04de4] | committer: Limin Wang

fate: add a test for HDR Vivid metadata in HEVC

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0a005b1207c669c7006f9a8e3fb8922184b04de4
---

 tests/fate/hevc.mak                    |  3 ++
 tests/ref/fate/hevc-hdr-vivid-metadata | 78 ++++++++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+)

diff --git a/tests/fate/hevc.mak b/tests/fate/hevc.mak
index f294cff414..3adee59e54 100644
--- a/tests/fate/hevc.mak
+++ b/tests/fate/hevc.mak
@@ -273,6 +273,9 @@ FATE_HEVC_FFPROBE-$(call DEMDEC, HEVC, HEVC) += fate-hevc-monochrome-crop
 fate-hevc-hdr10-plus-metadata: CMD = probeframes -show_entries frame=side_data_list $(TARGET_SAMPLES)/hevc/hdr10_plus_h265_sample.hevc
 FATE_HEVC_FFPROBE-$(call DEMDEC, HEVC, HEVC) += fate-hevc-hdr10-plus-metadata
 
+fate-hevc-hdr-vivid-metadata: CMD = probeframes -show_entries frame=side_data_list $(TARGET_SAMPLES)/hevc/hdr_vivid_h265_sample.hevc
+FATE_HEVC_FFPROBE-$(call DEMDEC, HEVC, HEVC) += fate-hevc-hdr-vivid-metadata
+
 fate-hevc-dv-rpu: CMD = probeframes -show_entries frame=side_data_list -select_streams 0 -read_intervals "%+\#2" $(TARGET_SAMPLES)/hevc/dv84.mov
 FATE_HEVC_FFPROBE-$(call DEMDEC, HEVC, HEVC) += fate-hevc-dv-rpu
 
diff --git a/tests/ref/fate/hevc-hdr-vivid-metadata b/tests/ref/fate/hevc-hdr-vivid-metadata
new file mode 100644
index 0000000000..5f69973098
--- /dev/null
+++ b/tests/ref/fate/hevc-hdr-vivid-metadata
@@ -0,0 +1,78 @@
+[FRAME]
+[SIDE_DATA]
+side_data_type=Mastering display metadata
+red_x=34000/50000
+red_y=16000/50000
+green_x=13250/50000
+green_y=34500/50000
+blue_x=7500/50000
+blue_y=3000/50000
+white_point_x=15635/50000
+white_point_y=16450/50000
+min_luminance=50/10000
+max_luminance=40000000/10000
+[/SIDE_DATA]
+[SIDE_DATA]
+side_data_type=Content light level metadata
+max_content=0
+max_average=0
+[/SIDE_DATA]
+[SIDE_DATA]
+side_data_type=H.26[45] User Data Unregistered SEI message
+[/SIDE_DATA]
+[SIDE_DATA]
+side_data_type=HDR Dynamic Metadata CUVA 005.1 2021 (Vivid)
+system_start_code=1
+num_windows=1
+minimum_maxrgb=0/4095
+average_maxrgb=3046/4095
+variance_maxrgb=1535/4095
+maximum_maxrgb=4095/4095
+tone_mapping_mode_flag=1
+tone_mapping_param_num=2
+targeted_system_display_maximum_luminance=2770/4095
+base_enable_flag=1
+base_param_m_p=5734/16383
+base_param_m_m=24/10
+base_param_m_a=563/1023
+base_param_m_b=0/1023
+base_param_m_n=10/10
+base_param_k1=1
+base_param_k2=1
+base_param_k3=1
+base_param_Delta_enable_mode=0
+base_param_Delta=0/127
+3Spline_enable_flag=1
+3Spline_num=1
+3Spline_TH_mode=0
+3Spline_TH_enable_MB=224/255
+3Spline_TH_enable=0/4095
+3Spline_TH_Delta1=511/1023
+3Spline_TH_Delta2=511/1023
+3Spline_enable_Strength=127/255
+targeted_system_display_maximum_luminance=2080/4095
+base_enable_flag=1
+base_param_m_p=5734/16383
+base_param_m_m=24/10
+base_param_m_a=563/1023
+base_param_m_b=0/1023
+base_param_m_n=10/10
+base_param_k1=1
+base_param_k2=1
+base_param_k3=1
+base_param_Delta_enable_mode=0
+base_param_Delta=0/127
+3Spline_enable_flag=1
+3Spline_num=1
+3Spline_TH_mode=0
+3Spline_TH_enable_MB=224/255
+3Spline_TH_enable=0/4095
+3Spline_TH_Delta1=511/1023
+3Spline_TH_Delta2=511/1023
+3Spline_enable_Strength=127/255
+color_saturation_mapping_flag=1
+color_saturation_num=2
+color_saturation_gain=38/128
+color_saturation_gain=25/128
+[/SIDE_DATA]
+[/FRAME]



More information about the ffmpeg-cvslog mailing list