ITU-T G.723.1 Software Package Release 2 (June 2006)

ITU-T G.723.1 Floating-Point Test Suite
For G.723.1 V5.1F
Mitch Bodart   Intel Corporation    10/01/96


INTRODUCTION

This distribution contains a set of test vectors for objective
verification of a floating-point implementation of the ITU-T G.723.1
dual rate speech coder.  The floating-point implementation is described
in Annex B of the G.723.1 recommendation.


REFERENCE IMPLEMENTATION

The reference files used in this suite were obtained with a "reference
implementation" of G.723.1, which is a double precision (64-bit) floating-point
implementation built with Microsoft Visual C++ version 4.1 on a PC.

FILE DESCRIPTIONS

All 16-bit PCM and ".bfi" files are provided in little-endian format.

Files with the suffix ".bin" are 16-bit PCM files.
Files with the suffix ".c53" were encoded using "-r53 -R10".
Files with the suffix ".c63" were encoded using "-r63 -R10".
Files with the suffix ".c5h" were encoded using "-r53".
Files with the suffix ".c5v" were encoded using "-r53 -v".
Files with the suffix ".c6h" were encoded using "-r63".
Files with the suffix ".c6v" were encoded using "-r63 -v".
Files with the suffix ".cmv" were encoded using "-rmixedratefile -v".
Files with the suffix ".cmh" were encoded using "-rmixedratefile" without -v.
Files with the suffix ".r5p" are reference decoder output for ".c5h" files.
Files with the suffix ".r5v" are reference decoder output for ".c5v" files.
Files with the suffix ".r6h" are reference decoder output for ".c6h" files.
Files with the suffix ".r6v" are reference decoder output for ".c6v" files.
Files with the suffix ".rmv" are reference decoder output for ".cmv" files.
Files with the suffix ".rmh" are reference decoder output for ".cmh" files.
Files with the suffix ".bfi" are decoder frame erasure (-f) files.
Replace ".rxx" with ".bxx" for decoder reference files (e.g., ".r5p" becomes
".b5p") when a ".bfi" file is used during decode.

Additional files:

cmpcode.c       C program used to compare two encoded bit streams
checksnr.c      C program used to compute SNR and compare against a threshold


TEST PREPARATION

The following steps must be accomplished in order to use this suite.

1) The C program "cmpcode.c" must be built.  This program compares the output
   of the encoder under test with a reference output.  It displays the
   percentage of 10-frame sequences that match the reference output.
   Under the -v option it will also display the sequence number of each
   non-matching sequence.  Sequences are numbered starting at 0.

2) The C program "checksnr.c" must be built.  This program computes the global
   signal-to-noise ratio (SNR) between two PCM files, and compares the SNR
   against a threshold which must also be supplied.
   The SNR is calculated over the entire length of the PCM files.  The formula
   used is "SNR = 10 * log10(Energy / Error)" where Energy is the sum of
   x(n) * x(n)  for all samples x(n) in the first file, and Error is the sum
   of  (x(n) - y(n)) * (x(n) - y(n))  for all samples x(n) in the first file
   and y(n) in the second file.

3) If executing on a system with big-endian memory, the samples in all PCM
   files (".bin") and frame erasure files (".bfi") must be byte swapped.


ENCODER TESTING

The encoder is tested by comparing its output with the output of the
reference encoder.  The "-R10" encoder option is used so that the encoder
will treat each sequence of 10 frames independently.  The input sequences
were chosen to be largely independent of floating point precision.

To achieve success, at least 95% of the sequences generated by the encoder
under test, must match the output generated by the reference encoder.  That
is, cmpcode must display a percentage that is greater than or equal to 95%.


DECODER TESTING

The decoder is tested by comparing the output of the decoder under test
with that of the reference decoder.  The difference between the two outputs
is measured using the global SNR.


TEST USAGE EXAMPLE

The remainder of this file is an MS-DOS batch file which shows how an
implementation, say lbccodec, would be invoked on the supplied test vectors.
The script assumes that lbccodec accepts the "-R10" option, and that the
"cmpcode" and "checksnr" programs have been built.

@echo off

set QUIET=-n

Rem ==== Exercise the encoder, without VAD/CNG ====

lbccodec %QUIET% -c -r53 -R10 tst53c.bin tst53c.out
cmpcode                       tst53c.c53 tst53c.out

lbccodec %QUIET% -c -r63 -R10 tst63c.bin tst63c.out
cmpcode                       tst63c.c63 tst63c.out

Rem ==== Exercise the encoder, with VAD/CNG ====

lbccodec %QUIET% -c -r53 -R10 -v tst53v.bin tst53v.out
cmpcode                          tst53v.c53 tst53v.out

lbccodec %QUIET% -c -r63 -R10 -v tst63v.bin tst63v.out
cmpcode                          tst63v.c63 tst63v.out


Rem ==== Exercise the 5.3 rate decoder, without CNG ====

lbccodec %QUIET% -d -r53 -fdm29.bfi dm29.c5h dm29.o5b
checksnr                            dm29.b5p dm29.o5b -snrmin63

lbccodec %QUIET% -d -r53 dm29.c5h dm29.o5p
checksnr                 dm29.r5p dm29.o5p -snrmin63

lbccodec %QUIET% -d -r53 dmbis.c5h dmbis.o5p
checksnr                 dmbis.r5p dmbis.o5p -snrmin62

lbccodec %QUIET% -d -r53 in1.c5h in1.o5p
checksnr                 in1.r5p in1.o5p -snrmin75

lbccodec %QUIET% -d -r53 in2.c5h in2.o5p
checksnr                 in2.r5p in2.o5p -snrmin80

lbccodec %QUIET% -d -r53 in3.c5h in3.o5p
checksnr                 in3.r5p in3.o5p -snrmin58

lbccodec %QUIET% -d -r53 in4.c5h in4.o5p
checksnr                 in4.r5p in4.o5p -snrmin60

lbccodec %QUIET% -d -r53 in5.c5h in5.o5p
checksnr                 in5.r5p in5.o5p -snrmin64

lbccodec %QUIET% -d -r53 in6.c5h in6.o5p
checksnr                 in6.r5p in6.o5p -snrmin77

lbccodec %QUIET% -d -r53 ineqc53.c5h ineqc53.o5p
checksnr                 ineqc53.r5p ineqc53.o5p -snrmin59

lbccodec %QUIET% -d -r53 overc53h.c5h overc53h.o5p
checksnr                 overc53h.r5p overc53h.o5p -snrmin84

lbccodec %QUIET% -d -r53 pathc53.c5h pathc53.o5p
checksnr                 pathc53.r5p pathc53.o5p -snrmin51

lbccodec %QUIET% -d -r53 read7.c5h read7.o5p
checksnr                 read7.r5p read7.o5p -snrmin58

lbccodec %QUIET% -d -r53 test16.c5h test16.o5p
checksnr                 test16.r5p test16.o5p -snrmin61


Rem ==== Exercise the 6.3 rate decoder, without CNG ====

lbccodec %QUIET% -d -r63 codec63.c6h codec63.o6p
checksnr                 codec63.r6p codec63.o6p -snrmin59

lbccodec %QUIET% -d -r63 -fdm29.bfi dm29.c6h dm29.o6b
checksnr                            dm29.b6p dm29.o6b -snrmin63

lbccodec %QUIET% -d -r63 dm29.c6h dm29.o6p
checksnr                 dm29.r6p dm29.o6p -snrmin63

lbccodec %QUIET% -d -r63 dmbis.c6h dmbis.o6p
checksnr                 dmbis.r6p dmbis.o6p -snrmin63

lbccodec %QUIET% -d -r63 in1.c6h in1.o6p
checksnr                 in1.r6p in1.o6p -snrmin77

lbccodec %QUIET% -d -r63 in2.c6h in2.o6p
checksnr                 in2.r6p in2.o6p -snrmin81

lbccodec %QUIET% -d -r63 in3.c6h in3.o6p
checksnr                 in3.r6p in3.o6p -snrmin58

lbccodec %QUIET% -d -r63 in4.c6h in4.o6p
checksnr                 in4.r6p in4.o6p -snrmin60

lbccodec %QUIET% -d -r63 in5.c6h in5.o6p
checksnr                 in5.r6p in5.o6p -snrmin64

lbccodec %QUIET% -d -r63 in6.c6h in6.o6p
checksnr                 in6.r6p in6.o6p -snrmin75

lbccodec %QUIET% -d -r63 overc63.c6h overc63.o6p
checksnr                 overc63.r6p overc63.o6p -snrmin77

lbccodec %QUIET% -d -r63 pathc63h.c6h pathc63h.o6p
checksnr                 pathc63h.r6p pathc63h.o6p -snrmin61

lbccodec %QUIET% -d -r63 read7.c6h read7.o6p
checksnr                 read7.r6p read7.o6p -snrmin58

lbccodec %QUIET% -d -r63 test16.c6h test16.o6p
checksnr                 test16.r6p test16.o6p -snrmin61


Rem ==== Exercise mixed-rate decoding, without CNG ====

lbccodec %QUIET% -d -ftest16.bfi test16.cmh test16.omh
checksnr                         test16.bmp test16.omh -snrmin60


Rem ==== Exercise the 5.3 rate decoder, with CNG ====

lbccodec %QUIET% -d dm29.c5v dm29.o5v
checksnr            dm29.r5v dm29.o5v -snrmin63

lbccodec %QUIET% -d dmbis.c5v dmbis.o5v
checksnr            dmbis.r5v dmbis.o5v -snrmin62

lbccodec %QUIET% -d in5.c5v in5.o5v
checksnr            in5.r5v in5.o5v -snrmin64

lbccodec %QUIET% -d pathc53.c5v pathc53.o5v
checksnr            pathc53.r5v pathc53.o5v -snrmin51

lbccodec %QUIET% -d read7.c5v read7.o5v
checksnr            read7.r5v read7.o5v -snrmin58

lbccodec %QUIET% -d test16.c5v test16.o5v
checksnr            test16.r5v test16.o5v -snrmin60

lbccodec %QUIET% -d vad6353.c5v vad6353.o5v
checksnr            vad6353.r5v vad6353.o5v -snrmin57


Rem ==== Exercise the 6.3 rate decoder, with CNG ====

lbccodec %QUIET% -d dm29.c6v dm29.o6v
checksnr            dm29.r6v dm29.o6v -snrmin63

lbccodec %QUIET% -d dmbis.c6v dmbis.o6v
checksnr            dmbis.r6v dmbis.o6v -snrmin62

lbccodec %QUIET% -d in5.c6v in5.o6v
checksnr            in5.r6v in5.o6v -snrmin64

lbccodec %QUIET% -d pathc63h.c6v pathc63h.o6v
checksnr            pathc63h.r6v pathc63h.o6v -snrmin61

lbccodec %QUIET% -d read7.c6v read7.o6v
checksnr            read7.r6v read7.o6v -snrmin58

lbccodec %QUIET% -d test16.c6v test16.o6v
checksnr            test16.r6v test16.o6v -snrmin60

lbccodec %QUIET% -d vad6353.c6v vad6353.o6v
checksnr            vad6353.r6v vad6353.o6v -snrmin57


Rem ==== Exercise mixed-rate decoding, with CNG ====

lbccodec %QUIET% -d -fvad6353.bfi vad6353.cmv vad6353.omv
checksnr                          vad6353.bmv vad6353.omv -snrmin57

set QUIET=
