diff options
author | Tristan Matthews <tmatth@videolan.org> | 2015-04-01 19:35:06 +0300 |
---|---|---|
committer | Tristan Matthews <tmatth@videolan.org> | 2015-04-01 19:38:11 +0300 |
commit | be6df4d61427c04b6609205fab079a1e6a05cb69 (patch) | |
tree | 61bf03be2ae52ae7da052828e083e6b94f5f42c6 /doc | |
parent | 6aab25cb90f373c27f36901d4d9ed510919d2ea4 (diff) |
remove trailing whitespace
Diffstat (limited to 'doc')
-rw-r--r-- | doc/nb_celp.c | 14 | ||||
-rw-r--r-- | doc/sampledec.c | 6 | ||||
-rw-r--r-- | doc/sampleenc.c | 4 |
3 files changed, 12 insertions, 12 deletions
diff --git a/doc/nb_celp.c b/doc/nb_celp.c index 90bda10..50d5ffa 100644 --- a/doc/nb_celp.c +++ b/doc/nb_celp.c @@ -86,7 +86,7 @@ int nb_decode(struct speex_decode_state *st, SpeexBits *bits, float *out) mode = speex_bits_unpack_unsigned(bits, 4); if (mode == 15) return -1; - + } while (mode > 8); if (mode != 3) { @@ -108,7 +108,7 @@ int nb_decode(struct speex_decode_state *st, SpeexBits *bits, float *out) for (i=0; i<NB_ORDER; i++) st->old_qlsp[i] = qlsp[i]; } - + /* Get global excitation gain */ qe = speex_bits_unpack_unsigned(bits, 5); ol_gain = SIG_SCALING*exp(qe/3.5); @@ -130,14 +130,14 @@ int nb_decode(struct speex_decode_state *st, SpeexBits *bits, float *out) NB_SUBFRAME_SIZE, bits, 0); sanitize_values32(exc32, -32000, 32000, NB_SUBFRAME_SIZE); - + /* Unquantize the innovation */ SPEEX_MEMSET(innov, 0, NB_SUBFRAME_SIZE); /* Decode sub-frame gain correction */ q_energy = speex_bits_unpack_unsigned(bits, 1); ener = exc_gain_quant_scal1[q_energy] * ol_gain; - + /* Fixed codebook contribution */ split_cb_shape_sign_unquant(innov, bits); @@ -148,9 +148,9 @@ int nb_decode(struct speex_decode_state *st, SpeexBits *bits, float *out) exc[i] = exc32[i] + innov[i]; } } - + SPEEX_COPY(out, &st->exc[-NB_SUBFRAME_SIZE], NB_FRAME_SIZE); - + /* Loop on subframes */ for (sub=0; sub<4; sub++) { const int offset = NB_SUBFRAME_SIZE*sub; @@ -173,7 +173,7 @@ int nb_decode(struct speex_decode_state *st, SpeexBits *bits, float *out) for (i=0; i<NB_ORDER; i++) st->interp_qlpc[i] = ak[i]; } - + /* Store the LSPs for interpolation in the next frame */ for (i=0; i<NB_ORDER; i++) st->old_qlsp[i] = qlsp[i]; diff --git a/doc/sampledec.c b/doc/sampledec.c index 2878c47..8e89e12 100644 --- a/doc/sampledec.c +++ b/doc/sampledec.c @@ -33,13 +33,13 @@ int main(int argc, char **argv) speex_bits_init(&bits); while (1) { - /*Read the size encoded by sampleenc, this part will likely be + /*Read the size encoded by sampleenc, this part will likely be different in your application*/ fread(&nbBytes, sizeof(int), 1, stdin); fprintf (stderr, "nbBytes: %d\n", nbBytes); if (feof(stdin)) break; - + /*Read the "packet" encoded by sampleenc*/ fread(cbits, 1, nbBytes, stdin); /*Copy the data into the bit-stream struct*/ @@ -55,7 +55,7 @@ int main(int argc, char **argv) /*Write the decoded audio to file*/ fwrite(out, sizeof(short), FRAME_SIZE, fout); } - + /*Destroy the decoder state*/ speex_decoder_destroy(state); /*Destroy the bit-stream truct*/ diff --git a/doc/sampleenc.c b/doc/sampleenc.c index d508181..a0ec8b6 100644 --- a/doc/sampleenc.c +++ b/doc/sampleenc.c @@ -52,9 +52,9 @@ int main(int argc, char **argv) fwrite(&nbBytes, sizeof(int), 1, stdout); /*Write the compressed data*/ fwrite(cbits, 1, nbBytes, stdout); - + } - + /*Destroy the encoder state*/ speex_encoder_destroy(state); /*Destroy the bit-packing struct*/ |