[FFmpeg-cvslog] fate: add tests for lagarith lossless video codec.

Ronald S. Bultje git at videolan.org
Sat Aug 4 23:54:14 CEST 2012


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Thu Aug  2 20:45:29 2012 -0700| [c5d5d178800daf6ea22530cfc9a5f5f0036d6f1a] | committer: Ronald S. Bultje

fate: add tests for lagarith lossless video codec.

Based on patch by Oana Stratulat <oanaandreeastratulat at gmail.com>.

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

 tests/fate/lossless-video.mak |   15 +++++++++++++++
 tests/ref/fate/lagarith-rgb24 |    5 +++++
 tests/ref/fate/lagarith-rgb32 |   26 ++++++++++++++++++++++++++
 tests/ref/fate/lagarith-yuy2  |    2 ++
 tests/ref/fate/lagarith-yv12  |    3 +++
 5 files changed, 51 insertions(+)

diff --git a/tests/fate/lossless-video.mak b/tests/fate/lossless-video.mak
index 4871296..2ac3dd3 100644
--- a/tests/fate/lossless-video.mak
+++ b/tests/fate/lossless-video.mak
@@ -1,3 +1,18 @@
+FATE_LAGARITH += fate-lagarith-rgb24
+fate-lagarith-rgb24: CMD = framecrc -i $(SAMPLES)/lagarith/lag-rgb24.avi
+
+FATE_LAGARITH += fate-lagarith-rgb32
+fate-lagarith-rgb32: CMD = framecrc -i $(SAMPLES)/lagarith/lag-rgb32.avi
+
+FATE_LAGARITH += fate-lagarith-yuy2
+fate-lagarith-yuy2: CMD = framecrc -i $(SAMPLES)/lagarith/lag-yuy2.avi
+
+FATE_LAGARITH += fate-lagarith-yv12
+fate-lagarith-yv12: CMD = framecrc -i $(SAMPLES)/lagarith/lag-yv12.avi
+
+FATE_SAMPLES_AVCONV += $(FATE_LAGARITH)
+fate-lagarith: $(FATE_LAGARITH)
+
 FATE_LOCO += fate-loco-rgb
 fate-loco-rgb: CMD = framecrc -i $(SAMPLES)/loco/pig-loco-rgb.avi
 
diff --git a/tests/ref/fate/lagarith-rgb24 b/tests/ref/fate/lagarith-rgb24
new file mode 100644
index 0000000..1eb2bc4
--- /dev/null
+++ b/tests/ref/fate/lagarith-rgb24
@@ -0,0 +1,5 @@
+#tb 0: 100/2997
+0,          0,          0,        1,   368640, 0x26f74db2
+0,          1,          1,        1,   368640, 0x63b29ea4
+0,          2,          2,        1,   368640, 0x19467f03
+0,          3,          3,        1,   368640, 0x5fdc3575
diff --git a/tests/ref/fate/lagarith-rgb32 b/tests/ref/fate/lagarith-rgb32
new file mode 100644
index 0000000..490e2e5
--- /dev/null
+++ b/tests/ref/fate/lagarith-rgb32
@@ -0,0 +1,26 @@
+#tb 0: 1001/24000
+0,          0,          0,        1,  1382400, 0x00000000
+0,          1,          1,        1,  1382400, 0x00000000
+0,          2,          2,        1,  1382400, 0x00000000
+0,          3,          3,        1,  1382400, 0x00000000
+0,          4,          4,        1,  1382400, 0x00000000
+0,          5,          5,        1,  1382400, 0xf95bde46
+0,          6,          6,        1,  1382400, 0x4f4c0393
+0,          7,          7,        1,  1382400, 0xe5aa40db
+0,          8,          8,        1,  1382400, 0xc25a8ba2
+0,          9,          9,        1,  1382400, 0x9db3150d
+0,         10,         10,        1,  1382400, 0x730e64b3
+0,         11,         11,        1,  1382400, 0xf8fd7edf
+0,         12,         12,        1,  1382400, 0x0114798a
+0,         13,         13,        1,  1382400, 0x7571210f
+0,         14,         14,        1,  1382400, 0x552ae59d
+0,         15,         15,        1,  1382400, 0x7ae0c946
+0,         16,         16,        1,  1382400, 0x0818c3ef
+0,         17,         17,        1,  1382400, 0x8257cac4
+0,         18,         18,        1,  1382400, 0x7762a979
+0,         19,         19,        1,  1382400, 0x282af57a
+0,         20,         20,        1,  1382400, 0x3f42de50
+0,         21,         21,        1,  1382400, 0xc42d5f93
+0,         22,         22,        1,  1382400, 0x18775c90
+0,         23,         23,        1,  1382400, 0x34befa90
+0,         24,         24,        1,  1382400, 0xd33d5f53
diff --git a/tests/ref/fate/lagarith-yuy2 b/tests/ref/fate/lagarith-yuy2
new file mode 100644
index 0000000..c5aed92
--- /dev/null
+++ b/tests/ref/fate/lagarith-yuy2
@@ -0,0 +1,2 @@
+#tb 0: 1/10
+0,          0,          0,        1,  1572864, 0xeed76a7d
diff --git a/tests/ref/fate/lagarith-yv12 b/tests/ref/fate/lagarith-yv12
new file mode 100644
index 0000000..c9c9ff3
--- /dev/null
+++ b/tests/ref/fate/lagarith-yv12
@@ -0,0 +1,3 @@
+#tb 0: 1/60
+0,          0,          0,        1,    92160, 0x1dfdf5c1
+0,          1,          1,        1,    92160, 0x6965884f



More information about the ffmpeg-cvslog mailing list