Browse Source

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>
tags/n3.3
Vittorio Giovara 8 years ago
parent
commit
b90c8a3d08
7 changed files with 32 additions and 0 deletions
  1. +1
    -0
      tests/Makefile
  2. +4
    -0
      tests/fate-run.sh
  3. +15
    -0
      tests/fate/mov.mak
  4. +1
    -0
      tests/ref/fate/mov-dar
  5. +9
    -0
      tests/ref/fate/mov-display-matrix
  6. +1
    -0
      tests/ref/fate/mov-rotation
  7. +1
    -0
      tests/ref/fate/mov-sar

+ 1
- 0
tests/Makefile View File

@@ -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/lossless-video.mak
include $(SRC_PATH)/tests/fate/microsoft.mak include $(SRC_PATH)/tests/fate/microsoft.mak
include $(SRC_PATH)/tests/fate/monkeysaudio.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/mp3.mak
include $(SRC_PATH)/tests/fate/mpc.mak include $(SRC_PATH)/tests/fate/mpc.mak
include $(SRC_PATH)/tests/fate/mpeg4.mak include $(SRC_PATH)/tests/fate/mpeg4.mak


+ 4
- 0
tests/fate-run.sh View File

@@ -76,6 +76,10 @@ probefmt(){
run avprobe -show_format_entry format_name -v 0 "$@" run avprobe -show_format_entry format_name -v 0 "$@"
} }


probestream(){
run avprobe -show_stream_entry "$1" -v 0 "$2"
}

avconv(){ avconv(){
dec_opts="-hwaccel $hwaccel -threads $threads -thread_type $thread_type" dec_opts="-hwaccel $hwaccel -threads $threads -thread_type $thread_type"
avconv_args="-nostats -cpuflags $cpuflags" avconv_args="-nostats -cpuflags $cpuflags"


+ 15
- 0
tests/fate/mov.mak View File

@@ -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)

+ 1
- 0
tests/ref/fate/mov-dar View File

@@ -0,0 +1 @@
3:1

+ 9
- 0
tests/ref/fate/mov-display-matrix View File

@@ -0,0 +1,9 @@
0
65536
0
-65536
0
0
47185920
0
1073741824

+ 1
- 0
tests/ref/fate/mov-rotation View File

@@ -0,0 +1 @@
-90

+ 1
- 0
tests/ref/fate/mov-sar View File

@@ -0,0 +1 @@
9:2

Loading…
Cancel
Save