1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

avcodec/libaom: Add test for HDR10+ metadata support

Signed-off-by: Maryla Ustarroz-Calonge <maryla@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Maryla Ustarroz-Calonge
2025-08-11 13:57:03 +02:00
committed by Michael Niedermayer
parent a282500087
commit 5e210f0552
3 changed files with 52 additions and 0 deletions

View File

@@ -162,6 +162,7 @@ include $(SRC_PATH)/tests/fate/apng.mak
include $(SRC_PATH)/tests/fate/apv.mak
include $(SRC_PATH)/tests/fate/atrac.mak
include $(SRC_PATH)/tests/fate/audio.mak
include $(SRC_PATH)/tests/fate/av1.mak
include $(SRC_PATH)/tests/fate/bmp.mak
include $(SRC_PATH)/tests/fate/build.mak
include $(SRC_PATH)/tests/fate/caf.mak

7
tests/fate/av1.mak Normal file
View File

@@ -0,0 +1,7 @@
# Tests that reading and writing with codec libaom-av1 preserves HDR10+ metadata.
FATE_AV1_FFMPEG_FFPROBE-$(call ENCDEC, LIBAOM_AV1 VP9, IVF MATROSKA) += fate-libaom-hdr10-plus
fate-libaom-hdr10-plus: CMD = enc_external $(TARGET_SAMPLES)/mkv/hdr10_plus_vp9_sample.webm ivf "-map 0 -c:v libaom-av1 -cpu-used 8" "-show_frames -show_entries frame=side_data_list -codec:v libaom-av1"
FATE_SAMPLES_FFMPEG_FFPROBE += $(FATE_AV1_FFMPEG_FFPROBE-yes)
fate-av1: $(FATE_AV1_FFMPEG_FFPROBE-yes)

View File

@@ -0,0 +1,44 @@
[FRAME]
[SIDE_DATA]
side_data_type=HDR Dynamic Metadata SMPTE2094-40 (HDR10+)
application version=1
num_windows=1
targeted_system_display_maximum_luminance=400/1
maxscl=3340/100000
maxscl=2870/100000
maxscl=2720/100000
average_maxrgb=510/100000
num_distribution_maxrgb_percentiles=9
distribution_maxrgb_percentage=1
distribution_maxrgb_percentile=30/100000
distribution_maxrgb_percentage=5
distribution_maxrgb_percentile=2940/100000
distribution_maxrgb_percentage=10
distribution_maxrgb_percentile=255/100000
distribution_maxrgb_percentage=25
distribution_maxrgb_percentile=70/100000
distribution_maxrgb_percentage=50
distribution_maxrgb_percentile=1340/100000
distribution_maxrgb_percentage=75
distribution_maxrgb_percentile=1600/100000
distribution_maxrgb_percentage=90
distribution_maxrgb_percentile=1850/100000
distribution_maxrgb_percentage=95
distribution_maxrgb_percentile=1950/100000
distribution_maxrgb_percentage=99
distribution_maxrgb_percentile=2940/100000
fraction_bright_pixels=1/1000
knee_point_x=0/4095
knee_point_y=0/4095
num_bezier_curve_anchors=9
bezier_curve_anchors=102/1023
bezier_curve_anchors=205/1023
bezier_curve_anchors=307/1023
bezier_curve_anchors=410/1023
bezier_curve_anchors=512/1023
bezier_curve_anchors=614/1023
bezier_curve_anchors=717/1023
bezier_curve_anchors=819/1023
bezier_curve_anchors=922/1023
[/SIDE_DATA]
[/FRAME]