diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-10-25 12:41:13 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-10-25 12:41:13 +0000 |
commit | 221a91a439f128912f6989d13ddf9926ad0a1572 (patch) | |
tree | add1ab22af981352f307b974257ba540401ddc13 /sbc | |
parent | 15b172d3ff3e3968b0383ae50e32e9868067791c (diff) |
Move the usage function around
Diffstat (limited to 'sbc')
-rw-r--r-- | sbc/sbctester.c | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/sbc/sbctester.c b/sbc/sbctester.c index f85d0bac..15e63c2a 100644 --- a/sbc/sbctester.c +++ b/sbc/sbctester.c @@ -35,26 +35,6 @@ #define MAXCHANNELS 2 #define DEFACCURACY 7 -static void usage() -{ - printf("SBC conformance test ver %s\n", VERSION); - printf("Copyright (c) 2007 Marcel Holtmann\n\n"); - printf("Copyright (c) 2007 Frederic Dalleau\n\n"); - - printf("Usage:\n" - "\tsbctester reference.wav checkfile.wav\n" - "\tsbctester integer\n" - "\n"); - - printf("\tTo test the encoder:\n"); - printf("\tUse a reference codec to encode original.wav to reference.sbc\n"); - printf("\tUse sbcenc to encode original.wav to checkfile.sbc\n"); - printf("\tDecode both file using the reference decoder\n"); - printf("\trun sbctester with these two wav files to get the result\n"); - - printf("\n\tA file called out.csv is generated to use the data in a spreadsheet application or database.\n\n"); -} - static double sampletobits(short sample16, int verbose) { double bits = 0; @@ -252,6 +232,27 @@ static int check_absolute_diff(SNDFILE * sndref, SF_INFO * infosref, return verdict; } +static void usage() +{ + printf("SBC conformance test ver %s\n", VERSION); + printf("Copyright (c) 2007 Marcel Holtmann\n"); + printf("Copyright (c) 2007 Frederic Dalleau\n\n"); + + printf("Usage:\n" + "\tsbctester reference.wav checkfile.wav\n" + "\tsbctester integer\n" + "\n"); + + printf("To test the encoder:\n"); + printf("\tUse a reference codec to encode original.wav to reference.sbc\n"); + printf("\tUse sbcenc to encode original.wav to checkfile.sbc\n"); + printf("\tDecode both file using the reference decoder\n"); + printf("\tRun sbctester with these two wav files to get the result\n\n"); + + printf("\tA file called out.csv is generated to use the data in a\n"); + printf("\tspreadsheet application or database.\n\n"); +} + int main(int argc, char *argv[]) { SNDFILE *sndref = NULL; |