aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-20 14:07:44 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-20 14:26:34 +0200
commitf230b9671f9ea81617a87a5c4e49a9d7aa4ac085 (patch)
tree62d5faacd7bd7f765886510b1952ae6860a111c7 /tests
parent50ee17340b9fc2aca04fb41169ef90a290248141 (diff)
downloadffmpeg-f230b9671f9ea81617a87a5c4e49a9d7aa4ac085.tar.gz
fate: add avfilter/formats-test
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/fate/filter-audio.mak4
-rw-r--r--tests/ref/fate/filter-formats85
2 files changed, 89 insertions, 0 deletions
diff --git a/tests/fate/filter-audio.mak b/tests/fate/filter-audio.mak
index 210b89eb07..2669498afd 100644
--- a/tests/fate/filter-audio.mak
+++ b/tests/fate/filter-audio.mak
@@ -92,5 +92,9 @@ fate-filter-volume: CMD = md5 -i $(SRC) -af aperms=random,volume=precision=fixed
fate-filter-volume: CMP = oneline
fate-filter-volume: REF = 4d6ba75ef3e32d305d066b9bc771d6f4
+FATE_AFILTER-yes += fate-filter-formats
+fate-filter-formats: libavfilter/formats-test$(EXESUF)
+fate-filter-formats: CMD = run libavfilter/formats-test
+
FATE_SAMPLES_AVCONV += $(FATE_AFILTER-yes)
fate-afilter: $(FATE_AFILTER-yes)
diff --git a/tests/ref/fate/filter-formats b/tests/ref/fate/filter-formats
new file mode 100644
index 0000000000..0e214167c5
--- /dev/null
+++ b/tests/ref/fate/filter-formats
@@ -0,0 +1,85 @@
+mono
+2 channels (FC+LFE)
+stereo
+2.1
+3.0
+3.1
+3 channels (FC+BL+BR)
+4 channels (FC+LFE+BL+BR)
+quad
+5 channels (FL+FR+LFE+BL+BR)
+5.0
+5.1
+2 channels (FC+BC)
+3 channels (FC+LFE+BC)
+3.0(back)
+4 channels (FL+FR+LFE+BC)
+4.0
+4.1
+3 channels (FC+SL+SR)
+4 channels (FC+LFE+SL+SR)
+quad(side)
+5 channels (FL+FR+LFE+SL+SR)
+5.0(side)
+5.1(side)
+5 channels (FC+BL+BR+SL+SR)
+6 channels (FC+LFE+BL+BR+SL+SR)
+6 channels (FL+FR+BL+BR+SL+SR)
+7 channels (FL+FR+LFE+BL+BR+SL+SR)
+7.0
+7.1
+4 channels (FC+BC+SL+SR)
+5 channels (FC+LFE+BC+SL+SR)
+5 channels (FL+FR+BC+SL+SR)
+6 channels (FL+FR+LFE+BC+SL+SR)
+6.0
+6.1
+3 channels (FC+DL+DR)
+4 channels (FC+LFE+DL+DR)
+4 channels (FL+FR+DL+DR)
+5 channels (FL+FR+LFE+DL+DR)
+5 channels (FL+FR+FC+DL+DR)
+6 channels (FL+FR+FC+LFE+DL+DR)
+5 channels (FC+BL+BR+DL+DR)
+6 channels (FC+LFE+BL+BR+DL+DR)
+6 channels (FL+FR+BL+BR+DL+DR)
+7 channels (FL+FR+LFE+BL+BR+DL+DR)
+7 channels (FL+FR+FC+BL+BR+DL+DR)
+8 channels (FL+FR+FC+LFE+BL+BR+DL+DR)
+4 channels (FC+BC+DL+DR)
+5 channels (FC+LFE+BC+DL+DR)
+5 channels (FL+FR+BC+DL+DR)
+6 channels (FL+FR+LFE+BC+DL+DR)
+6 channels (FL+FR+FC+BC+DL+DR)
+7 channels (FL+FR+FC+LFE+BC+DL+DR)
+5 channels (FC+SL+SR+DL+DR)
+6 channels (FC+LFE+SL+SR+DL+DR)
+6 channels (FL+FR+SL+SR+DL+DR)
+7 channels (FL+FR+LFE+SL+SR+DL+DR)
+7 channels (FL+FR+FC+SL+SR+DL+DR)
+8 channels (FL+FR+FC+LFE+SL+SR+DL+DR)
+7 channels (FC+BL+BR+SL+SR+DL+DR)
+8 channels (FC+LFE+BL+BR+SL+SR+DL+DR)
+8 channels (FL+FR+BL+BR+SL+SR+DL+DR)
+6 channels (FC+BC+SL+SR+DL+DR)
+7 channels (FC+LFE+BC+SL+SR+DL+DR)
+7 channels (FL+FR+BC+SL+SR+DL+DR)
+8 channels (FL+FR+LFE+BC+SL+SR+DL+DR)
+8 channels (FL+FR+FC+BC+SL+SR+DL+DR)
+-1 = ff_parse_channel_layout(FFFFFFFFFFFFFFFF, -1, blah);
+0 = ff_parse_channel_layout(0000000000000004, 1, 1);
+0 = ff_parse_channel_layout(0000000000000003, 2, 2);
+0 = ff_parse_channel_layout(FFFFFFFFFFFFFFFF, 64, -1);
+0 = ff_parse_channel_layout(000000000000003C, 4, 60);
+0 = ff_parse_channel_layout(0000000000000041, 2, 65);
+0 = ff_parse_channel_layout(0000000000000000, 1, 1c);
+0 = ff_parse_channel_layout(0000000000000000, 2, 2c);
+-1 = ff_parse_channel_layout(FFFFFFFFFFFFFFFF, -1, -1c);
+0 = ff_parse_channel_layout(0000000000000000, 60, 60c);
+-1 = ff_parse_channel_layout(FFFFFFFFFFFFFFFF, -1, 65c);
+0 = ff_parse_channel_layout(000000000000003F, 6, 5.1);
+0 = ff_parse_channel_layout(0000000000000003, 2, stereo);
+0 = ff_parse_channel_layout(0000000000000004, 1, 1+1+1+1);
+0 = ff_parse_channel_layout(0000000000000004, 1, 1c+1c+1c+1c);
+0 = ff_parse_channel_layout(0000000000000007, 3, 2c+1c);
+0 = ff_parse_channel_layout(0000000000000003, 2, 0x3);