[FFmpeg-cvslog] tests: add paletteuse test

Clément Bœsch git at videolan.org
Thu Feb 26 14:20:20 CET 2015


ffmpeg | branch: master | Clément Bœsch <clement at stupeflix.com> | Mon Feb 23 13:51:15 2015 +0100| [a6a2da2f3202af0ea4cddf4465d3785714a86b9f] | committer: Clément Bœsch

tests: add paletteuse test

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a6a2da2f3202af0ea4cddf4465d3785714a86b9f
---

 tests/fate/filter-video.mak                 |   12 +++++
 tests/ref/fate/filter-paletteuse-bayer      |   72 +++++++++++++++++++++++++++
 tests/ref/fate/filter-paletteuse-nodither   |   72 +++++++++++++++++++++++++++
 tests/ref/fate/filter-paletteuse-sierra2_4a |   72 +++++++++++++++++++++++++++
 4 files changed, 228 insertions(+)

diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index 7c8b486..330ea73 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -38,6 +38,18 @@ fate-filter-palettegen-2: CMD = framecrc -i $(TARGET_SAMPLES)/filter/anim.mkv -v
 fate-filter-palettegen: $(FATE_FILTER_PALETTEGEN)
 FATE_FILTER-$(call ALLYES, PALETTEGEN_FILTER MATROSKA_DEMUXER H264_DECODER) += $(FATE_FILTER_PALETTEGEN)
 
+FATE_FILTER_PALETTEUSE += fate-filter-paletteuse-nodither
+fate-filter-paletteuse-nodither: CMD = framecrc -i $(TARGET_SAMPLES)/filter/anim.mkv -i $(TARGET_SAMPLES)/filter/anim-palette.png -lavfi paletteuse=none -pix_fmt bgra
+
+FATE_FILTER_PALETTEUSE += fate-filter-paletteuse-bayer
+fate-filter-paletteuse-bayer: CMD = framecrc -i $(TARGET_SAMPLES)/filter/anim.mkv -i $(TARGET_SAMPLES)/filter/anim-palette.png -lavfi paletteuse=bayer -pix_fmt bgra
+
+FATE_FILTER_PALETTEUSE += fate-filter-paletteuse-sierra2_4a
+fate-filter-paletteuse-sierra2_4a: CMD = framecrc -i $(TARGET_SAMPLES)/filter/anim.mkv -i $(TARGET_SAMPLES)/filter/anim-palette.png -lavfi paletteuse=sierra2_4a:diff_mode=rectangle -pix_fmt bgra
+
+fate-filter-paletteuse: $(FATE_FILTER_PALETTEUSE)
+FATE_FILTER-$(call ALLYES, PALETTEUSE_FILTER MATROSKA_DEMUXER H264_DECODER IMAGE2_DEMUXER PNG_DECODER) += $(FATE_FILTER_PALETTEUSE)
+
 FATE_SAMPLES_AVCONV += $(FATE_FILTER-yes)
 
 FATE_FILTER-$(call ALLYES, AVDEVICE LIFE_FILTER) += fate-filter-lavd-life
diff --git a/tests/ref/fate/filter-paletteuse-bayer b/tests/ref/fate/filter-paletteuse-bayer
new file mode 100644
index 0000000..4b44939
--- /dev/null
+++ b/tests/ref/fate/filter-paletteuse-bayer
@@ -0,0 +1,72 @@
+#tb 0: 1001/24000
+0,          0,          0,        1,   230400, 0x7b259d08
+0,          1,          1,        1,   230400, 0xf04095e0
+0,          2,          2,        1,   230400, 0x84d49cd5
+0,          3,          3,        1,   230400, 0xd7a29aaf
+0,          4,          4,        1,   230400, 0x9047947c
+0,          5,          5,        1,   230400, 0xfeb990e7
+0,          6,          6,        1,   230400, 0x51ee9295
+0,          7,          7,        1,   230400, 0x66fd4833
+0,          8,          8,        1,   230400, 0x4c0948f0
+0,          9,          9,        1,   230400, 0x632b4776
+0,         10,         10,        1,   230400, 0x7a3c87e2
+0,         11,         11,        1,   230400, 0x4a9286ba
+0,         12,         12,        1,   230400, 0x54dc8649
+0,         13,         13,        1,   230400, 0x92628944
+0,         14,         14,        1,   230400, 0x80f9899f
+0,         15,         15,        1,   230400, 0x5cd78bd8
+0,         16,         16,        1,   230400, 0x4b4ca390
+0,         17,         17,        1,   230400, 0x82cca153
+0,         18,         18,        1,   230400, 0x65f1a2d0
+0,         19,         19,        1,   230400, 0x7df6ae4c
+0,         20,         20,        1,   230400, 0x909baccc
+0,         21,         21,        1,   230400, 0x1892ac65
+0,         22,         22,        1,   230400, 0x3247bb32
+0,         23,         23,        1,   230400, 0x592fbbe5
+0,         24,         24,        1,   230400, 0x189db9d5
+0,         25,         25,        1,   230400, 0x1a38b8da
+0,         26,         26,        1,   230400, 0xccd6bd07
+0,         27,         27,        1,   230400, 0xd4a2bc53
+0,         28,         28,        1,   230400, 0x9ce3bb4e
+0,         29,         29,        1,   230400, 0x5ffdc4db
+0,         30,         30,        1,   230400, 0xc885c7c9
+0,         31,         31,        1,   230400, 0xe27b9d33
+0,         32,         32,        1,   230400, 0xac03a256
+0,         33,         33,        1,   230400, 0xa2c73929
+0,         34,         34,        1,   230400, 0x33793b73
+0,         35,         35,        1,   230400, 0x1e400add
+0,         36,         36,        1,   230400, 0x98e50c6e
+0,         37,         37,        1,   230400, 0x68ed226d
+0,         38,         38,        1,   230400, 0x569e23cb
+0,         39,         39,        1,   230400, 0x82bf3fc0
+0,         40,         40,        1,   230400, 0x2b202e86
+0,         41,         41,        1,   230400, 0x7acd2dee
+0,         42,         42,        1,   230400, 0xfe872e42
+0,         43,         43,        1,   230400, 0x026c12e5
+0,         44,         44,        1,   230400, 0x81561399
+0,         45,         45,        1,   230400, 0xa08c13b6
+0,         46,         46,        1,   230400, 0x89e712f5
+0,         47,         47,        1,   230400, 0x569011ac
+0,         48,         48,        1,   230400, 0xd4691112
+0,         49,         49,        1,   230400, 0x2e50165a
+0,         50,         50,        1,   230400, 0x0a1215b6
+0,         51,         51,        1,   230400, 0x3c5316e3
+0,         52,         52,        1,   230400, 0x079c1393
+0,         53,         53,        1,   230400, 0x39ca1c48
+0,         54,         54,        1,   230400, 0xe27f199c
+0,         55,         55,        1,   230400, 0x10ab1bab
+0,         56,         56,        1,   230400, 0xeab017c3
+0,         57,         57,        1,   230400, 0x5f701f77
+0,         58,         58,        1,   230400, 0x01371d7d
+0,         59,         59,        1,   230400, 0x22751e99
+0,         60,         60,        1,   230400, 0xaee91a97
+0,         61,         61,        1,   230400, 0x27b41f32
+0,         62,         62,        1,   230400, 0x4ff32bb1
+0,         63,         63,        1,   230400, 0x86e02864
+0,         64,         64,        1,   230400, 0x5eb52b3e
+0,         65,         65,        1,   230400, 0xd9252ba8
+0,         66,         66,        1,   230400, 0x72232d9b
+0,         67,         67,        1,   230400, 0x599a206f
+0,         68,         68,        1,   230400, 0x4d2c1ca5
+0,         69,         69,        1,   230400, 0x9166293b
+0,         70,         70,        1,   230400, 0x00992453
diff --git a/tests/ref/fate/filter-paletteuse-nodither b/tests/ref/fate/filter-paletteuse-nodither
new file mode 100644
index 0000000..8171ffa
--- /dev/null
+++ b/tests/ref/fate/filter-paletteuse-nodither
@@ -0,0 +1,72 @@
+#tb 0: 1001/24000
+0,          0,          0,        1,   230400, 0x690560cb
+0,          1,          1,        1,   230400, 0x197a5a54
+0,          2,          2,        1,   230400, 0x665961db
+0,          3,          3,        1,   230400, 0xce0b5fa8
+0,          4,          4,        1,   230400, 0xa40e5cb0
+0,          5,          5,        1,   230400, 0xa5aa58da
+0,          6,          6,        1,   230400, 0x8e0259bb
+0,          7,          7,        1,   230400, 0x476d0dba
+0,          8,          8,        1,   230400, 0xfb1b0e8c
+0,          9,          9,        1,   230400, 0x50f60d3b
+0,         10,         10,        1,   230400, 0x12cd4bab
+0,         11,         11,        1,   230400, 0x4c274b13
+0,         12,         12,        1,   230400, 0xea494b0a
+0,         13,         13,        1,   230400, 0x118c4cc1
+0,         14,         14,        1,   230400, 0xd4224db7
+0,         15,         15,        1,   230400, 0xc3014f88
+0,         16,         16,        1,   230400, 0xe07a6838
+0,         17,         17,        1,   230400, 0x1b97659a
+0,         18,         18,        1,   230400, 0xf104670c
+0,         19,         19,        1,   230400, 0x7b63733d
+0,         20,         20,        1,   230400, 0x2c237200
+0,         21,         21,        1,   230400, 0x775d7248
+0,         22,         22,        1,   230400, 0xcaee7f9e
+0,         23,         23,        1,   230400, 0x4e4680a1
+0,         24,         24,        1,   230400, 0x21fb7e53
+0,         25,         25,        1,   230400, 0xf0297db6
+0,         26,         26,        1,   230400, 0x79a9829d
+0,         27,         27,        1,   230400, 0x8ccb80f7
+0,         28,         28,        1,   230400, 0xf4dd807f
+0,         29,         29,        1,   230400, 0xb6cc8696
+0,         30,         30,        1,   230400, 0x6c8a8917
+0,         31,         31,        1,   230400, 0x9e08615a
+0,         32,         32,        1,   230400, 0xc098685b
+0,         33,         33,        1,   230400, 0x5c09e710
+0,         34,         34,        1,   230400, 0xe4c4e9be
+0,         35,         35,        1,   230400, 0xac59c150
+0,         36,         36,        1,   230400, 0x6045c272
+0,         37,         37,        1,   230400, 0xf71ee6dc
+0,         38,         38,        1,   230400, 0xc82ce6f6
+0,         39,         39,        1,   230400, 0xb7ed039a
+0,         40,         40,        1,   230400, 0xda93f241
+0,         41,         41,        1,   230400, 0x194bf23b
+0,         42,         42,        1,   230400, 0xe7e6f2e2
+0,         43,         43,        1,   230400, 0xe479d834
+0,         44,         44,        1,   230400, 0xefdfd87e
+0,         45,         45,        1,   230400, 0xec66d8c0
+0,         46,         46,        1,   230400, 0x3a6bd81b
+0,         47,         47,        1,   230400, 0xb5d1d700
+0,         48,         48,        1,   230400, 0x3bc69e8b
+0,         49,         49,        1,   230400, 0x723fa455
+0,         50,         50,        1,   230400, 0x7c49a392
+0,         51,         51,        1,   230400, 0x272ea4b7
+0,         52,         52,        1,   230400, 0xebdda081
+0,         53,         53,        1,   230400, 0xfd26ab99
+0,         54,         54,        1,   230400, 0xfa02a891
+0,         55,         55,        1,   230400, 0xda2caa7f
+0,         56,         56,        1,   230400, 0x2360a611
+0,         57,         57,        1,   230400, 0xaa3baefd
+0,         58,         58,        1,   230400, 0x0961ad5c
+0,         59,         59,        1,   230400, 0x48d2ae47
+0,         60,         60,        1,   230400, 0x20eda81b
+0,         61,         61,        1,   230400, 0x8821adbb
+0,         62,         62,        1,   230400, 0x1150b810
+0,         63,         63,        1,   230400, 0x08dab596
+0,         64,         64,        1,   230400, 0x4731b7a5
+0,         65,         65,        1,   230400, 0xf382b87e
+0,         66,         66,        1,   230400, 0xdba7bac2
+0,         67,         67,        1,   230400, 0xf569acf9
+0,         68,         68,        1,   230400, 0x22d8a95d
+0,         69,         69,        1,   230400, 0xed0bb4fb
+0,         70,         70,        1,   230400, 0x2dccb218
diff --git a/tests/ref/fate/filter-paletteuse-sierra2_4a b/tests/ref/fate/filter-paletteuse-sierra2_4a
new file mode 100644
index 0000000..95d7636
--- /dev/null
+++ b/tests/ref/fate/filter-paletteuse-sierra2_4a
@@ -0,0 +1,72 @@
+#tb 0: 1001/24000
+0,          0,          0,        1,   230400, 0xa4f85758
+0,          1,          1,        1,   230400, 0xbe83505c
+0,          2,          2,        1,   230400, 0x0a09584e
+0,          3,          3,        1,   230400, 0xd2065629
+0,          4,          4,        1,   230400, 0x11eb5319
+0,          5,          5,        1,   230400, 0x61024f4c
+0,          6,          6,        1,   230400, 0xd5384faa
+0,          7,          7,        1,   230400, 0xdeae0343
+0,          8,          8,        1,   230400, 0xcb640541
+0,          9,          9,        1,   230400, 0xea2602c3
+0,         10,         10,        1,   230400, 0xa7974293
+0,         11,         11,        1,   230400, 0x67cd4287
+0,         12,         12,        1,   230400, 0x83fa437a
+0,         13,         13,        1,   230400, 0x852b42bf
+0,         14,         14,        1,   230400, 0x6d2d434c
+0,         15,         15,        1,   230400, 0x20c44629
+0,         16,         16,        1,   230400, 0xf2a35f57
+0,         17,         17,        1,   230400, 0x232959ec
+0,         18,         18,        1,   230400, 0x1f8e5c48
+0,         19,         19,        1,   230400, 0x88dc69bd
+0,         20,         20,        1,   230400, 0x4b6866f3
+0,         21,         21,        1,   230400, 0xe8f966dc
+0,         22,         22,        1,   230400, 0xe0877466
+0,         23,         23,        1,   230400, 0x8799748c
+0,         24,         24,        1,   230400, 0xcab871bc
+0,         25,         25,        1,   230400, 0x2e0372b4
+0,         26,         26,        1,   230400, 0x15fb77d5
+0,         27,         27,        1,   230400, 0xbadf75fc
+0,         28,         28,        1,   230400, 0xa4977626
+0,         29,         29,        1,   230400, 0x5b987943
+0,         30,         30,        1,   230400, 0x9ed57c09
+0,         31,         31,        1,   230400, 0x565d5105
+0,         32,         32,        1,   230400, 0x901b5a07
+0,         33,         33,        1,   230400, 0x8dc4e9a8
+0,         34,         34,        1,   230400, 0x0b9cee1c
+0,         35,         35,        1,   230400, 0x2bcdbe37
+0,         36,         36,        1,   230400, 0xf3e2bf71
+0,         37,         37,        1,   230400, 0xb718da67
+0,         38,         38,        1,   230400, 0x8f59da64
+0,         39,         39,        1,   230400, 0x8812f9aa
+0,         40,         40,        1,   230400, 0xe0dae6a3
+0,         41,         41,        1,   230400, 0xd2c7e5b7
+0,         42,         42,        1,   230400, 0xea2ae5d2
+0,         43,         43,        1,   230400, 0x2d66ca25
+0,         44,         44,        1,   230400, 0xf0d3cac6
+0,         45,         45,        1,   230400, 0xb9acccac
+0,         46,         46,        1,   230400, 0x8523ca4a
+0,         47,         47,        1,   230400, 0x92b9c9ef
+0,         48,         48,        1,   230400, 0x0a88946e
+0,         49,         49,        1,   230400, 0xe33699b8
+0,         50,         50,        1,   230400, 0x5e7b9917
+0,         51,         51,        1,   230400, 0xdac99998
+0,         52,         52,        1,   230400, 0xb5c995fc
+0,         53,         53,        1,   230400, 0x908b9f50
+0,         54,         54,        1,   230400, 0x60d59ced
+0,         55,         55,        1,   230400, 0x212e9f55
+0,         56,         56,        1,   230400, 0x95e69b2a
+0,         57,         57,        1,   230400, 0x6c38a34a
+0,         58,         58,        1,   230400, 0xeb32a103
+0,         59,         59,        1,   230400, 0x0131a1b7
+0,         60,         60,        1,   230400, 0xd59b9c4e
+0,         61,         61,        1,   230400, 0x2fc0a13f
+0,         62,         62,        1,   230400, 0x7a40adf9
+0,         63,         63,        1,   230400, 0x5cdbab2f
+0,         64,         64,        1,   230400, 0xcdc0ada8
+0,         65,         65,        1,   230400, 0x2f5faf32
+0,         66,         66,        1,   230400, 0xd463b224
+0,         67,         67,        1,   230400, 0xe337a2d5
+0,         68,         68,        1,   230400, 0xe775a0c1
+0,         69,         69,        1,   230400, 0x726aab49
+0,         70,         70,        1,   230400, 0x74dda81e



More information about the ffmpeg-cvslog mailing list