From 4d0876959f66451bb415aa77301be5947b2990b6 Mon Sep 17 00:00:00 2001
From: Martin Vignali <martin.vignali@gmail.com>
Date: Sat, 21 Oct 2017 19:27:25 +0200
Subject: [PATCH 5/5] fate/hapdec : add test for hapqa decoding

---
 tests/fate/video.mak                 | 9 +++++++++
 tests/ref/fate/hapqa-nosnappy-127x71 | 6 ++++++
 tests/ref/fate/hapqa-snappy1-127x71  | 6 ++++++
 tests/ref/fate/hapqa-snappy16-127x71 | 6 ++++++
 4 files changed, 27 insertions(+)
 create mode 100644 tests/ref/fate/hapqa-nosnappy-127x71
 create mode 100644 tests/ref/fate/hapqa-snappy1-127x71
 create mode 100644 tests/ref/fate/hapqa-snappy16-127x71

diff --git a/tests/fate/video.mak b/tests/fate/video.mak
index 6f76365165..6faffcc466 100644
--- a/tests/fate/video.mak
+++ b/tests/fate/video.mak
@@ -183,6 +183,15 @@ fate-hapy: CMD = framecrc -i $(TARGET_SAMPLES)/hap/hapy.mov
 FATE_HAP += fate-hap-chunk
 fate-hap-chunk: CMD = framecrc -i $(TARGET_SAMPLES)/hap/hapy-12-chunks.mov
 
+FATE_HAP += fate-hapqa-nosnappy-127x71
+fate-hapqa-nosnappy-127x71: CMD = framecrc -i $(TARGET_SAMPLES)/hap/HAPQA_NoSnappy_127x1.mov
+
+FATE_HAP += fate-hapqa-snappy1-127x71
+fate-hapqa-snappy1-127x71: CMD = framecrc -i $(TARGET_SAMPLES)/hap/HAPQA_Snappy_1chunk_127x1.mov
+
+FATE_HAP += fate-hapqa-snappy16-127x71
+fate-hapqa-snappy16-127x71: CMD = framecrc -i $(TARGET_SAMPLES)/hap/HAPQA_Snappy_16chunk_127x1.mov
+
 FATE_VIDEO-$(call DEMDEC, MOV, HAP) += $(FATE_HAP)
 fate-hap: $(FATE_HAP)
 
diff --git a/tests/ref/fate/hapqa-nosnappy-127x71 b/tests/ref/fate/hapqa-nosnappy-127x71
new file mode 100644
index 0000000000..36069b4849
--- /dev/null
+++ b/tests/ref/fate/hapqa-nosnappy-127x71
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 127x71
+#sar 0: 1/1
+0,          0,          0,        1,    36068, 0x16c0a011
diff --git a/tests/ref/fate/hapqa-snappy1-127x71 b/tests/ref/fate/hapqa-snappy1-127x71
new file mode 100644
index 0000000000..36069b4849
--- /dev/null
+++ b/tests/ref/fate/hapqa-snappy1-127x71
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 127x71
+#sar 0: 1/1
+0,          0,          0,        1,    36068, 0x16c0a011
diff --git a/tests/ref/fate/hapqa-snappy16-127x71 b/tests/ref/fate/hapqa-snappy16-127x71
new file mode 100644
index 0000000000..36069b4849
--- /dev/null
+++ b/tests/ref/fate/hapqa-snappy16-127x71
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 127x71
+#sar 0: 1/1
+0,          0,          0,        1,    36068, 0x16c0a011
-- 
2.11.0 (Apple Git-81)

