fate: add G.723.1 decoder tests

This commit is contained in:
Kostya Shishkov 2012-08-07 19:47:55 +02:00
parent 0db9eba48c
commit 84f9d78a96
7 changed files with 292 additions and 0 deletions

View File

@ -9,6 +9,27 @@ fate-g722-encode: CMD = enc_dec_pcm wav md5 s16le $(SRC) -c:a g722
FATE_SAMPLES_AVCONV += $(FATE_G722)
fate-g722: $(FATE_G722)
FATE_G723_1 += fate-g723_1-dec-1
fate-g723_1-dec-1: CMD = framecrc -postfilter 0 -i $(SAMPLES)/g723_1/ineqd53.tco
FATE_G723_1 += fate-g723_1-dec-2
fate-g723_1-dec-2: CMD = framecrc -postfilter 0 -i $(SAMPLES)/g723_1/overd53.tco
FATE_G723_1 += fate-g723_1-dec-3
fate-g723_1-dec-3: CMD = framecrc -postfilter 1 -i $(SAMPLES)/g723_1/overd63p.tco
FATE_G723_1 += fate-g723_1-dec-4
fate-g723_1-dec-4: CMD = framecrc -postfilter 0 -i $(SAMPLES)/g723_1/pathd53.tco
FATE_G723_1 += fate-g723_1-dec-5
fate-g723_1-dec-5: CMD = framecrc -postfilter 1 -i $(SAMPLES)/g723_1/pathd63p.tco
FATE_G723_1 += fate-g723_1-dec-6
fate-g723_1-dec-6: CMD = framecrc -postfilter 1 -i $(SAMPLES)/g723_1/tamed63p.tco
FATE_SAMPLES_AVCONV += $(FATE_G723_1)
fate-g723_1: $(FATE_G723_1)
FATE_G726 += fate-g726-encode-2bit
fate-g726-encode-2bit: tests/data/asynth-8000-1.wav
fate-g726-encode-2bit: SRC = tests/data/asynth-8000-1.wav

View File

@ -0,0 +1,3 @@
#tb 0: 1/8000
0, 0, 0, 240, 480, 0x7f6f3970
0, 240, 240, 240, 480, 0x1105a0d3

View File

@ -0,0 +1,27 @@
#tb 0: 1/8000
0, 0, 0, 240, 480, 0x5d9d9091
0, 240, 240, 240, 480, 0x425095b7
0, 480, 480, 240, 480, 0xe7b6a1a7
0, 720, 720, 240, 480, 0x9397af19
0, 960, 960, 240, 480, 0xe671adf7
0, 1200, 1200, 240, 480, 0x77deb313
0, 1440, 1440, 240, 480, 0x64abbb5f
0, 1680, 1680, 240, 480, 0x000bc879
0, 1920, 1920, 240, 480, 0x5a88c7aa
0, 2160, 2160, 240, 480, 0xb041cbad
0, 2400, 2400, 240, 480, 0x3257cd54
0, 2640, 2640, 240, 480, 0xd6e7d4b3
0, 2880, 2880, 240, 480, 0x0054d6b6
0, 3120, 3120, 240, 480, 0x10bcd58e
0, 3360, 3360, 240, 480, 0x702ed981
0, 3600, 3600, 240, 480, 0x9870d4e3
0, 3840, 3840, 240, 480, 0x9c12d6d1
0, 4080, 4080, 240, 480, 0xc41be449
0, 4320, 4320, 240, 480, 0xf4bddc5a
0, 4560, 4560, 240, 480, 0x1c03e0d4
0, 4800, 4800, 240, 480, 0xc287e4f8
0, 5040, 5040, 240, 480, 0xf705ec20
0, 5280, 5280, 240, 480, 0x7835f458
0, 5520, 5520, 240, 480, 0xa8b3e632
0, 5760, 5760, 240, 480, 0xd358df57
0, 6000, 6000, 240, 480, 0x934dab80

View File

@ -0,0 +1,34 @@
#tb 0: 1/8000
0, 0, 0, 240, 480, 0xce908869
0, 240, 240, 240, 480, 0xfa63588e
0, 480, 480, 240, 480, 0x11ce850c
0, 720, 720, 240, 480, 0x76c459cf
0, 960, 960, 240, 480, 0x13ed8bf0
0, 1200, 1200, 240, 480, 0x33d10b77
0, 1440, 1440, 240, 480, 0xdf41e03c
0, 1680, 1680, 240, 480, 0xa31aad71
0, 1920, 1920, 240, 480, 0x83c2b48d
0, 2160, 2160, 240, 480, 0xaf41ba01
0, 2400, 2400, 240, 480, 0xeeecbadc
0, 2640, 2640, 240, 480, 0xe253c7e1
0, 2880, 2880, 240, 480, 0x672cbf0a
0, 3120, 3120, 240, 480, 0x5f32aa27
0, 3360, 3360, 240, 480, 0x8646a245
0, 3600, 3600, 240, 480, 0x4819e5bc
0, 3840, 3840, 240, 480, 0x423dec60
0, 4080, 4080, 240, 480, 0xafefe289
0, 4320, 4320, 240, 480, 0x8dc5f136
0, 4560, 4560, 240, 480, 0x549cee78
0, 4800, 4800, 240, 480, 0xe589ebdc
0, 5040, 5040, 240, 480, 0x786cef17
0, 5280, 5280, 240, 480, 0xdafded31
0, 5520, 5520, 240, 480, 0xe58bedf8
0, 5760, 5760, 240, 480, 0x44daf26c
0, 6000, 6000, 240, 480, 0x03fcf149
0, 6240, 6240, 240, 480, 0x97a5f4ae
0, 6480, 6480, 240, 480, 0x2114f4f6
0, 6720, 6720, 240, 480, 0x9a44f234
0, 6960, 6960, 240, 480, 0x5b47f339
0, 7200, 7200, 240, 480, 0x9248edcb
0, 7440, 7440, 240, 480, 0x47caf226
0, 7680, 7680, 240, 480, 0x73d4ef48

View File

@ -0,0 +1,5 @@
#tb 0: 1/8000
0, 0, 0, 240, 480, 0xa697b314
0, 240, 240, 240, 480, 0x43c5dc5a
0, 480, 480, 240, 480, 0xd2438147
0, 720, 720, 240, 480, 0x3b1ead64

101
tests/ref/fate/g723_1-dec-5 Normal file
View File

@ -0,0 +1,101 @@
#tb 0: 1/8000
0, 0, 0, 240, 480, 0x4dce9773
0, 240, 240, 240, 480, 0xe6367ab8
0, 480, 480, 240, 480, 0xf36a589d
0, 720, 720, 240, 480, 0xf94efd31
0, 960, 960, 240, 480, 0x984e6d33
0, 1200, 1200, 240, 480, 0x84eaa191
0, 1440, 1440, 240, 480, 0xed6e0c10
0, 1680, 1680, 240, 480, 0x3627e7a0
0, 1920, 1920, 240, 480, 0x2421b42d
0, 2160, 2160, 240, 480, 0x71e00d6f
0, 2400, 2400, 240, 480, 0xd49cdb95
0, 2640, 2640, 240, 480, 0xa167e890
0, 2880, 2880, 240, 480, 0xbb3fd7c0
0, 3120, 3120, 240, 480, 0xa3d5bc27
0, 3360, 3360, 240, 480, 0x8107ca9c
0, 3600, 3600, 240, 480, 0xcd4ce998
0, 3840, 3840, 240, 480, 0x14e3ee73
0, 4080, 4080, 240, 480, 0x5fc3eaf0
0, 4320, 4320, 240, 480, 0xf166f33d
0, 4560, 4560, 240, 480, 0xe8b3f701
0, 4800, 4800, 240, 480, 0x50aaeafd
0, 5040, 5040, 240, 480, 0xc7f2daec
0, 5280, 5280, 240, 480, 0x3960e5d0
0, 5520, 5520, 240, 480, 0xadc8ec32
0, 5760, 5760, 240, 480, 0x8741e7b0
0, 6000, 6000, 240, 480, 0x1a1bd910
0, 6240, 6240, 240, 480, 0x76a4ef7f
0, 6480, 6480, 240, 480, 0x19e6e5f5
0, 6720, 6720, 240, 480, 0x6365e871
0, 6960, 6960, 240, 480, 0xb2bee161
0, 7200, 7200, 240, 480, 0x5098cba4
0, 7440, 7440, 240, 480, 0x1009c4c5
0, 7680, 7680, 240, 480, 0xbf20cfe3
0, 7920, 7920, 240, 480, 0x91ddd028
0, 8160, 8160, 240, 480, 0x4fedce37
0, 8400, 8400, 240, 480, 0x43bcd4d8
0, 8640, 8640, 240, 480, 0x41b3e782
0, 8880, 8880, 240, 480, 0xa272f4a6
0, 9120, 9120, 240, 480, 0x46b2f2cb
0, 9360, 9360, 240, 480, 0xc47dee7d
0, 9600, 9600, 240, 480, 0x699fe668
0, 9840, 9840, 240, 480, 0x72b5daf8
0, 10080, 10080, 240, 480, 0x0c0cf25e
0, 10320, 10320, 240, 480, 0xdafff519
0, 10560, 10560, 240, 480, 0xf1f2e42f
0, 10800, 10800, 240, 480, 0xe04fe7f4
0, 11040, 11040, 240, 480, 0x1157d789
0, 11280, 11280, 240, 480, 0xe598ede6
0, 11520, 11520, 240, 480, 0xbd06dc2f
0, 11760, 11760, 240, 480, 0x2aa6d2d9
0, 12000, 12000, 240, 480, 0xa61ff1a3
0, 12240, 12240, 240, 480, 0x6f57eb35
0, 12480, 12480, 240, 480, 0x68c1f4a9
0, 12720, 12720, 240, 480, 0x5c0ae6f2
0, 12960, 12960, 240, 480, 0xdffbef45
0, 13200, 13200, 240, 480, 0xf0daf893
0, 13440, 13440, 240, 480, 0x680cf0c4
0, 13680, 13680, 240, 480, 0xbbc1d42f
0, 13920, 13920, 240, 480, 0x9b66eddd
0, 14160, 14160, 240, 480, 0xc18be7a3
0, 14400, 14400, 240, 480, 0x1deae025
0, 14640, 14640, 240, 480, 0x6c12e002
0, 14880, 14880, 240, 480, 0x004bf27e
0, 15120, 15120, 240, 480, 0xc97de444
0, 15360, 15360, 240, 480, 0xc650de6b
0, 15600, 15600, 240, 480, 0xe614ecd6
0, 15840, 15840, 240, 480, 0x2c20d111
0, 16080, 16080, 240, 480, 0x8562c091
0, 16320, 16320, 240, 480, 0x4fcddd08
0, 16560, 16560, 240, 480, 0xc1b2c3cb
0, 16800, 16800, 240, 480, 0x5dcfdf24
0, 17040, 17040, 240, 480, 0xf348d7be
0, 17280, 17280, 240, 480, 0x31b3ead7
0, 17520, 17520, 240, 480, 0xb30dee68
0, 17760, 17760, 240, 480, 0x1f44e9ac
0, 18000, 18000, 240, 480, 0x3cafe61e
0, 18240, 18240, 240, 480, 0x5800ea95
0, 18480, 18480, 240, 480, 0xeaeeec19
0, 18720, 18720, 240, 480, 0x47f9eff3
0, 18960, 18960, 240, 480, 0xdc10edf1
0, 19200, 19200, 240, 480, 0x5b1bd3ff
0, 19440, 19440, 240, 480, 0x039bea64
0, 19680, 19680, 240, 480, 0xa93ac953
0, 19920, 19920, 240, 480, 0x1b55f01c
0, 20160, 20160, 240, 480, 0x32b7db90
0, 20400, 20400, 240, 480, 0x2f8ce0a8
0, 20640, 20640, 240, 480, 0x53f4f7d5
0, 20880, 20880, 240, 480, 0x880ee517
0, 21120, 21120, 240, 480, 0xe793f2fd
0, 21360, 21360, 240, 480, 0x498beaf5
0, 21600, 21600, 240, 480, 0x8c25f623
0, 21840, 21840, 240, 480, 0xdc0df527
0, 22080, 22080, 240, 480, 0x9d21e9b4
0, 22320, 22320, 240, 480, 0x6d51d9e6
0, 22560, 22560, 240, 480, 0xaf3ee6ba
0, 22800, 22800, 240, 480, 0xbef0ea44
0, 23040, 23040, 240, 480, 0x50c6e9ab
0, 23280, 23280, 240, 480, 0x76a7d80c
0, 23520, 23520, 240, 480, 0x8d68ef94
0, 23760, 23760, 240, 480, 0x213ce600

101
tests/ref/fate/g723_1-dec-6 Normal file
View File

@ -0,0 +1,101 @@
#tb 0: 1/8000
0, 0, 0, 240, 480, 0x4fa1aed9
0, 240, 240, 240, 480, 0x6d7ef391
0, 480, 480, 240, 480, 0xaecaf2c1
0, 720, 720, 240, 480, 0xd3b2ed0a
0, 960, 960, 240, 480, 0x33dceb4e
0, 1200, 1200, 240, 480, 0xc10eeb64
0, 1440, 1440, 240, 480, 0x7c0febff
0, 1680, 1680, 240, 480, 0x0c09eecd
0, 1920, 1920, 240, 480, 0xa5efdcf8
0, 2160, 2160, 240, 480, 0xb643edd2
0, 2400, 2400, 240, 480, 0x46bef26d
0, 2640, 2640, 240, 480, 0x4310f101
0, 2880, 2880, 240, 480, 0x3664ec16
0, 3120, 3120, 240, 480, 0xcc17e5e8
0, 3360, 3360, 240, 480, 0xff4cf35b
0, 3600, 3600, 240, 480, 0xdf4cf2e5
0, 3840, 3840, 240, 480, 0x093bf570
0, 4080, 4080, 240, 480, 0xd950ec75
0, 4320, 4320, 240, 480, 0xa469f2f8
0, 4560, 4560, 240, 480, 0x3558ee9d
0, 4800, 4800, 240, 480, 0x4102f252
0, 5040, 5040, 240, 480, 0xf9dff318
0, 5280, 5280, 240, 480, 0xd7cbef4d
0, 5520, 5520, 240, 480, 0x76c4eed3
0, 5760, 5760, 240, 480, 0xe3d6e9d1
0, 6000, 6000, 240, 480, 0x63baf340
0, 6240, 6240, 240, 480, 0xd2dff2ff
0, 6480, 6480, 240, 480, 0x3355ebc4
0, 6720, 6720, 240, 480, 0x7183ed76
0, 6960, 6960, 240, 480, 0x9806eff7
0, 7200, 7200, 240, 480, 0xc090ec04
0, 7440, 7440, 240, 480, 0xe76ff174
0, 7680, 7680, 240, 480, 0x2cdfe8f1
0, 7920, 7920, 240, 480, 0xbb69ee8a
0, 8160, 8160, 240, 480, 0x3e03f522
0, 8400, 8400, 240, 480, 0xe7e6e659
0, 8640, 8640, 240, 480, 0x4dbaf063
0, 8880, 8880, 240, 480, 0xc9b9f381
0, 9120, 9120, 240, 480, 0x3866edc9
0, 9360, 9360, 240, 480, 0x7e0defca
0, 9600, 9600, 240, 480, 0xa88bf700
0, 9840, 9840, 240, 480, 0x65a7f029
0, 10080, 10080, 240, 480, 0xaf8cf09d
0, 10320, 10320, 240, 480, 0x679bee1e
0, 10560, 10560, 240, 480, 0x8dc1e9a4
0, 10800, 10800, 240, 480, 0xe3c2f0ac
0, 11040, 11040, 240, 480, 0x35d0eb14
0, 11280, 11280, 240, 480, 0xfeb3ed00
0, 11520, 11520, 240, 480, 0x9da3ecb4
0, 11760, 11760, 240, 480, 0xa0e3f3c2
0, 12000, 12000, 240, 480, 0x05ffe9de
0, 12240, 12240, 240, 480, 0xf7adef05
0, 12480, 12480, 240, 480, 0x71bef669
0, 12720, 12720, 240, 480, 0x4b9feca8
0, 12960, 12960, 240, 480, 0x85e5ecd8
0, 13200, 13200, 240, 480, 0xa4cbe90e
0, 13440, 13440, 240, 480, 0xe689f958
0, 13680, 13680, 240, 480, 0xa936f168
0, 13920, 13920, 240, 480, 0x496ff059
0, 14160, 14160, 240, 480, 0x0bb6eb82
0, 14400, 14400, 240, 480, 0x7727ef53
0, 14640, 14640, 240, 480, 0xede3eaab
0, 14880, 14880, 240, 480, 0xe961ef58
0, 15120, 15120, 240, 480, 0x454fef58
0, 15360, 15360, 240, 480, 0x9305e76d
0, 15600, 15600, 240, 480, 0xfe5ce6ed
0, 15840, 15840, 240, 480, 0x84d1efdc
0, 16080, 16080, 240, 480, 0x4b23ed7a
0, 16320, 16320, 240, 480, 0x1380eb91
0, 16560, 16560, 240, 480, 0xf705eca3
0, 16800, 16800, 240, 480, 0x26f7e707
0, 17040, 17040, 240, 480, 0x3fe3f27f
0, 17280, 17280, 240, 480, 0xa030f177
0, 17520, 17520, 240, 480, 0xaf72ed92
0, 17760, 17760, 240, 480, 0x00b8f1e7
0, 18000, 18000, 240, 480, 0x681fecca
0, 18240, 18240, 240, 480, 0x3ca1ef63
0, 18480, 18480, 240, 480, 0xd6fcedac
0, 18720, 18720, 240, 480, 0x6928ed04
0, 18960, 18960, 240, 480, 0x8bdeeebe
0, 19200, 19200, 240, 480, 0x24b6f59d
0, 19440, 19440, 240, 480, 0xd49deebf
0, 19680, 19680, 240, 480, 0xe798f2c8
0, 19920, 19920, 240, 480, 0x280fefb8
0, 20160, 20160, 240, 480, 0xe0a8f40d
0, 20400, 20400, 240, 480, 0x4d48f511
0, 20640, 20640, 240, 480, 0x6bf3eef0
0, 20880, 20880, 240, 480, 0x1573f1cd
0, 21120, 21120, 240, 480, 0x6245e961
0, 21360, 21360, 240, 480, 0xe05af091
0, 21600, 21600, 240, 480, 0xfcc3e9e3
0, 21840, 21840, 240, 480, 0x6d5febae
0, 22080, 22080, 240, 480, 0x4a96ef58
0, 22320, 22320, 240, 480, 0x1586f156
0, 22560, 22560, 240, 480, 0x50b0e99e
0, 22800, 22800, 240, 480, 0xf25dfa9b
0, 23040, 23040, 240, 480, 0x49b5f932
0, 23280, 23280, 240, 480, 0xe1ddef32
0, 23520, 23520, 240, 480, 0x2307ed94
0, 23760, 23760, 240, 480, 0x6a2beb17