Rotation, aspect ratio and pure matrix export.

Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com>
---
Updated according to Diego's review.
I haven't split the AR tests, I think it makes sense to have it in a single
one, but if people strongly prefer the split version, I'll change it.
Vittorio

 tests/fate-run.sh                 |  4 ++++
 tests/fate/probe.mak              | 14 +++++++++++++-
 tests/ref/fate/mov-ar             |  2 ++
 tests/ref/fate/mov-display-matrix |  9 +++++++++
 tests/ref/fate/mov-rotation       |  1 +
 5 files changed, 29 insertions(+), 1 deletion(-)
 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/fate-run.sh b/tests/fate-run.sh
index d11ca3c..b1b299a 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/probe.mak b/tests/fate/probe.mak
index 376dfdd..8b9b5dd 100644
--- a/tests/fate/probe.mak
+++ b/tests/fate/probe.mak
@@ -13,6 +13,18 @@ fate-probe-format-roundup2015: REF = dv
 FATE_SAMPLES-$(CONFIG_AVPROBE) += $(FATE_PROBE_FORMAT)
 fate-probe-format: $(FATE_PROBE_FORMAT)
 
-$(FATE_PROBE_FORMAT): avprobe$(EXESUF)
+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-ar
+fate-mov-ar: CMD = probestream sample_aspect_ratio 
$(TARGET_SAMPLES)/mov/displaymatrix.mov && probestream display_aspect_ratio 
$(TARGET_SAMPLES)/mov/displaymatrix.mov
+
+FATE_SAMPLES-$(call ALLYES, AVPROBE MOV_DEMUXER) += $(FATE_MOV)
+fate-mov: $(FATE_MOV)
+
+$(FATE_PROBE_FORMAT) $(FATE_MOV): avprobe$(EXESUF)
 $(FATE_PROBE_FORMAT): CMP = oneline
 fate-probe-format-%: CMD = probefmt 
$(TARGET_SAMPLES)/probe-format/$(@:fate-probe-format-%=%)
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