aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fate
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2022-07-28 16:47:34 +0200
committerNiklas Haas <git@haasn.dev>2022-07-30 11:42:06 +0200
commit1001bdc5047ec7ed0754a2084b77637028bb82cc (patch)
treebd41f15b70f738e0c4d005cc0b89594dae9ad53e /tests/fate
parent8377ef43f4f9be46391bb5b43bbe7e9c6c1ad8dc (diff)
downloadffmpeg-1001bdc5047ec7ed0754a2084b77637028bb82cc.tar.gz
fate/png: add test for ICC profile parsing
This tests the new "-flags2 icc_profiles" option by making sure the embedded ICC profile gets correctly detected as sRGB. Signed-off-by: Niklas Haas <git@haasn.dev>
Diffstat (limited to 'tests/fate')
-rw-r--r--tests/fate/image.mak4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index fca4eaf60a..03e794dc48 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -392,6 +392,10 @@ fate-png-side-data: CMD = run ffprobe$(PROGSSUF)$(EXESUF) -show_frames \
FATE_PNG_TRANSCODE-$(call TRANSCODE, PNG, IMAGE2 IMAGE_PNG_PIPE) += fate-png-icc
fate-png-icc: CMD = transcode png_pipe $(TARGET_SAMPLES)/png1/lena-int_rgb24.png image2 "-c png" "" "-show_frames"
+FATE_PNG_PROBE-$(call ALLYES, LCMS2) += fate-png-icc-parse
+fate-png-icc-parse: CMD = run ffprobe$(PROGSSUF)$(EXESUF) -show_frames \
+ -flags2 icc_profiles $(TARGET_SAMPLES)/png1/lena-int_rgb24.png
+
FATE_PNG-$(call DEMDEC, IMAGE2, PNG) += $(FATE_PNG)
FATE_PNG_PROBE-$(call DEMDEC, IMAGE2, PNG) += $(FATE_PNG_PROBE)
FATE_IMAGE_FRAMECRC += $(FATE_PNG-yes)