Every supported format is converted to RGBA. --- tests/fate/image.mak | 12 ++++++++++++ tests/ref/fate/png-gray16 | 2 ++ tests/ref/fate/png-gray8 | 2 ++ tests/ref/fate/png-rgb24 | 2 ++ tests/ref/fate/png-rgb48 | 2 ++ tests/ref/fate/png-rgba | 2 ++ tests/ref/fate/png-ya16 | 2 ++ tests/ref/fate/png-ya8 | 2 ++ 8 files changed, 26 insertions(+) create mode 100644 tests/ref/fate/png-gray16 create mode 100644 tests/ref/fate/png-gray8 create mode 100644 tests/ref/fate/png-rgb24 create mode 100644 tests/ref/fate/png-rgb48 create mode 100644 tests/ref/fate/png-rgba create mode 100644 tests/ref/fate/png-ya16 create mode 100644 tests/ref/fate/png-ya8
diff --git a/tests/fate/image.mak b/tests/fate/image.mak index b1ddce1..218335d 100644 --- a/tests/fate/image.mak +++ b/tests/fate/image.mak @@ -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 -pix_fmt rgba +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 diff --git a/tests/ref/fate/png-gray16 b/tests/ref/fate/png-gray16 new file mode 100644 index 0000000..4727f7f --- /dev/null +++ b/tests/ref/fate/png-gray16 @@ -0,0 +1,2 @@ +#tb 0: 1/25 +0, 0, 0, 1, 271040, 0x6606d7cd diff --git a/tests/ref/fate/png-gray8 b/tests/ref/fate/png-gray8 new file mode 100644 index 0000000..3babed8 --- /dev/null +++ b/tests/ref/fate/png-gray8 @@ -0,0 +1,2 @@ +#tb 0: 1/25 +0, 0, 0, 1, 271040, 0xcf77b8ae diff --git a/tests/ref/fate/png-rgb24 b/tests/ref/fate/png-rgb24 new file mode 100644 index 0000000..e729cac --- /dev/null +++ b/tests/ref/fate/png-rgb24 @@ -0,0 +1,2 @@ +#tb 0: 1/25 +0, 0, 0, 1, 271040, 0x01f9a784 diff --git a/tests/ref/fate/png-rgb48 b/tests/ref/fate/png-rgb48 new file mode 100644 index 0000000..954922b --- /dev/null +++ b/tests/ref/fate/png-rgb48 @@ -0,0 +1,2 @@ +#tb 0: 1/25 +0, 0, 0, 1, 271040, 0xdaf4b874 diff --git a/tests/ref/fate/png-rgba b/tests/ref/fate/png-rgba new file mode 100644 index 0000000..aa03f8e --- /dev/null +++ b/tests/ref/fate/png-rgba @@ -0,0 +1,2 @@ +#tb 0: 1/25 +0, 0, 0, 1, 271040, 0xffe62f5f diff --git a/tests/ref/fate/png-ya16 b/tests/ref/fate/png-ya16 new file mode 100644 index 0000000..92fafa8 --- /dev/null +++ b/tests/ref/fate/png-ya16 @@ -0,0 +1,2 @@ +#tb 0: 1/25 +0, 0, 0, 1, 271040, 0x38ff2bff diff --git a/tests/ref/fate/png-ya8 b/tests/ref/fate/png-ya8 new file mode 100644 index 0000000..7bbdde1 --- /dev/null +++ b/tests/ref/fate/png-ya8 @@ -0,0 +1,2 @@ +#tb 0: 1/25 +0, 0, 0, 1, 271040, 0x876970be -- 1.8.5.2 (Apple Git-48) _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
