History

fate/png: add mDCv and cLLi read and write test

This test confirms that we can write mDCv and cLLi chunks and read them back via the png decoder. It uses an HEVC conformance sample with this metadata as the base source for the side data in the frames.

Leo Izen committed 2 years ago

Commit e30bc8a1 parent 97fd5d32 files · +28 −0Browse files

Unified · Split

2 files
  1. tests/fate/image.mak +6 −0
  2. tests/ref/fate/png-mdcv +22 −0
tests/fate/image.mak+6−0
@@ -416,6 +416,12 @@ FATE_PNG_PROBE-$(call ALLYES, LCMS2) += fate-png-icc-parse · 415 unmodified lines
416fate-png-icc-parse: CMD = run ffprobe$(PROGSSUF)$(EXESUF) -show_frames \416fate-png-icc-parse: CMD = run ffprobe$(PROGSSUF)$(EXESUF) -show_frames \
417 -flags2 icc_profiles $(TARGET_SAMPLES)/png1/lena-int_rgb24.png417 -flags2 icc_profiles $(TARGET_SAMPLES)/png1/lena-int_rgb24.png
418 418
419FATE_PNG_TRANSCODE-$(call TRANSCODE, PNG HEVC, IMAGE2PIPE HEVC, \
420 IMAGE_PNG_PIPE_DEMUXER HEVC_PARSER PNG_DECODER SCALE_FILTER) += fate-png-mdcv
421fate-png-mdcv: CMD = transcode hevc $(TARGET_SAMPLES)/hevc/hdr10_plus_h265_sample.hevc image2pipe \
422 "-pix_fmt rgb24 -vf scale -c png" "" \
423 "-show_frames -show_entries frame=side_data_list -of flat"
424
419FATE_PNG-$(call DEMDEC, IMAGE2, PNG) += $(FATE_PNG)425FATE_PNG-$(call DEMDEC, IMAGE2, PNG) += $(FATE_PNG)
420FATE_PNG_PROBE-$(call DEMDEC, IMAGE2, PNG) += $(FATE_PNG_PROBE)426FATE_PNG_PROBE-$(call DEMDEC, IMAGE2, PNG) += $(FATE_PNG_PROBE)
421FATE_IMAGE_FRAMECRC += $(FATE_PNG-yes)427FATE_IMAGE_FRAMECRC += $(FATE_PNG-yes)
tests/ref/fate/png-mdcv+22−0
@@ -0,0 +1,22 @@
1fc68fe6c8c72343b96d2695f6913995b *tests/data/fate/png-mdcv.image2pipe
2439248 tests/data/fate/png-mdcv.image2pipe
3#tb 0: 1/25
4#media_type 0: video
5#codec_id 0: rawvideo
6#dimensions 0: 1280x720
7#sar 0: 0/1
80, 0, 0, 1, 2764800, 0x2bfc7b42
9frames.frame.0.side_data_list.side_data.0.side_data_type="Content light level metadata"
10frames.frame.0.side_data_list.side_data.0.max_content=1000
11frames.frame.0.side_data_list.side_data.0.max_average=200
12frames.frame.0.side_data_list.side_data.1.side_data_type="Mastering display metadata"
13frames.frame.0.side_data_list.side_data.1.red_x="13250/50000"
14frames.frame.0.side_data_list.side_data.1.red_y="7500/50000"
15frames.frame.0.side_data_list.side_data.1.green_x="34000/50000"
16frames.frame.0.side_data_list.side_data.1.green_y="16000/50000"
17frames.frame.0.side_data_list.side_data.1.blue_x="2/50000"
18frames.frame.0.side_data_list.side_data.1.blue_y="0/50000"
19frames.frame.0.side_data_list.side_data.1.white_point_x="15635/50000"
20frames.frame.0.side_data_list.side_data.1.white_point_y="16450/50000"
21frames.frame.0.side_data_list.side_data.1.min_luminance="50/10000"
22frames.frame.0.side_data_list.side_data.1.max_luminance="10000000/10000"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t