summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2016-10-24 17:22:55 -0400
committerVittorio Giovara <vittorio.giovara@gmail.com>2016-11-01 11:55:54 -0400
commitb90c8a3d08e3f9ad4de1253376d2d1d93abb8b8c (patch)
tree4aca9c11cf7d3a9cd9d480243976540031269141 /tests
parent7d308bf84bda78d47c01439ff625bb06624991a7 (diff)
fate: Add tests for mov display matrix
Rotation, sample/display aspect ratio and pure matrix export. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile1
-rwxr-xr-xtests/fate-run.sh4
-rw-r--r--tests/fate/mov.mak15
-rw-r--r--tests/ref/fate/mov-dar1
-rw-r--r--tests/ref/fate/mov-display-matrix9
-rw-r--r--tests/ref/fate/mov-rotation1
-rw-r--r--tests/ref/fate/mov-sar1
7 files changed, 32 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 36a3a72a9f..0e475a2836 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -97,6 +97,7 @@ include $(SRC_PATH)/tests/fate/lossless-audio.mak
include $(SRC_PATH)/tests/fate/lossless-video.mak
include $(SRC_PATH)/tests/fate/microsoft.mak
include $(SRC_PATH)/tests/fate/monkeysaudio.mak
+include $(SRC_PATH)/tests/fate/mov.mak
include $(SRC_PATH)/tests/fate/mp3.mak
include $(SRC_PATH)/tests/fate/mpc.mak
include $(SRC_PATH)/tests/fate/mpeg4.mak
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index d11ca3c1f7..b1b299a055 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -76,6 +76,10 @@ probefmt(){
run avprobe -show_format_entry format_name -v 0 "$@"
}
+probestream(){
+ run avprobe -show_stream_entry "$1" -v 0 "$2"
+}
+
avconv(){
dec_opts="-hwaccel $hwaccel -threads $threads -thread_type $thread_type"
avconv_args="-nostats -cpuflags $cpuflags"
diff --git a/tests/fate/mov.mak b/tests/fate/mov.mak
new file mode 100644
index 0000000000..909e4389d4
--- /dev/null
+++ b/tests/fate/mov.mak
@@ -0,0 +1,15 @@
+FATE_MOV += fate-mov-dar
+fate-mov-dar: CMD = probestream display_aspect_ratio $(TARGET_SAMPLES)/mov/displaymatrix.mov
+
+FATE_MOV += fate-mov-display-matrix
+fate-mov-display-matrix: CMD = probestream matrix $(TARGET_SAMPLES)/mov/displaymatrix.mov
+
+FATE_MOV += fate-mov-rotation
+fate-mov-rotation: CMD = probestream rotation $(TARGET_SAMPLES)/mov/displaymatrix.mov
+
+FATE_MOV += fate-mov-sar
+fate-mov-sar: CMD = probestream sample_aspect_ratio $(TARGET_SAMPLES)/mov/displaymatrix.mov
+
+$(FATE_MOV): avprobe$(EXESUF)
+FATE_SAMPLES-$(call ALLYES, AVPROBE MOV_DEMUXER) += $(FATE_MOV)
+fate-mov: $(FATE_MOV)
diff --git a/tests/ref/fate/mov-dar b/tests/ref/fate/mov-dar
new file mode 100644
index 0000000000..38a0ac45f8
--- /dev/null
+++ b/tests/ref/fate/mov-dar
@@ -0,0 +1 @@
+3:1
diff --git a/tests/ref/fate/mov-display-matrix b/tests/ref/fate/mov-display-matrix
new file mode 100644
index 0000000000..64c95996a6
--- /dev/null
+++ b/tests/ref/fate/mov-display-matrix
@@ -0,0 +1,9 @@
+0
+65536
+0
+-65536
+0
+0
+47185920
+0
+1073741824
diff --git a/tests/ref/fate/mov-rotation b/tests/ref/fate/mov-rotation
new file mode 100644
index 0000000000..64ded27fb2
--- /dev/null
+++ b/tests/ref/fate/mov-rotation
@@ -0,0 +1 @@
+-90
diff --git a/tests/ref/fate/mov-sar b/tests/ref/fate/mov-sar
new file mode 100644
index 0000000000..9f303fc9cb
--- /dev/null
+++ b/tests/ref/fate/mov-sar
@@ -0,0 +1 @@
+9:2