comparison liba52/parse.c @ 2967:ef2149182f1c libavcodec

COSMETICS: Remove all trailing whitespace.
author diego
date Sat, 17 Dec 2005 18:14:38 +0000
parents e101d1cffec6
children 0b546eab515d
comparison
equal deleted inserted replaced
2966:564788471dd4 2967:ef2149182f1c
124 int a52_frame (a52_state_t * state, uint8_t * buf, int * flags, 124 int a52_frame (a52_state_t * state, uint8_t * buf, int * flags,
125 level_t * level, sample_t bias) 125 level_t * level, sample_t bias)
126 { 126 {
127 static level_t clev[4] = { LEVEL (LEVEL_3DB), LEVEL (LEVEL_45DB), 127 static level_t clev[4] = { LEVEL (LEVEL_3DB), LEVEL (LEVEL_45DB),
128 LEVEL (LEVEL_6DB), LEVEL (LEVEL_45DB) }; 128 LEVEL (LEVEL_6DB), LEVEL (LEVEL_45DB) };
129 static level_t slev[4] = { LEVEL (LEVEL_3DB), LEVEL (LEVEL_6DB), 129 static level_t slev[4] = { LEVEL (LEVEL_3DB), LEVEL (LEVEL_6DB),
130 0, LEVEL (LEVEL_6DB) }; 130 0, LEVEL (LEVEL_6DB) };
131 int chaninfo; 131 int chaninfo;
132 int acmod; 132 int acmod;
133 133
134 state->fscod = buf[4] >> 6; 134 state->fscod = buf[4] >> 6;
255 case EXP_D25: 255 case EXP_D25:
256 *(dest++) = exponent; 256 *(dest++) = exponent;
257 case EXP_D15: 257 case EXP_D15:
258 *(dest++) = exponent; 258 *(dest++) = exponent;
259 } 259 }
260 } 260 }
261 261
262 return 0; 262 return 0;
263 } 263 }
264 264
265 static int parse_deltba (a52_state_t * state, int8_t * deltba) 265 static int parse_deltba (a52_state_t * state, int8_t * deltba)
303 static inline int16_t dither_gen (a52_state_t * state) 303 static inline int16_t dither_gen (a52_state_t * state)
304 { 304 {
305 int16_t nstate; 305 int16_t nstate;
306 306
307 nstate = dither_lut[state->lfsr_state >> 8] ^ (state->lfsr_state << 8); 307 nstate = dither_lut[state->lfsr_state >> 8] ^ (state->lfsr_state << 8);
308 308
309 state->lfsr_state = (uint16_t) nstate; 309 state->lfsr_state = (uint16_t) nstate;
310 310
311 return (3 * nstate) >> 2; 311 return (3 * nstate) >> 2;
312 } 312 }
313 313
674 lfeexpstr = EXP_REUSE; 674 lfeexpstr = EXP_REUSE;
675 if (state->chincpl) /* cplinu */ 675 if (state->chincpl) /* cplinu */
676 cplexpstr = bitstream_get (state, 2); 676 cplexpstr = bitstream_get (state, 2);
677 for (i = 0; i < nfchans; i++) 677 for (i = 0; i < nfchans; i++)
678 chexpstr[i] = bitstream_get (state, 2); 678 chexpstr[i] = bitstream_get (state, 2);
679 if (state->lfeon) 679 if (state->lfeon)
680 lfeexpstr = bitstream_get (state, 1); 680 lfeexpstr = bitstream_get (state, 1);
681 681
682 for (i = 0; i < nfchans; i++) 682 for (i = 0; i < nfchans; i++)
683 if (chexpstr[i] != EXP_REUSE) { 683 if (chexpstr[i] != EXP_REUSE) {
684 if ((state->chincpl >> i) & 1) 684 if ((state->chincpl >> i) & 1)
892 892
893 if (coeff[i]) { 893 if (coeff[i]) {
894 if (blksw[i]) 894 if (blksw[i])
895 a52_imdct_256 (samples + 256 * i, samples + 1536 + 256 * i, 895 a52_imdct_256 (samples + 256 * i, samples + 1536 + 256 * i,
896 bias); 896 bias);
897 else 897 else
898 a52_imdct_512 (samples + 256 * i, samples + 1536 + 256 * i, 898 a52_imdct_512 (samples + 256 * i, samples + 1536 + 256 * i,
899 bias); 899 bias);
900 } else { 900 } else {
901 int j; 901 int j;
902 902
921 921
922 if (blksw[0]) 922 if (blksw[0])
923 for (i = 0; i < nfchans; i++) 923 for (i = 0; i < nfchans; i++)
924 a52_imdct_256 (samples + 256 * i, samples + 1536 + 256 * i, 924 a52_imdct_256 (samples + 256 * i, samples + 1536 + 256 * i,
925 state->bias); 925 state->bias);
926 else 926 else
927 for (i = 0; i < nfchans; i++) 927 for (i = 0; i < nfchans; i++)
928 a52_imdct_512 (samples + 256 * i, samples + 1536 + 256 * i, 928 a52_imdct_512 (samples + 256 * i, samples + 1536 + 256 * i,
929 state->bias); 929 state->bias);
930 } 930 }
931 931