fate: add test for lut filter
authorPaul B Mahol <onemda@gmail.com>
Wed, 8 May 2013 09:04:16 +0000 (09:04 +0000)
committerPaul B Mahol <onemda@gmail.com>
Thu, 9 May 2013 10:37:58 +0000 (10:37 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
tests/fate/filter-video.mak
tests/ref/fate/filter-pixfmts-lut [new file with mode: 0644]

index 09126ca..9022670 100644 (file)
@@ -215,6 +215,9 @@ fate-filter-pixfmts-il:    CMD = pixfmts "luma_mode=d:chroma_mode=d:alpha_mode=d
 FATE_FILTER_PIXFMTS-$(CONFIG_KERNDEINT_FILTER) += fate-filter-pixfmts-kerndeint
 fate-filter-pixfmts-kerndeint: CMD = pixfmts "" "tinterlace=interleave_top,"
 
+FATE_FILTER_PIXFMTS-$(CONFIG_LUT_FILTER) += fate-filter-pixfmts-lut
+fate-filter-pixfmts-lut: CMD = pixfmts "c0=2*val:c1=2*val:c2=val/2:c3=negval+40"
+
 FATE_FILTER_PIXFMTS-$(CONFIG_NULL_FILTER) += fate-filter-pixfmts-null
 fate-filter-pixfmts-null:  CMD = pixfmts
 
diff --git a/tests/ref/fate/filter-pixfmts-lut b/tests/ref/fate/filter-pixfmts-lut
new file mode 100644 (file)
index 0000000..387464b
--- /dev/null
@@ -0,0 +1,19 @@
+abgr                c1e31c876e806cbfa8ef58441d1dee6f
+argb                1239bf03999d8767c2e03863e22955a8
+bgr24               0ed1377b8c34489e716650edb593494d
+bgra                87a4b656459a5f8ee2a0e5a994c61439
+rgb24               a1466d9fc7d1726dda3bfe80dfcc1b44
+rgba                980b5fb376926ca9c5a0a5b82a0ab162
+yuv410p             ec9e2e31c1c702676362f5445efd4354
+yuv411p             9caecd7961e1011db685cc4d60220fd1
+yuv420p             8796295e7d132dd0f616fed149633ad9
+yuv422p             2a3f79670546a0e582ab00cb83bb3b79
+yuv440p             d7e3ffabdb376f49a02cd641907df726
+yuv444p             13ef53a3dd3f77516e2c5237bf43b0c5
+yuva420p            34c07d6c05233f333a933a50a3dbfa61
+yuva422p            352406873ef88f865af0f27760f37663
+yuva444p            8efb7b3d809946fdf01f3c426a6cdf83
+yuvj420p            5a8771944ba995a831ca272526f440e5
+yuvj422p            ab379523c4e79ca1e3c72adc46b918ff
+yuvj440p            8e82847ed2f7a3a22ebdb2372e941fc4
+yuvj444p            4a98641643a7a51292c61c71e221ddc4