Rotation, aspect ratio and pure matrix export.

Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com>
---
 tests/Makefile                    |  1 +
 tests/fate-run.sh                 |  5 +++++
 tests/fate/mov.mak                | 12 ++++++++++++
 tests/ref/fate/mov-ar             |  2 ++
 tests/ref/fate/mov-display-matrix |  9 +++++++++
 tests/ref/fate/mov-rotation       |  1 +
 6 files changed, 30 insertions(+)
 create mode 100644 tests/fate/mov.mak
 create mode 100644 tests/ref/fate/mov-ar
 create mode 100644 tests/ref/fate/mov-display-matrix
 create mode 100644 tests/ref/fate/mov-rotation

diff --git a/tests/Makefile b/tests/Makefile
index 36a3a72..0e475a2 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 d11ca3c..d1b4aef 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -76,6 +76,11 @@ probefmt(){
     run avprobe -show_format_entry format_name -v 0 "$@"
 }
 
+probear(){
+    run avprobe -show_stream_entry sample_aspect_ratio -v 0 "$@"
+    run avprobe -show_stream_entry display_aspect_ratio -v 0 "$@"
+}
+
 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 0000000..cbe34c2
--- /dev/null
+++ b/tests/fate/mov.mak
@@ -0,0 +1,12 @@
+FATE_MOV += fate-mov-display-matrix
+fate-mov-display-matrix: CMD = run avprobe -v 0 -show_stream_entry matrix 
$(TARGET_SAMPLES)/mov/displaymatrix.mov
+
+FATE_MOV += fate-mov-rotation
+fate-mov-rotation: CMD = run avprobe -v 0 -show_stream_entry rotation 
$(TARGET_SAMPLES)/mov/displaymatrix.mov
+
+FATE_MOV += fate-mov-ar
+fate-mov-ar: CMD = probear $(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-ar b/tests/ref/fate/mov-ar
new file mode 100644
index 0000000..13cbd9c
--- /dev/null
+++ b/tests/ref/fate/mov-ar
@@ -0,0 +1,2 @@
+9:2
+3:1
diff --git a/tests/ref/fate/mov-display-matrix 
b/tests/ref/fate/mov-display-matrix
new file mode 100644
index 0000000..64c9599
--- /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 0000000..64ded27
--- /dev/null
+++ b/tests/ref/fate/mov-rotation
@@ -0,0 +1 @@
+-90
-- 
2.10.0

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to