diff mbox series

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

Message ID 1646477870-26350-1-git-send-email-lance.lmwang@gmail.com
State Accepted
Commit 0a005b1207c669c7006f9a8e3fb8922184b04de4
Headers show
Series [FFmpeg-devel] fate: add a test for HDR Vivid metadata in HEVC | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 fail Make fate failed
andriy/make_aarch64_jetson success Make finished
andriy/make_fate_aarch64_jetson fail Make fate failed

Commit Message

Limin Wang March 5, 2022, 10:57 a.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
Please help to upload below sample to fate-suite/hevc/
https://streams.videolan.org/ffmpeg/incoming/hdr_vivid_h265_sample.hevc

 tests/fate/hevc.mak                    |  3 ++
 tests/ref/fate/hevc-hdr-vivid-metadata | 78 ++++++++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+)
 create mode 100644 tests/ref/fate/hevc-hdr-vivid-metadata
diff mbox series

Patch

diff --git a/tests/fate/hevc.mak b/tests/fate/hevc.mak
index f294cff..3adee59 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 0000000..5f69973
--- /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]