diff options
author | Thomas Turner | 2016-12-20 16:53:51 -0800 |
---|---|---|
committer | Michael Niedermayer | 2016-12-21 03:37:54 +0100 |
commit | 9f76ad2a46439b93fd74b12cd50af0ea5100358a (patch) | |
tree | 219fca07e5e081c6d62ed75f74811c8cbe746d2c /tests/ref | |
parent | 319438e2f206036ee0cddf401dd50f3b2a3ae117 (diff) |
avutil: Added selftest for libavutil/audio_fifo.c
Signed-off-by: Thomas Turner <thomastdt@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests/ref')
-rw-r--r-- | tests/ref/fate/audio_fifo | 228 |
1 files changed, 228 insertions, 0 deletions
diff --git a/tests/ref/fate/audio_fifo b/tests/ref/fate/audio_fifo new file mode 100644 index 0000000000..6c6538b566 --- /dev/null +++ b/tests/ref/fate/audio_fifo @@ -0,0 +1,228 @@ + +TEST: 1 + +written: 12 +written: 12 +remaining samples in audio_fifo: 24 + +read: 12 +00 01 02 03 04 05 06 07 08 09 0a 0b +remaining samples in audio_fifo: 12 + +peek: +00 01 02 03 04 05 06 07 08 09 0a 0b + +peek_at: +0: +00 +1: +01 +2: +02 +3: +03 +4: +04 +5: +05 +6: +06 +7: +07 +8: +08 +9: +09 +10: +0a +11: +0b + + +TEST: 2 + +written: 6 +written: 6 +remaining samples in audio_fifo: 12 + +read: 6 +00 01 02 03 04 05 +06 07 08 09 0a 0b +remaining samples in audio_fifo: 6 + +peek: +00 01 02 03 04 05 +06 07 08 09 0a 0b + +peek_at: +0: +00 +06 +1: +01 +07 +2: +02 +08 +3: +03 +09 +4: +04 +0a +5: +05 +0b + + +TEST: 3 + +written: 12 +written: 12 +remaining samples in audio_fifo: 24 + +read: 12 +0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000a 000b +remaining samples in audio_fifo: 12 + +peek: +0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000a 000b + +peek_at: +0: +0000 +1: +0001 +2: +0002 +3: +0003 +4: +0004 +5: +0005 +6: +0006 +7: +0007 +8: +0008 +9: +0009 +10: +000a +11: +000b + + +TEST: 4 + +written: 6 +written: 6 +remaining samples in audio_fifo: 12 + +read: 6 +0000 0001 0002 0003 0004 0005 +0006 0007 0008 0009 000a 000b +remaining samples in audio_fifo: 6 + +peek: +0000 0001 0002 0003 0004 0005 +0006 0007 0008 0009 000a 000b + +peek_at: +0: +0000 +0006 +1: +0001 +0007 +2: +0002 +0008 +3: +0003 +0009 +4: +0004 +000a +5: +0005 +000b + + +TEST: 5 + +written: 12 +written: 12 +remaining samples in audio_fifo: 24 + +read: 12 +00000000 3f800000 40000000 40400000 40800000 40a00000 40c00000 40e00000 41000000 41100000 41200000 41300000 +remaining samples in audio_fifo: 12 + +peek: +00000000 3f800000 40000000 40400000 40800000 40a00000 40c00000 40e00000 41000000 41100000 41200000 41300000 + +peek_at: +0: +00000000 +1: +3f800000 +2: +40000000 +3: +40400000 +4: +40800000 +5: +40a00000 +6: +40c00000 +7: +40e00000 +8: +41000000 +9: +41100000 +10: +41200000 +11: +41300000 + + +TEST: 6 + +written: 6 +written: 6 +remaining samples in audio_fifo: 12 + +read: 6 +00000000 3f800000 40000000 40400000 40800000 40a00000 +40c00000 40e00000 41000000 41100000 41200000 41300000 +remaining samples in audio_fifo: 6 + +peek: +00000000 3f800000 40000000 40400000 40800000 40a00000 +40c00000 40e00000 41000000 41100000 41200000 41300000 + +peek_at: +0: +00000000 +40c00000 +1: +3f800000 +40e00000 +2: +40000000 +41000000 +3: +40400000 +41100000 +4: +40800000 +41200000 +5: +40a00000 +41300000 + |