mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
fate: png-suite
Every supported format is converted to RGB.
This commit is contained in:
parent
60cbd6ad84
commit
086a541857
@ -59,6 +59,18 @@ fate-pictor: CMD = framecrc -i $(TARGET_SAMPLES)/pictor/MFISH.PIC -pix_fmt rgb24
|
||||
FATE_SAMPLES_AVCONV-$(call PARSERDEMDEC, PNG, IMAGE2PIPE, PNG) += fate-pngparser
|
||||
fate-pngparser: CMD = framecrc -f image2pipe -i $(TARGET_SAMPLES)/png1/libav_4x_concat.png -pix_fmt rgba
|
||||
|
||||
define FATE_IMGSUITE_PNG
|
||||
FATE_PNG += fate-png-$(1)
|
||||
fate-png-$(1): CMD = framecrc -i $(TARGET_SAMPLES)/png1/libav_$(1).png -sws_flags +accurate_rnd+bitexact -pix_fmt rgb24
|
||||
endef
|
||||
|
||||
PNG_COLORSPACES = gray8 gray16 rgb24 rgb48 rgba ya8 ya16
|
||||
$(foreach CLSP,$(PNG_COLORSPACES),$(eval $(call FATE_IMGSUITE_PNG,$(CLSP))))
|
||||
|
||||
FATE_PNG-$(call DEMDEC, IMAGE2, PNG) += $(FATE_PNG)
|
||||
FATE_SAMPLES_AVCONV += $(FATE_PNG-yes)
|
||||
fate-png: $(FATE_PNG-yes)
|
||||
|
||||
FATE_SAMPLES_AVCONV-$(call DEMDEC, IMAGE2, PTX) += fate-ptx
|
||||
fate-ptx: CMD = framecrc -i $(TARGET_SAMPLES)/ptx/_113kw_pic.ptx -pix_fmt rgb24
|
||||
|
||||
|
2
tests/ref/fate/png-gray16
Normal file
2
tests/ref/fate/png-gray16
Normal file
@ -0,0 +1,2 @@
|
||||
#tb 0: 1/25
|
||||
0, 0, 0, 1, 203280, 0x56c92114
|
2
tests/ref/fate/png-gray8
Normal file
2
tests/ref/fate/png-gray8
Normal file
@ -0,0 +1,2 @@
|
||||
#tb 0: 1/25
|
||||
0, 0, 0, 1, 203280, 0xe5df9033
|
2
tests/ref/fate/png-rgb24
Normal file
2
tests/ref/fate/png-rgb24
Normal file
@ -0,0 +1,2 @@
|
||||
#tb 0: 1/25
|
||||
0, 0, 0, 1, 203280, 0x57fff840
|
2
tests/ref/fate/png-rgb48
Normal file
2
tests/ref/fate/png-rgb48
Normal file
@ -0,0 +1,2 @@
|
||||
#tb 0: 1/25
|
||||
0, 0, 0, 1, 203280, 0x764801bb
|
2
tests/ref/fate/png-rgba
Normal file
2
tests/ref/fate/png-rgba
Normal file
@ -0,0 +1,2 @@
|
||||
#tb 0: 1/25
|
||||
0, 0, 0, 1, 203280, 0xb30c9da7
|
2
tests/ref/fate/png-ya16
Normal file
2
tests/ref/fate/png-ya16
Normal file
@ -0,0 +1,2 @@
|
||||
#tb 0: 1/25
|
||||
0, 0, 0, 1, 203280, 0xf1b83aeb
|
2
tests/ref/fate/png-ya8
Normal file
2
tests/ref/fate/png-ya8
Normal file
@ -0,0 +1,2 @@
|
||||
#tb 0: 1/25
|
||||
0, 0, 0, 1, 203280, 0xe77c008e
|
Loading…
Reference in New Issue
Block a user