summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-29 01:56:31 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-29 02:16:26 +0200
commit706bd8ea19a6f723795547885714033ac68a4d74 (patch)
tree39f7933c9432b35801c81903fa7dc352de92fe95 /tests
parent0f8f9248471bbee5649c8efdc52d02c1cf93bba1 (diff)
parentc83f44dba11930744e167856b48fbc24a8ff0e63 (diff)
Merge remote-tracking branch 'qatar/master'
* qatar/master: (35 commits) h264_idct_10bit: port x86 assembly to cpuflags. x86inc: clip num_args to 7 on x86-32. x86inc: sync to latest version from x264. fft: rename "z" to "zc" to prevent name collision. wv: return meaningful error codes. wv: return AVERROR_EOF on EOF, not EIO. mp3dec: forward errors for av_get_packet(). mp3dec: remove a pointless local variable. mp3dec: remove commented out cruft. lavfi: bump minor to mark stabilizing the ABI. FATE: add tests for yadif. FATE: add a test for delogo video filter. FATE: add a test for amix audio filter. audiogen: allow specifying random seed as a commandline parameter. vc1dec: Override invalid macroblock quantizer vc1: avoid reading beyond the last line in vc1_draw_sprites() vc1dec: check that coded slice positions and interlacing match. vc1dec: Do not ignore ff_vc1_parse_frame_header_adv return value configure: Move parts that should not be user-selectable to CONFIG_EXTRA lavf: remove commented out cruft in avformat_find_stream_info() ... Conflicts: Makefile configure libavcodec/vc1dec.c libavcodec/x86/h264_deblock.asm libavcodec/x86/h264_deblock_10bit.asm libavcodec/x86/h264dsp_mmx.c libavfilter/version.h libavformat/mp3dec.c libavformat/utils.c libavformat/wv.c libavutil/x86/x86inc.asm Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/audiogen.c7
-rw-r--r--tests/fate/filter.mak36
-rw-r--r--tests/ref/fate/filter-delogo110
-rw-r--r--tests/ref/fate/filter-yadif-mode032
-rw-r--r--tests/ref/fate/filter-yadif-mode134
5 files changed, 217 insertions, 2 deletions
diff --git a/tests/audiogen.c b/tests/audiogen.c
index 5818797a65..07f0be32eb 100644
--- a/tests/audiogen.c
+++ b/tests/audiogen.c
@@ -144,8 +144,8 @@ int main(int argc, char **argv)
int nb_channels = 2;
char *ext;
- if (argc < 2 || argc > 4) {
- printf("usage: %s file [<sample rate> [<channels>]]\n"
+ if (argc < 2 || argc > 5) {
+ printf("usage: %s file [<sample rate> [<channels>] [<random seed>]]\n"
"generate a test raw 16 bit audio stream\n"
"If the file extension is .wav a WAVE header will be added.\n"
"default: 44100 Hz stereo\n", argv[0]);
@@ -168,6 +168,9 @@ int main(int argc, char **argv)
}
}
+ if (argc > 4)
+ seed = atoi(argv[4]);
+
outfile = fopen(argv[1], "wb");
if (!outfile) {
perror(argv[1]);
diff --git a/tests/fate/filter.mak b/tests/fate/filter.mak
index cd309abc4d..5e4c1537b8 100644
--- a/tests/fate/filter.mak
+++ b/tests/fate/filter.mak
@@ -1,3 +1,25 @@
+FATE_AMIX += fate-filter-amix-simple
+fate-filter-amix-simple: CMD = ffmpeg -filter_complex amix -i $(SRC) -ss 3 -i $(SRC1) -f f32le -
+fate-filter-amix-simple: REF = $(SAMPLES)/filter/amix_simple.pcm
+
+FATE_AMIX += fate-filter-amix-first
+fate-filter-amix-first: CMD = ffmpeg -filter_complex amix=duration=first -ss 4 -i $(SRC) -i $(SRC1) -f f32le -
+fate-filter-amix-first: REF = $(SAMPLES)/filter/amix_first.pcm
+
+FATE_AMIX += fate-filter-amix-transition
+fate-filter-amix-transition: tests/data/asynth-44100-2-3.wav
+fate-filter-amix-transition: SRC2 = $(TARGET_PATH)/tests/data/asynth-44100-2-3.wav
+fate-filter-amix-transition: CMD = ffmpeg -filter_complex amix=inputs=3:dropout_transition=0.5 -i $(SRC) -ss 2 -i $(SRC1) -ss 4 -i $(SRC2) -f f32le -
+fate-filter-amix-transition: REF = $(SAMPLES)/filter/amix_transition.pcm
+
+$(FATE_AMIX): tests/data/asynth-44100-2.wav tests/data/asynth-44100-2-2.wav
+$(FATE_AMIX): SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
+$(FATE_AMIX): SRC1 = $(TARGET_PATH)/tests/data/asynth-44100-2-2.wav
+$(FATE_AMIX): CMP = oneoff
+
+FATE_FILTER += $(FATE_AMIX)
+FATE_SAMPLES_AVCONV += $(FATE_AMIX)
+
FATE_ASYNCTS += fate-filter-asyncts
fate-filter-asyncts: SRC = $(SAMPLES)/nellymoser/nellymoser-discont.flv
fate-filter-asyncts: CMD = pcm -i $(SRC) -af aresample=min_comp=0.001:min_hard_comp=0.1
@@ -7,4 +29,18 @@ fate-filter-asyncts: REF = $(SAMPLES)/nellymoser/nellymoser-discont.pcm
FATE_FILTER += $(FATE_ASYNCTS)
FATE_SAMPLES_AVCONV += $(FATE_ASYNCTS)
+fate-filter-delogo: CMD = framecrc -i $(SAMPLES)/real/rv30.rm -vf delogo=show=0:x=290:y=25:w=26:h=16 -an
+
+FATE_FILTER += fate-filter-delogo
+FATE_SAMPLES_AVCONV += fate-filter-delogo
+
+FATE_YADIF += fate-filter-yadif-mode0
+fate-filter-yadif-mode0: CMD = framecrc -i $(SAMPLES)/mpeg2/mpeg2_field_encoding.ts -vf yadif=0
+
+FATE_YADIF += fate-filter-yadif-mode1
+fate-filter-yadif-mode1: CMD = framecrc -i $(SAMPLES)/mpeg2/mpeg2_field_encoding.ts -vf yadif=1
+
+FATE_FILTER += $(FATE_YADIF)
+FATE_SAMPLES_AVCONV += $(FATE_YADIF)
+
fate-filter: $(FATE_FILTER)
diff --git a/tests/ref/fate/filter-delogo b/tests/ref/fate/filter-delogo
new file mode 100644
index 0000000000..e0f24cd8ce
--- /dev/null
+++ b/tests/ref/fate/filter-delogo
@@ -0,0 +1,110 @@
+#tb 0: 32768/982057
+0, 0, 0, 1, 126720, 0x689de87e
+0, 1, 1, 1, 126720, 0x3db9e91c
+0, 2, 2, 1, 126720, 0x3db9e91c
+0, 3, 3, 1, 126720, 0x3db9e91c
+0, 4, 4, 1, 126720, 0xfa6ae95e
+0, 5, 5, 1, 126720, 0x5bcbf0e6
+0, 6, 6, 1, 126720, 0x94a0f126
+0, 7, 7, 1, 126720, 0x0250f106
+0, 8, 8, 1, 126720, 0xcf6ab4bc
+0, 9, 9, 1, 126720, 0x44aeb57c
+0, 10, 10, 1, 126720, 0x33b0b5bc
+0, 11, 11, 1, 126720, 0xc4bab591
+0, 12, 12, 1, 126720, 0xa492b5ec
+0, 13, 13, 1, 126720, 0x1459b85c
+0, 14, 14, 1, 126720, 0x806fb8dc
+0, 15, 15, 1, 126720, 0xd241b871
+0, 16, 16, 1, 126720, 0x698eb5cc
+0, 17, 17, 1, 126720, 0x4719aa98
+0, 18, 18, 1, 126720, 0x9ca1962c
+0, 19, 19, 1, 126720, 0x18cda460
+0, 20, 20, 1, 126720, 0xc230b716
+0, 21, 21, 1, 126720, 0x8451a4e2
+0, 22, 22, 1, 126720, 0x59e9a7ea
+0, 23, 23, 1, 126720, 0xc77ca73d
+0, 24, 24, 1, 126720, 0x725fb976
+0, 25, 25, 1, 126720, 0xb30da3b3
+0, 26, 26, 1, 126720, 0x7af2ea86
+0, 27, 27, 1, 126720, 0x40d4b4eb
+0, 28, 28, 1, 126720, 0x49d00307
+0, 29, 29, 1, 126720, 0x44c8848e
+0, 30, 30, 1, 126720, 0xc6990101
+0, 31, 31, 1, 126720, 0x2e01b963
+0, 32, 32, 1, 126720, 0xd0e903f0
+0, 33, 33, 1, 126720, 0x3457d592
+0, 34, 34, 1, 126720, 0x4f1ddb3c
+0, 35, 35, 1, 126720, 0x3980ace5
+0, 36, 36, 1, 126720, 0xb1e37954
+0, 37, 37, 1, 126720, 0x619fc554
+0, 38, 38, 1, 126720, 0x945fb39e
+0, 39, 39, 1, 126720, 0xb1d5e0ce
+0, 40, 40, 1, 126720, 0xf26e1dcc
+0, 41, 41, 1, 126720, 0x04d5783e
+0, 42, 42, 1, 126720, 0xbaa0479e
+0, 43, 43, 1, 126720, 0x20d88b01
+0, 44, 44, 1, 126720, 0x59d99901
+0, 45, 45, 1, 126720, 0x1c6e09f6
+0, 46, 46, 1, 126720, 0xeec50fc5
+0, 47, 47, 1, 126720, 0xb3a92827
+0, 48, 48, 1, 126720, 0xf62dd2b6
+0, 49, 49, 1, 126720, 0x75b1e619
+0, 50, 50, 1, 126720, 0x6bbce2c0
+0, 51, 51, 1, 126720, 0xd93e023c
+0, 52, 52, 1, 126720, 0xbbe8e7c2
+0, 53, 53, 1, 126720, 0x2272ec17
+0, 54, 54, 1, 126720, 0xf5e4ee6e
+0, 55, 55, 1, 126720, 0x751d2607
+0, 56, 56, 1, 126720, 0x44c499c9
+0, 57, 57, 1, 126720, 0xddccd842
+0, 58, 58, 1, 126720, 0x508dd214
+0, 59, 59, 1, 126720, 0x8eb10272
+0, 60, 60, 1, 126720, 0x7224b1c6
+0, 61, 61, 1, 126720, 0x50ff456c
+0, 62, 62, 1, 126720, 0xa81e2731
+0, 63, 63, 1, 126720, 0x7e50456d
+0, 64, 64, 1, 126720, 0x44802978
+0, 65, 65, 1, 126720, 0x86e88743
+0, 66, 66, 1, 126720, 0x0b1087d6
+0, 67, 67, 1, 126720, 0xb0227d21
+0, 68, 68, 1, 126720, 0x29d10bd2
+0, 69, 69, 1, 126720, 0x04b43afa
+0, 70, 70, 1, 126720, 0xb48e9698
+0, 71, 71, 1, 126720, 0x75d760fb
+0, 72, 72, 1, 126720, 0xa2ab1fdb
+0, 73, 73, 1, 126720, 0xec30a5ee
+0, 74, 74, 1, 126720, 0xbdab7c8c
+0, 75, 75, 1, 126720, 0xac5c3f2c
+0, 76, 76, 1, 126720, 0xce6350be
+0, 77, 77, 1, 126720, 0xb109657a
+0, 78, 78, 1, 126720, 0x723865a4
+0, 79, 79, 1, 126720, 0xa9869124
+0, 80, 80, 1, 126720, 0xc41af558
+0, 81, 81, 1, 126720, 0xcbe6a402
+0, 82, 82, 1, 126720, 0xb6735ecb
+0, 83, 83, 1, 126720, 0xba3059f2
+0, 84, 84, 1, 126720, 0xe7d63b8d
+0, 85, 85, 1, 126720, 0x8f115906
+0, 86, 86, 1, 126720, 0xaf6a8dcb
+0, 87, 87, 1, 126720, 0xb73e846e
+0, 88, 88, 1, 126720, 0xedd6380f
+0, 89, 89, 1, 126720, 0xd9026acf
+0, 90, 90, 1, 126720, 0xa03a650b
+0, 91, 91, 1, 126720, 0x262765bc
+0, 92, 92, 1, 126720, 0xaaa9ded1
+0, 93, 93, 1, 126720, 0xe4f42665
+0, 94, 94, 1, 126720, 0x78daf760
+0, 95, 95, 1, 126720, 0x3b0c6ef8
+0, 96, 96, 1, 126720, 0xb745df80
+0, 97, 97, 1, 126720, 0x08e57b90
+0, 98, 98, 1, 126720, 0x6f883ab0
+0, 99, 99, 1, 126720, 0x934b4dd5
+0, 100, 100, 1, 126720, 0x762f108f
+0, 101, 101, 1, 126720, 0x91ee0f2b
+0, 102, 102, 1, 126720, 0x9af6e5e8
+0, 103, 103, 1, 126720, 0xdcd95e0a
+0, 104, 104, 1, 126720, 0x22c33a6e
+0, 105, 105, 1, 126720, 0x21c1b7f4
+0, 106, 106, 1, 126720, 0x0a66a1ed
+0, 107, 107, 1, 126720, 0x53fea81b
+0, 108, 108, 1, 126720, 0x597f5567
diff --git a/tests/ref/fate/filter-yadif-mode0 b/tests/ref/fate/filter-yadif-mode0
new file mode 100644
index 0000000000..a25ea3e8c8
--- /dev/null
+++ b/tests/ref/fate/filter-yadif-mode0
@@ -0,0 +1,32 @@
+#tb 0: 1/25
+0, 9, 9, 1, 622080, 0x1511cae9
+0, 10, 10, 1, 622080, 0x6e77e746
+0, 11, 11, 1, 622080, 0x89aac777
+0, 12, 12, 1, 622080, 0x7e0a9335
+0, 13, 13, 1, 622080, 0x5f34759b
+0, 14, 14, 1, 622080, 0xfac498a6
+0, 15, 15, 1, 622080, 0xe60e7a9e
+0, 16, 16, 1, 622080, 0x44875bbd
+0, 17, 17, 1, 622080, 0xfa761aab
+0, 18, 18, 1, 622080, 0x59be119c
+0, 19, 19, 1, 622080, 0x21316b36
+0, 20, 20, 1, 622080, 0x929fde5b
+0, 21, 21, 1, 622080, 0xfca8990c
+0, 22, 22, 1, 622080, 0x1ec87d02
+0, 23, 23, 1, 622080, 0x5768eea0
+0, 24, 24, 1, 622080, 0x1a0894ab
+0, 25, 25, 1, 622080, 0xb4e61323
+0, 26, 26, 1, 622080, 0xb773341a
+0, 27, 27, 1, 622080, 0x8a914cf7
+0, 28, 28, 1, 622080, 0xf1cfbc7d
+0, 29, 29, 1, 622080, 0xebaeb317
+0, 30, 30, 1, 622080, 0xbae9adf4
+0, 31, 31, 1, 622080, 0x593544fd
+0, 32, 32, 1, 622080, 0x2cd8ec0b
+0, 33, 33, 1, 622080, 0x8032d9d4
+0, 34, 34, 1, 622080, 0x5c67ace7
+0, 35, 35, 1, 622080, 0x95714528
+0, 36, 36, 1, 622080, 0xa11cbed2
+0, 37, 37, 1, 622080, 0x7389f8f1
+0, 38, 38, 1, 622080, 0xa694f3f2
+0, 39, 39, 1, 622080, 0xac3a3d09
diff --git a/tests/ref/fate/filter-yadif-mode1 b/tests/ref/fate/filter-yadif-mode1
new file mode 100644
index 0000000000..1d13ebe8cb
--- /dev/null
+++ b/tests/ref/fate/filter-yadif-mode1
@@ -0,0 +1,34 @@
+#tb 0: 1/25
+0, 9, 9, 1, 622080, 0x1511cae9
+0, 10, 10, 1, 622080, 0xb88ca855
+0, 11, 11, 1, 622080, 0x6e77e746
+0, 12, 12, 1, 622080, 0x5da19198
+0, 13, 13, 1, 622080, 0xee31c8a8
+0, 14, 14, 1, 622080, 0xcbb7aac5
+0, 15, 15, 1, 622080, 0x19972f1a
+0, 16, 16, 1, 622080, 0xac7d34b9
+0, 17, 17, 1, 622080, 0x4adfe592
+0, 18, 18, 1, 622080, 0x5d738330
+0, 19, 19, 1, 622080, 0xb60b4447
+0, 20, 20, 1, 622080, 0x1e11acf4
+0, 21, 21, 1, 622080, 0x5ed635d0
+0, 22, 22, 1, 622080, 0x939857af
+0, 23, 23, 1, 622080, 0x530b28fd
+0, 24, 24, 1, 622080, 0x3bc0d5d3
+0, 25, 25, 1, 622080, 0x77e0fe99
+0, 26, 26, 1, 622080, 0xd2151c1e
+0, 27, 27, 1, 622080, 0xe021a815
+0, 28, 28, 1, 622080, 0xceae4f12
+0, 29, 29, 1, 622080, 0x4c2f3330
+0, 30, 30, 1, 622080, 0xf534c392
+0, 31, 31, 1, 622080, 0x88f01c11
+0, 32, 32, 1, 622080, 0x654d5df2
+0, 33, 33, 1, 622080, 0x89ef6f8a
+0, 34, 34, 1, 622080, 0x78a7b5f1
+0, 35, 35, 1, 622080, 0x8152d67f
+0, 36, 36, 1, 622080, 0x6590ff5f
+0, 37, 37, 1, 622080, 0x51d2be96
+0, 38, 38, 1, 622080, 0x483f65f7
+0, 39, 39, 1, 622080, 0x7a69143d
+0, 40, 40, 1, 622080, 0xeccc58ff
+0, 41, 41, 1, 622080, 0xc4d2c370