comparison ac3enc.c @ 1057:bb5de8a59da8 libavcodec

* static,const,compiler warning cleanup
author kabi
date Mon, 10 Feb 2003 09:35:32 +0000
parents 48349e11c9b2
children b32afefe7d33
comparison
equal deleted inserted replaced
1056:eb403f8158eb 1057:bb5de8a59da8
26 PutBitContext pb; 26 PutBitContext pb;
27 int nb_channels; 27 int nb_channels;
28 int nb_all_channels; 28 int nb_all_channels;
29 int lfe_channel; 29 int lfe_channel;
30 int bit_rate; 30 int bit_rate;
31 int sample_rate; 31 unsigned int sample_rate;
32 int bsid; 32 unsigned int bsid;
33 int frame_size_min; /* minimum frame size in case rounding is necessary */ 33 unsigned int frame_size_min; /* minimum frame size in case rounding is necessary */
34 int frame_size; /* current frame size in words */ 34 unsigned int frame_size; /* current frame size in words */
35 int halfratecod; 35 int halfratecod;
36 int frmsizecod; 36 unsigned int frmsizecod;
37 int fscod; /* frequency */ 37 unsigned int fscod; /* frequency */
38 int acmod; 38 unsigned int acmod;
39 int lfe; 39 int lfe;
40 int bsmod; 40 unsigned int bsmod;
41 short last_samples[AC3_MAX_CHANNELS][256]; 41 short last_samples[AC3_MAX_CHANNELS][256];
42 int chbwcod[AC3_MAX_CHANNELS]; 42 unsigned int chbwcod[AC3_MAX_CHANNELS];
43 int nb_coefs[AC3_MAX_CHANNELS]; 43 int nb_coefs[AC3_MAX_CHANNELS];
44 44
45 /* bitrate allocation control */ 45 /* bitrate allocation control */
46 int sgaincod, sdecaycod, fdecaycod, dbkneecod, floorcod; 46 int sgaincod, sdecaycod, fdecaycod, dbkneecod, floorcod;
47 AC3BitAllocParameters bit_alloc; 47 AC3BitAllocParameters bit_alloc;
584 584
585 return 4 + (nb_groups / 3) * 7; 585 return 4 + (nb_groups / 3) * 7;
586 } 586 }
587 587
588 /* return the size in bits taken by the mantissa */ 588 /* return the size in bits taken by the mantissa */
589 int compute_mantissa_size(AC3EncodeContext *s, UINT8 *m, int nb_coefs) 589 static int compute_mantissa_size(AC3EncodeContext *s, UINT8 *m, int nb_coefs)
590 { 590 {
591 int bits, mant, i; 591 int bits, mant, i;
592 592
593 bits = 0; 593 bits = 0;
594 for(i=0;i<nb_coefs;i++) { 594 for(i=0;i<nb_coefs;i++) {