mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
8377ef43f4
commit
1001bdc504
@ -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)
|
||||
|
48
tests/ref/fate/png-icc-parse
Normal file
48
tests/ref/fate/png-icc-parse
Normal file
@ -0,0 +1,48 @@
|
||||
[FRAME]
|
||||
media_type=video
|
||||
stream_index=0
|
||||
key_frame=1
|
||||
pts=0
|
||||
pts_time=0.000000
|
||||
pkt_dts=0
|
||||
pkt_dts_time=0.000000
|
||||
best_effort_timestamp=0
|
||||
best_effort_timestamp_time=0.000000
|
||||
pkt_duration=1
|
||||
pkt_duration_time=0.040000
|
||||
duration=1
|
||||
duration_time=0.040000
|
||||
pkt_pos=0
|
||||
pkt_size=40194
|
||||
width=128
|
||||
height=128
|
||||
pix_fmt=rgb24
|
||||
sample_aspect_ratio=1:1
|
||||
pict_type=I
|
||||
coded_picture_number=0
|
||||
display_picture_number=0
|
||||
interlaced_frame=1
|
||||
top_field_first=0
|
||||
repeat_pict=0
|
||||
color_range=pc
|
||||
color_space=unknown
|
||||
color_primaries=bt709
|
||||
color_transfer=iec61966-2-1
|
||||
chroma_location=unspecified
|
||||
[SIDE_DATA]
|
||||
side_data_type=ICC profile
|
||||
name=Photoshop ICC profile
|
||||
size=3144
|
||||
[/SIDE_DATA]
|
||||
[SIDE_DATA]
|
||||
side_data_type=Mastering display metadata
|
||||
red_x=63999/100000
|
||||
red_y=33001/100000
|
||||
green_x=30000/100000
|
||||
green_y=60000/100000
|
||||
blue_x=15000/100000
|
||||
blue_y=5999/100000
|
||||
white_point_x=31269/100000
|
||||
white_point_y=32899/100000
|
||||
[/SIDE_DATA]
|
||||
[/FRAME]
|
Loading…
Reference in New Issue
Block a user