[FFmpeg-cvslog] fate/hap : add test for hap encoding

Martin Vignali git at videolan.org
Tue Mar 13 21:28:20 EET 2018


ffmpeg | branch: master | Martin Vignali <martin.vignali at gmail.com> | Sun Mar 11 19:34:54 2018 +0100| [f56ee7403384a7aae0f5ee5aa76da0dedfdd7c35] | committer: Martin Vignali

fate/hap : add test for hap encoding

with and without snappy compression
with chunk 1 or chunk 16
for hap, hapa, and hapq

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

 tests/fate/hap.mak                  | 38 +++++++++++++++++++++++++++++++++++++
 tests/ref/fate/hapenc-hap-none      | 14 ++++++++++++++
 tests/ref/fate/hapenc-hap-snappy1   | 14 ++++++++++++++
 tests/ref/fate/hapenc-hap-snappy16  | 14 ++++++++++++++
 tests/ref/fate/hapenc-hapa-none     | 14 ++++++++++++++
 tests/ref/fate/hapenc-hapa-snappy1  | 14 ++++++++++++++
 tests/ref/fate/hapenc-hapa-snappy16 | 14 ++++++++++++++
 tests/ref/fate/hapenc-hapq-none     | 14 ++++++++++++++
 tests/ref/fate/hapenc-hapq-snappy1  | 14 ++++++++++++++
 tests/ref/fate/hapenc-hapq-snappy16 | 14 ++++++++++++++
 10 files changed, 164 insertions(+)

diff --git a/tests/fate/hap.mak b/tests/fate/hap.mak
index b48123a3cd..98a85806d7 100644
--- a/tests/fate/hap.mak
+++ b/tests/fate/hap.mak
@@ -27,3 +27,41 @@ fate-hap-alpha-only-snappy-127x71: CMD = framecrc -i $(TARGET_SAMPLES)/hap/HapAl
 
 FATE_SAMPLES_AVCONV-$(call DEMDEC, MOV, HAP) += $(FATE_HAP)
 fate-hap: $(FATE_HAP)
+
+
+fate-hapenc%: CMD = framemd5 -f image2 -c:v pgmyuv -i $(TARGET_PATH)/tests/vsynth1/%02d.pgm -sws_flags +accurate_rnd+bitexact -vframes 5 -c:v hap ${OPTS}
+
+FATE_HAPENC += fate-hapenc-hap-none
+fate-hapenc-hap-none: OPTS = -pix_fmt rgba -format hap -compressor none
+
+FATE_HAPENC += fate-hapenc-hap-snappy1
+fate-hapenc-hap-snappy1: OPTS = -pix_fmt rgba -format hap -compressor snappy -chunks 1
+
+FATE_HAPENC += fate-hapenc-hap-snappy16
+fate-hapenc-hap-snappy16: OPTS = -pix_fmt rgba -format hap -compressor snappy -chunks 16
+
+
+FATE_HAPENC += fate-hapenc-hapa-none
+fate-hapenc-hapa-none: OPTS = -pix_fmt rgba -format hap_alpha -compressor none
+
+FATE_HAPENC += fate-hapenc-hapa-snappy1
+fate-hapenc-hapa-snappy1: OPTS = -pix_fmt rgba -format hap_alpha -compressor snappy -chunks 1
+
+FATE_HAPENC += fate-hapenc-hapa-snappy16
+fate-hapenc-hapa-snappy16: OPTS = -pix_fmt rgba -format hap_alpha -compressor snappy -chunks 16
+
+
+FATE_HAPENC += fate-hapenc-hapq-none
+fate-hapenc-hapq-none: OPTS = -pix_fmt rgba -format hap_q -compressor none
+
+FATE_HAPENC += fate-hapenc-hapq-snappy1
+fate-hapenc-hapq-snappy1: OPTS = -pix_fmt rgba -format hap_q -compressor snappy -chunks 1
+
+FATE_HAPENC += fate-hapenc-hapq-snappy16
+fate-hapenc-hapq-snappy16: OPTS = -pix_fmt rgba -format hap_q -compressor snappy -chunks 16
+
+
+$(FATE_HAPENC): $(VREF)
+
+FATE_AVCONV-$(call ENCMUX, HAP, MOV) += $(FATE_HAPENC)
+fate-hapenc: $(FATE_HAPENC)
diff --git a/tests/ref/fate/hapenc-hap-none b/tests/ref/fate/hapenc-hap-none
new file mode 100644
index 0000000000..22c8b2c751
--- /dev/null
+++ b/tests/ref/fate/hapenc-hap-none
@@ -0,0 +1,14 @@
+#format: frame checksums
+#version: 2
+#hash: MD5
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: hap
+#dimensions 0: 352x288
+#sar 0: 0/1
+#stream#, dts,        pts, duration,     size, hash
+0,          0,          0,        1,    50696, 7fd5bc08f7b96326953ba6926cb06109
+0,          1,          1,        1,    50696, 24d172f2ea03994add2596a48151fca8
+0,          2,          2,        1,    50696, e5f2bac02ad850eb769007694a2f7acc
+0,          3,          3,        1,    50696, 26042fbce3868ad012b0b4557fd95d8a
+0,          4,          4,        1,    50696, 80902dd47d1211f1cd388652d5e0a797
diff --git a/tests/ref/fate/hapenc-hap-snappy1 b/tests/ref/fate/hapenc-hap-snappy1
new file mode 100644
index 0000000000..53b5c7d626
--- /dev/null
+++ b/tests/ref/fate/hapenc-hap-snappy1
@@ -0,0 +1,14 @@
+#format: frame checksums
+#version: 2
+#hash: MD5
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: hap
+#dimensions 0: 352x288
+#sar 0: 0/1
+#stream#, dts,        pts, duration,     size, hash
+0,          0,          0,        1,    38199, e9a458a776d7f32d5d01ba9d2a1e9242
+0,          1,          1,        1,    38475, 0f134741aaf9532629c6163c90e5d779
+0,          2,          2,        1,    39157, 39c2b6b8c308af8e5d6a9eef92e8e8dc
+0,          3,          3,        1,    38674, 7cc1dfb3cb636181237a7ecd67d17614
+0,          4,          4,        1,    38360, 05d0bcfa66349e41db6e42134cc47121
diff --git a/tests/ref/fate/hapenc-hap-snappy16 b/tests/ref/fate/hapenc-hap-snappy16
new file mode 100644
index 0000000000..ab0771bf61
--- /dev/null
+++ b/tests/ref/fate/hapenc-hap-snappy16
@@ -0,0 +1,14 @@
+#format: frame checksums
+#version: 2
+#hash: MD5
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: hap
+#dimensions 0: 352x288
+#sar 0: 0/1
+#stream#, dts,        pts, duration,     size, hash
+0,          0,          0,        1,    42239, ad3bdee68ffa054fa2bdd3fbc083e39c
+0,          1,          1,        1,    42268, 5b96644be5f424bc04e5695f58f6c238
+0,          2,          2,        1,    42703, 6d6ea64b8808625638bb5e3e065042c1
+0,          3,          3,        1,    42170, 307615782d52350c1379caefc79123ab
+0,          4,          4,        1,    42005, 5dfcc935564600944eb7b8a3a82fb569
diff --git a/tests/ref/fate/hapenc-hapa-none b/tests/ref/fate/hapenc-hapa-none
new file mode 100644
index 0000000000..9aa80ae83d
--- /dev/null
+++ b/tests/ref/fate/hapenc-hapa-none
@@ -0,0 +1,14 @@
+#format: frame checksums
+#version: 2
+#hash: MD5
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: hap
+#dimensions 0: 352x288
+#sar 0: 0/1
+#stream#, dts,        pts, duration,     size, hash
+0,          0,          0,        1,   101384, 7bd1e603a54fb468242c9e00b0a90359
+0,          1,          1,        1,   101384, 09bf0e48db9bf465f3d89a192ddfda2d
+0,          2,          2,        1,   101384, 4993a96ed5f5d2bc0f0ff2080622eed2
+0,          3,          3,        1,   101384, 5cdbd0f763ba40366816588160ec73c2
+0,          4,          4,        1,   101384, 9202fe8358efde2c92c75210ed93c118
diff --git a/tests/ref/fate/hapenc-hapa-snappy1 b/tests/ref/fate/hapenc-hapa-snappy1
new file mode 100644
index 0000000000..add69139fa
--- /dev/null
+++ b/tests/ref/fate/hapenc-hapa-snappy1
@@ -0,0 +1,14 @@
+#format: frame checksums
+#version: 2
+#hash: MD5
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: hap
+#dimensions 0: 352x288
+#sar 0: 0/1
+#stream#, dts,        pts, duration,     size, hash
+0,          0,          0,        1,    47912, ac94f44194b154b15b7008ef38ae2343
+0,          1,          1,        1,    48244, 21bff8df4137fdde2c836ea4c5aa10e0
+0,          2,          2,        1,    49175, 4a6053f4f81259ad201d10ac83e47524
+0,          3,          3,        1,    48159, 90df8d03d9d7bc99a22e439e4d79e9fc
+0,          4,          4,        1,    47932, 8e719e872130057df3d3580f62693733
diff --git a/tests/ref/fate/hapenc-hapa-snappy16 b/tests/ref/fate/hapenc-hapa-snappy16
new file mode 100644
index 0000000000..08613c011a
--- /dev/null
+++ b/tests/ref/fate/hapenc-hapa-snappy16
@@ -0,0 +1,14 @@
+#format: frame checksums
+#version: 2
+#hash: MD5
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: hap
+#dimensions 0: 352x288
+#sar 0: 0/1
+#stream#, dts,        pts, duration,     size, hash
+0,          0,          0,        1,    50172, d6100c76b42d6926497ff8c38d4ad5fb
+0,          1,          1,        1,    50342, 62902c55f89169cb4dd46943e21f6f4a
+0,          2,          2,        1,    51244, 64f44a60052dfbdd315e485f2ced97eb
+0,          3,          3,        1,    50266, 05cd86de81a7e4e44ce9d1489d839ffa
+0,          4,          4,        1,    50056, 2ee4234d16f3f13bec7ace5c8c2a94f5
diff --git a/tests/ref/fate/hapenc-hapq-none b/tests/ref/fate/hapenc-hapq-none
new file mode 100644
index 0000000000..ee467b6753
--- /dev/null
+++ b/tests/ref/fate/hapenc-hapq-none
@@ -0,0 +1,14 @@
+#format: frame checksums
+#version: 2
+#hash: MD5
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: hap
+#dimensions 0: 352x288
+#sar 0: 0/1
+#stream#, dts,        pts, duration,     size, hash
+0,          0,          0,        1,   101384, cb6ef787ae7adff965ba4904a57c2188
+0,          1,          1,        1,   101384, 7cd50676c256354c06f728a265556efd
+0,          2,          2,        1,   101384, 454b14f7770a1f57830a678ea6e24b86
+0,          3,          3,        1,   101384, 6e6c088ed068d05870976fe78a75bb30
+0,          4,          4,        1,   101384, ba79bd8e7fc5d8919b174f0c8ea82753
diff --git a/tests/ref/fate/hapenc-hapq-snappy1 b/tests/ref/fate/hapenc-hapq-snappy1
new file mode 100644
index 0000000000..f22815057f
--- /dev/null
+++ b/tests/ref/fate/hapenc-hapq-snappy1
@@ -0,0 +1,14 @@
+#format: frame checksums
+#version: 2
+#hash: MD5
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: hap
+#dimensions 0: 352x288
+#sar 0: 0/1
+#stream#, dts,        pts, duration,     size, hash
+0,          0,          0,        1,    78214, a84391a7ca12ae34b7fea3e65c75a576
+0,          1,          1,        1,    79137, 2a75402a0e5a5e009cd16b341939fefd
+0,          2,          2,        1,    80273, 67a555ea3e38cdcd76c03761a426c424
+0,          3,          3,        1,    78672, c3f883869d6cda0bb96e7c629faaefd2
+0,          4,          4,        1,    78941, 219761cabd005f8e7904a248ffbbcf8f
diff --git a/tests/ref/fate/hapenc-hapq-snappy16 b/tests/ref/fate/hapenc-hapq-snappy16
new file mode 100644
index 0000000000..eac1799611
--- /dev/null
+++ b/tests/ref/fate/hapenc-hapq-snappy16
@@ -0,0 +1,14 @@
+#format: frame checksums
+#version: 2
+#hash: MD5
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: hap
+#dimensions 0: 352x288
+#sar 0: 0/1
+#stream#, dts,        pts, duration,     size, hash
+0,          0,          0,        1,    81934, ad9ee8c455704cad6c641479085d81dd
+0,          1,          1,        1,    82165, dde5dfcfa5507c3f943d4186490e9fa6
+0,          2,          2,        1,    83238, b1c9f8ce21d75e61dcd9d69726fd32cf
+0,          3,          3,        1,    81773, 0ccaca5d91a1e41b0cb132826352be6f
+0,          4,          4,        1,    82174, a629612d432620e61b82ac2f7c9a3619



More information about the ffmpeg-cvslog mailing list