[FFmpeg-devel] [PATCH 2/2] tests: add paletteuse test

Clément Bœsch u at pkh.me
Mon Feb 23 13:57:01 CET 2015


From: Clément Bœsch <clement at stupeflix.com>

---
 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(+)
 create mode 100644 tests/ref/fate/filter-paletteuse-bayer
 create mode 100644 tests/ref/fate/filter-paletteuse-nodither
 create mode 100644 tests/ref/fate/filter-paletteuse-sierra2_4a

diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index 2ad8313..bbdf551 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
+
+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
+
+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
+
+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..6e3c0a3
--- /dev/null
+++ b/tests/ref/fate/filter-paletteuse-bayer
@@ -0,0 +1,72 @@
+#tb 0: 1001/24000
+0,          0,          0,        1,    58624, 0x8557e8f9
+0,          1,          1,        1,    58624, 0xdc7ce4b4
+0,          2,          2,        1,    58624, 0x9d30e8f2
+0,          3,          3,        1,    58624, 0x85e5e76f
+0,          4,          4,        1,    58624, 0x5b57e3ad
+0,          5,          5,        1,    58624, 0x2af4e17d
+0,          6,          6,        1,    58624, 0xa40ee2d8
+0,          7,          7,        1,    58624, 0x33cabe51
+0,          8,          8,        1,    58624, 0x683ebf36
+0,          9,          9,        1,    58624, 0xb132bdb2
+0,         10,         10,        1,    58624, 0x344eded3
+0,         11,         11,        1,    58624, 0x2d4cde78
+0,         12,         12,        1,    58624, 0xe910de12
+0,         13,         13,        1,    58624, 0xd1cedfe0
+0,         14,         14,        1,    58624, 0x29f5e01b
+0,         15,         15,        1,    58624, 0x7c7de186
+0,         16,         16,        1,    58624, 0xbe0deca9
+0,         17,         17,        1,    58624, 0x9681eb02
+0,         18,         18,        1,    58624, 0xe1e2ec14
+0,         19,         19,        1,    58624, 0x3f0bf1d0
+0,         20,         20,        1,    58624, 0xcb1df090
+0,         21,         21,        1,    58624, 0xbf15f098
+0,         22,         22,        1,    58624, 0xb4f4f70b
+0,         23,         23,        1,    58624, 0xdb0df780
+0,         24,         24,        1,    58624, 0xdb91f677
+0,         25,         25,        1,    58624, 0x68c9f5d3
+0,         26,         26,        1,    58624, 0xeceaf85b
+0,         27,         27,        1,    58624, 0x93a1f7d1
+0,         28,         28,        1,    58624, 0xe6b4f766
+0,         29,         29,        1,    58624, 0xd7861418
+0,         30,         30,        1,    58624, 0x46f115f8
+0,         31,         31,        1,    58624, 0x9850bec1
+0,         32,         32,        1,    58624, 0x5d7dc231
+0,         33,         33,        1,    58624, 0x9434d9f2
+0,         34,         34,        1,    58624, 0x5ddadb5d
+0,         35,         35,        1,    58624, 0xc5c2a217
+0,         36,         36,        1,    58624, 0x90d7a276
+0,         37,         37,        1,    58624, 0xa9486119
+0,         38,         38,        1,    58624, 0xa42d621d
+0,         39,         39,        1,    58624, 0xd212c19f
+0,         40,         40,        1,    58624, 0xeb8fbbd4
+0,         41,         41,        1,    58624, 0x40fabb6c
+0,         42,         42,        1,    58624, 0x3841bb9e
+0,         43,         43,        1,    58624, 0x7c12aa1a
+0,         44,         44,        1,    58624, 0x2916aa87
+0,         45,         45,        1,    58624, 0xdddcaa7e
+0,         46,         46,        1,    58624, 0x802eaa66
+0,         47,         47,        1,    58624, 0x2670a9b1
+0,         48,         48,        1,    58624, 0x8558c76f
+0,         49,         49,        1,    58624, 0x50f6ca0f
+0,         50,         50,        1,    58624, 0x6119c9e1
+0,         51,         51,        1,    58624, 0xf495ca62
+0,         52,         52,        1,    58624, 0x2b76c900
+0,         53,         53,        1,    58624, 0x88e4cd07
+0,         54,         54,        1,    58624, 0x318ccbaa
+0,         55,         55,        1,    58624, 0xb737cc84
+0,         56,         56,        1,    58624, 0x1256cadc
+0,         57,         57,        1,    58624, 0x1d21cec6
+0,         58,         58,        1,    58624, 0x6b1acd38
+0,         59,         59,        1,    58624, 0xb7f6ce00
+0,         60,         60,        1,    58624, 0xa166cbd1
+0,         61,         61,        1,    58624, 0x462bced4
+0,         62,         62,        1,    58624, 0x2192d5e7
+0,         63,         63,        1,    58624, 0x2a3ad47f
+0,         64,         64,        1,    58624, 0x4a29d624
+0,         65,         65,        1,    58624, 0x841ad620
+0,         66,         66,        1,    58624, 0x168ed7bc
+0,         67,         67,        1,    58624, 0x3f25cfbb
+0,         68,         68,        1,    58624, 0xf112cd87
+0,         69,         69,        1,    58624, 0x4488d51c
+0,         70,         70,        1,    58624, 0x4fb9d20e
diff --git a/tests/ref/fate/filter-paletteuse-nodither b/tests/ref/fate/filter-paletteuse-nodither
new file mode 100644
index 0000000..a9c5716
--- /dev/null
+++ b/tests/ref/fate/filter-paletteuse-nodither
@@ -0,0 +1,72 @@
+#tb 0: 1001/24000
+0,          0,          0,        1,    58624, 0xc72cda81
+0,          1,          1,        1,    58624, 0x0e3bd6d8
+0,          2,          2,        1,    58624, 0x6dd4db41
+0,          3,          3,        1,    58624, 0xd174d9d0
+0,          4,          4,        1,    58624, 0xe388d7dc
+0,          5,          5,        1,    58624, 0xf626d5bc
+0,          6,          6,        1,    58624, 0x1522d674
+0,          7,          7,        1,    58624, 0x4331b08d
+0,          8,          8,        1,    58624, 0x8869b19b
+0,          9,          9,        1,    58624, 0x06f1b085
+0,         10,         10,        1,    58624, 0x788ad05f
+0,         11,         11,        1,    58624, 0xdb7bd003
+0,         12,         12,        1,    58624, 0xd42fcfe7
+0,         13,         13,        1,    58624, 0x9667d25f
+0,         14,         14,        1,    58624, 0x6b27d2d7
+0,         15,         15,        1,    58624, 0x57bbd42d
+0,         16,         16,        1,    58624, 0x1314def7
+0,         17,         17,        1,    58624, 0x21ceddb1
+0,         18,         18,        1,    58624, 0x8cb6de4d
+0,         19,         19,        1,    58624, 0x60c0e423
+0,         20,         20,        1,    58624, 0xefd7e376
+0,         21,         21,        1,    58624, 0xae4ce3cf
+0,         22,         22,        1,    58624, 0x66f4e9ef
+0,         23,         23,        1,    58624, 0x6d4dea2a
+0,         24,         24,        1,    58624, 0xac37e8c1
+0,         25,         25,        1,    58624, 0x7c58e870
+0,         26,         26,        1,    58624, 0x0e13eb7e
+0,         27,         27,        1,    58624, 0x42b0ea31
+0,         28,         28,        1,    58624, 0x783ae9ff
+0,         29,         29,        1,    58624, 0x687f04cb
+0,         30,         30,        1,    58624, 0x66cb0640
+0,         31,         31,        1,    58624, 0x5e31a315
+0,         32,         32,        1,    58624, 0x49faa765
+0,         33,         33,        1,    58624, 0xa6adc0af
+0,         34,         34,        1,    58624, 0xe099c235
+0,         35,         35,        1,    58624, 0x853c8d23
+0,         36,         36,        1,    58624, 0x39588e06
+0,         37,         37,        1,    58624, 0x9f02522e
+0,         38,         38,        1,    58624, 0xd60752af
+0,         39,         39,        1,    58624, 0x0ae3b3e3
+0,         40,         40,        1,    58624, 0x5b69af26
+0,         41,         41,        1,    58624, 0x1590af27
+0,         42,         42,        1,    58624, 0xb3dcaf59
+0,         43,         43,        1,    58624, 0x9a509cbf
+0,         44,         44,        1,    58624, 0x55ec9d07
+0,         45,         45,        1,    58624, 0x61489cf8
+0,         46,         46,        1,    58624, 0xf8259c4b
+0,         47,         47,        1,    58624, 0xb7ea9be6
+0,         48,         48,        1,    58624, 0x107e89fa
+0,         49,         49,        1,    58624, 0xd2e58d79
+0,         50,         50,        1,    58624, 0xf8fd8cd4
+0,         51,         51,        1,    58624, 0x251c8d65
+0,         52,         52,        1,    58624, 0x7fb48b71
+0,         53,         53,        1,    58624, 0xdfbd9010
+0,         54,         54,        1,    58624, 0xc8348edc
+0,         55,         55,        1,    58624, 0x4d328f85
+0,         56,         56,        1,    58624, 0xefc58d6b
+0,         57,         57,        1,    58624, 0xfd899286
+0,         58,         58,        1,    58624, 0xeec39147
+0,         59,         59,        1,    58624, 0x70989196
+0,         60,         60,        1,    58624, 0x7ca28e7d
+0,         61,         61,        1,    58624, 0x6d1b91c3
+0,         62,         62,        1,    58624, 0x2a1d983a
+0,         63,         63,        1,    58624, 0xea3e96e5
+0,         64,         64,        1,    58624, 0xb03997d3
+0,         65,         65,        1,    58624, 0x5ce69893
+0,         66,         66,        1,    58624, 0x48149987
+0,         67,         67,        1,    58624, 0x2ce59126
+0,         68,         68,        1,    58624, 0xc69f8f8d
+0,         69,         69,        1,    58624, 0xdbf69570
+0,         70,         70,        1,    58624, 0x1b4793da
diff --git a/tests/ref/fate/filter-paletteuse-sierra2_4a b/tests/ref/fate/filter-paletteuse-sierra2_4a
new file mode 100644
index 0000000..4b294b6
--- /dev/null
+++ b/tests/ref/fate/filter-paletteuse-sierra2_4a
@@ -0,0 +1,72 @@
+#tb 0: 1001/24000
+0,          0,          0,        1,    58624, 0x602ed9a0
+0,          1,          1,        1,    58624, 0x2122d491
+0,          2,          2,        1,    58624, 0x0d5bd7e9
+0,          3,          3,        1,    58624, 0x6652d742
+0,          4,          4,        1,    58624, 0x339ad64e
+0,          5,          5,        1,    58624, 0x5664d4ba
+0,          6,          6,        1,    58624, 0x09f4d525
+0,          7,          7,        1,    58624, 0xfde9afb2
+0,          8,          8,        1,    58624, 0x6648b0cd
+0,          9,          9,        1,    58624, 0xdf1db073
+0,         10,         10,        1,    58624, 0x1dcace6e
+0,         11,         11,        1,    58624, 0x0bf3ce34
+0,         12,         12,        1,    58624, 0x8ee0cddb
+0,         13,         13,        1,    58624, 0x7d17cfa8
+0,         14,         14,        1,    58624, 0x766ace16
+0,         15,         15,        1,    58624, 0x73a8d0b4
+0,         16,         16,        1,    58624, 0x0f14db6d
+0,         17,         17,        1,    58624, 0x2c93d831
+0,         18,         18,        1,    58624, 0xe79bda97
+0,         19,         19,        1,    58624, 0xd3ece078
+0,         20,         20,        1,    58624, 0xc451e042
+0,         21,         21,        1,    58624, 0xcbcddf0c
+0,         22,         22,        1,    58624, 0x7be2e56f
+0,         23,         23,        1,    58624, 0x175ae54c
+0,         24,         24,        1,    58624, 0x20e2e436
+0,         25,         25,        1,    58624, 0xf319e4ca
+0,         26,         26,        1,    58624, 0x6da7e6ec
+0,         27,         27,        1,    58624, 0x4dc7e524
+0,         28,         28,        1,    58624, 0xdbc0e4fe
+0,         29,         29,        1,    58624, 0x2d8bfdf2
+0,         30,         30,        1,    58624, 0xb6c3004d
+0,         31,         31,        1,    58624, 0xc6b69d41
+0,         32,         32,        1,    58624, 0x4351a4e6
+0,         33,         33,        1,    58624, 0x7d23bf7e
+0,         34,         34,        1,    58624, 0x19aac22b
+0,         35,         35,        1,    58624, 0x29fa8758
+0,         36,         36,        1,    58624, 0x5c4a87b6
+0,         37,         37,        1,    58624, 0x9e2d4adb
+0,         38,         38,        1,    58624, 0x54784b62
+0,         39,         39,        1,    58624, 0x6693ae38
+0,         40,         40,        1,    58624, 0xaf01a833
+0,         41,         41,        1,    58624, 0x11e1a67d
+0,         42,         42,        1,    58624, 0xcf63a72f
+0,         43,         43,        1,    58624, 0xe25093e1
+0,         44,         44,        1,    58624, 0x848f945b
+0,         45,         45,        1,    58624, 0xc5ef9517
+0,         46,         46,        1,    58624, 0x29329460
+0,         47,         47,        1,    58624, 0x3c1293be
+0,         48,         48,        1,    58624, 0xf6bff5d1
+0,         49,         49,        1,    58624, 0x5cb3fa4a
+0,         50,         50,        1,    58624, 0xff9df93c
+0,         51,         51,        1,    58624, 0xff94f97c
+0,         52,         52,        1,    58624, 0xed7ff7f6
+0,         53,         53,        1,    58624, 0xbffbfc8b
+0,         54,         54,        1,    58624, 0x04fffb09
+0,         55,         55,        1,    58624, 0x89f8fc59
+0,         56,         56,        1,    58624, 0x50fcf89d
+0,         57,         57,        1,    58624, 0xc2e1fecb
+0,         58,         58,        1,    58624, 0x9785fcfe
+0,         59,         59,        1,    58624, 0x02f6fd3e
+0,         60,         60,        1,    58624, 0x685df9f7
+0,         61,         61,        1,    58624, 0x269afda3
+0,         62,         62,        1,    58624, 0x44f205a5
+0,         63,         63,        1,    58624, 0xdec702e2
+0,         64,         64,        1,    58624, 0x156804bc
+0,         65,         65,        1,    58624, 0xff5a05a4
+0,         66,         66,        1,    58624, 0xfb1e05b3
+0,         67,         67,        1,    58624, 0x9b97fb14
+0,         68,         68,        1,    58624, 0xe9cffa9b
+0,         69,         69,        1,    58624, 0x62cd03c3
+0,         70,         70,        1,    58624, 0xf7b10020
-- 
2.3.0



More information about the ffmpeg-devel mailing list