From 5f6e472c91fb0a4a6b467f1b3c2d508b919fc9d5 Mon Sep 17 00:00:00 2001 From: Ralph Giles <giles@mozilla.com> Date: Mon, 19 Mar 2012 17:10:13 -0700 Subject: [PATCH] Remove trailing whitespace. Also fixes a minor typo. --- COPYING | 2 +- Makefile.draft | 2 +- README | 2 +- celt/opus_custom_demo.c | 14 +++++++------- include/opus_custom.h | 8 ++++---- silk/SigProc_FIX.h | 8 ++++---- silk/ana_filt_bank_1.c | 2 +- silk/float/SigProc_FLP.h | 6 +++--- silk/float/encode_frame_FLP.c | 2 +- silk/lin2log.c | 2 +- silk/resampler_private_IIR_FIR.c | 8 ++++---- silk/resampler_private_down_FIR.c | 10 +++++----- silk/sigm_Q15.c | 2 +- tests/run_vectors.sh | 8 ++++---- 14 files changed, 38 insertions(+), 38 deletions(-) diff --git a/COPYING b/COPYING index 240ee0916..7f4efc964 100644 --- a/COPYING +++ b/COPYING @@ -1,6 +1,6 @@ Copyright 2001-2011 Xiph.Org, Skype Limited, Octasic, Jean-Marc Valin, Timothy B. Terriberry, - CSIRO, Gregory Maxwell, Mark Borgerding, + CSIRO, Gregory Maxwell, Mark Borgerding, Erik de Castro Lopo Redistribution and use in source and binary forms, with or without diff --git a/Makefile.draft b/Makefile.draft index 501f76eb1..fdf1c9371 100644 --- a/Makefile.draft +++ b/Makefile.draft @@ -120,7 +120,7 @@ $(TARGET): $(OBJS) opus_demo$(EXESUFFIX): $(OPUSDEMO_OBJS) $(TARGET) $(LINK.o.cmdline) - + opus_compare$(EXESUFFIX): $(OPUSCOMPARE_OBJS) $(LINK.o.cmdline) diff --git a/README b/README index 5387aeac0..c48b91efd 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -This is a prototype codec and for now it has limited functionality. +This is a prototype codec and for now it has limited functionality. To build from a distribution tarball, you only need to do the following: diff --git a/celt/opus_custom_demo.c b/celt/opus_custom_demo.c index e25341b87..f15ce42b9 100644 --- a/celt/opus_custom_demo.c +++ b/celt/opus_custom_demo.c @@ -5,14 +5,14 @@ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - + - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - + - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -66,7 +66,7 @@ int main(int argc, char *argv[]) "<input> <output>\n"); return 1; } - + rate = (opus_int32)atol(argv[1]); channels = atoi(argv[2]); frame_size = atoi(argv[3]); @@ -100,7 +100,7 @@ int main(int argc, char *argv[]) fclose(fin); return 1; } - + enc = opus_custom_encoder_create(mode, channels, &err); if (err != 0) { @@ -124,7 +124,7 @@ int main(int argc, char *argv[]) complexity=atoi(argv[5]); opus_custom_encoder_ctl(enc,OPUS_SET_COMPLEXITY(complexity)); } - + in = (opus_int16*)malloc(frame_size*channels*sizeof(opus_int16)); out = (opus_int16*)malloc(frame_size*channels*sizeof(opus_int16)); @@ -186,7 +186,7 @@ int main(int argc, char *argv[]) skip = 0; } PRINT_MIPS(stderr); - + opus_custom_encoder_destroy(enc); opus_custom_decoder_destroy(dec); fclose(fin); diff --git a/include/opus_custom.h b/include/opus_custom.h index a497d7908..29623b364 100644 --- a/include/opus_custom.h +++ b/include/opus_custom.h @@ -1,6 +1,6 @@ /* Copyright (c) 2007-2008 CSIRO Copyright (c) 2007-2009 Xiph.Org Foundation - Copyright (c) 2008 Gregory Maxwell + Copyright (c) 2008 Gregory Maxwell Written by Jean-Marc Valin and Gregory Maxwell */ /** @file celt.h @@ -11,14 +11,14 @@ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - + - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - + - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR diff --git a/silk/SigProc_FIX.h b/silk/SigProc_FIX.h index 19eeecfae..fc8c8e9e8 100644 --- a/silk/SigProc_FIX.h +++ b/silk/SigProc_FIX.h @@ -141,7 +141,7 @@ opus_int32 silk_LPC_inverse_pred_gain_Q24( /* O Returns inverse pred /* Split signal in two decimated bands using first-order allpass filters */ void silk_ana_filt_bank_1( - const opus_int16 *in, /* I Input signal [N] */ + const opus_int16 *in, /* I Input signal [N] */ opus_int32 *S, /* I/O State vector [2] */ opus_int16 *outL, /* O Low band [N/2] */ opus_int16 *outH, /* O High band [N/2] */ @@ -154,18 +154,18 @@ void silk_ana_filt_bank_1( /* Approximation of 128 * log2() (exact inverse of approx 2^() below) */ /* Convert input to a log scale */ -opus_int32 silk_lin2log( +opus_int32 silk_lin2log( const opus_int32 inLin /* I input in linear scale */ ); /* Approximation of a sigmoid function */ -opus_int silk_sigm_Q15( +opus_int silk_sigm_Q15( opus_int in_Q5 /* I */ ); /* Approximation of 2^() (exact inverse of approx log2() above) */ /* Convert input to a linear scale */ -opus_int32 silk_log2lin( +opus_int32 silk_log2lin( const opus_int32 inLog_Q7 /* I input on log scale */ ); diff --git a/silk/ana_filt_bank_1.c b/silk/ana_filt_bank_1.c index bad630e60..07a4ab1b7 100644 --- a/silk/ana_filt_bank_1.c +++ b/silk/ana_filt_bank_1.c @@ -37,7 +37,7 @@ static opus_int16 A_fb1_21 = -24290; /* (opus_int16)(20623 << 1) */ /* Split signal into two decimated bands using first-order allpass filters */ void silk_ana_filt_bank_1( - const opus_int16 *in, /* I Input signal [N] */ + const opus_int16 *in, /* I Input signal [N] */ opus_int32 *S, /* I/O State vector [2] */ opus_int16 *outL, /* O Low band [N/2] */ opus_int16 *outH, /* O High band [N/2] */ diff --git a/silk/float/SigProc_FLP.h b/silk/float/SigProc_FLP.h index 0fd1a6d9a..ee85dd06e 100644 --- a/silk/float/SigProc_FLP.h +++ b/silk/float/SigProc_FLP.h @@ -191,9 +191,9 @@ static inline void silk_short2float_array( } /* using log2() helps the fixed-point conversion */ -static inline silk_float silk_log2( double x ) -{ - return ( silk_float )( 3.32192809488736 * log10( x ) ); +static inline silk_float silk_log2( double x ) +{ + return ( silk_float )( 3.32192809488736 * log10( x ) ); } #ifdef __cplusplus diff --git a/silk/float/encode_frame_FLP.c b/silk/float/encode_frame_FLP.c index facb41049..e0d1e04da 100644 --- a/silk/float/encode_frame_FLP.c +++ b/silk/float/encode_frame_FLP.c @@ -200,7 +200,7 @@ opus_int silk_encode_frame_FLP( /****************************************/ silk_encode_pulses( psRangeEnc, psEnc->sCmn.indices.signalType, psEnc->sCmn.indices.quantOffsetType, psEnc->sCmn.pulses, psEnc->sCmn.frame_length ); - + nBits = ec_tell( psRangeEnc ); if( useCBR == 0 && iter == 0 && nBits <= maxBits ) { diff --git a/silk/lin2log.c b/silk/lin2log.c index 0772e470b..7992dba7a 100644 --- a/silk/lin2log.c +++ b/silk/lin2log.c @@ -32,7 +32,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "SigProc_FIX.h" /* Approximation of 128 * log2() (very close inverse of silk_log2lin()) */ /* Convert input to a log scale */ -opus_int32 silk_lin2log( +opus_int32 silk_lin2log( const opus_int32 inLin /* I input in linear scale */ ) { diff --git a/silk/resampler_private_IIR_FIR.c b/silk/resampler_private_IIR_FIR.c index f17fb5cae..afbf3f823 100644 --- a/silk/resampler_private_IIR_FIR.c +++ b/silk/resampler_private_IIR_FIR.c @@ -33,10 +33,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "resampler_private.h" static inline opus_int16 *silk_resampler_private_IIR_FIR_INTERPOL( - opus_int16 *out, - opus_int16 *buf, - opus_int32 max_index_Q16, - opus_int32 index_increment_Q16 + opus_int16 *out, + opus_int16 *buf, + opus_int32 max_index_Q16, + opus_int32 index_increment_Q16 ) { opus_int32 index_Q16, res_Q15; diff --git a/silk/resampler_private_down_FIR.c b/silk/resampler_private_down_FIR.c index d1ee15a36..7642df21f 100644 --- a/silk/resampler_private_down_FIR.c +++ b/silk/resampler_private_down_FIR.c @@ -33,12 +33,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "resampler_private.h" static inline opus_int16 *silk_resampler_private_down_FIR_INTERPOL( - opus_int16 *out, - opus_int32 *buf, - const opus_int16 *FIR_Coefs, + opus_int16 *out, + opus_int32 *buf, + const opus_int16 *FIR_Coefs, opus_int FIR_Order, opus_int FIR_Fracs, - opus_int32 max_index_Q16, + opus_int32 max_index_Q16, opus_int32 index_increment_Q16 ) { @@ -170,7 +170,7 @@ void silk_resampler_private_down_FIR( max_index_Q16 = silk_LSHIFT32( nSamplesIn, 16 ); /* Interpolate filtered signal */ - out = silk_resampler_private_down_FIR_INTERPOL( out, buf, FIR_Coefs, S->FIR_Order, + out = silk_resampler_private_down_FIR_INTERPOL( out, buf, FIR_Coefs, S->FIR_Order, S->FIR_Fracs, max_index_Q16, index_increment_Q16 ); in += nSamplesIn; diff --git a/silk/sigm_Q15.c b/silk/sigm_Q15.c index 8d6b84b07..63842e5b5 100644 --- a/silk/sigm_Q15.c +++ b/silk/sigm_Q15.c @@ -46,7 +46,7 @@ static const opus_int32 sigm_LUT_neg_Q15[ 6 ] = { 16384, 8812, 3906, 1554, 589, 219 }; -opus_int silk_sigm_Q15( +opus_int silk_sigm_Q15( opus_int in_Q5 /* I */ ) { diff --git a/tests/run_vectors.sh b/tests/run_vectors.sh index 9b5c29be3..ff685d81e 100755 --- a/tests/run_vectors.sh +++ b/tests/run_vectors.sh @@ -19,8 +19,8 @@ if [ -d $VECTOR_PATH ]; then echo Test vectors found in $VECTOR_PATH else echo No test vectors found - #Don't make the test fail here because the test vectors will be - #distributed separateyl + #Don't make the test fail here because the test vectors + #will be distributed separately exit 0 fi @@ -40,7 +40,7 @@ for file in `seq -w 1 11` do if [ -e $VECTOR_PATH/testvector$file.bit ]; then echo Testing testvector$file - else + else echo Bitstream file not found: testvector$file.bit fi if $OPUS_DEMO -d $RATE 1 $VECTOR_PATH/testvector$file.bit tmp.out >> logs_mono.txt 2>&1; then @@ -70,7 +70,7 @@ for file in `seq -w 1 11` do if [ -e $VECTOR_PATH/testvector$file.bit ]; then echo Testing testvector$file - else + else echo Bitstream file not found: testvector$file fi if $OPUS_DEMO -d $RATE 2 $VECTOR_PATH/testvector$file.bit tmp.out >> logs_stereo.txt 2>&1; then -- GitLab