comparison mpegaudio.c @ 1064:b32afefe7d33 libavcodec

* UINTX -> uintx_t INTX -> intx_t
author kabi
date Tue, 11 Feb 2003 16:35:48 +0000
parents bb5de8a59da8
children 1e39f273ecd6
comparison
equal deleted inserted replaced
1063:fdeac9642346 1064:b32afefe7d33
21 21
22 /* currently, cannot change these constants (need to modify 22 /* currently, cannot change these constants (need to modify
23 quantization stage) */ 23 quantization stage) */
24 #define FRAC_BITS 15 24 #define FRAC_BITS 15
25 #define WFRAC_BITS 14 25 #define WFRAC_BITS 14
26 #define MUL(a,b) (((INT64)(a) * (INT64)(b)) >> FRAC_BITS) 26 #define MUL(a,b) (((int64_t)(a) * (int64_t)(b)) >> FRAC_BITS)
27 #define FIX(a) ((int)((a) * (1 << FRAC_BITS))) 27 #define FIX(a) ((int)((a) * (1 << FRAC_BITS)))
28 28
29 #define SAMPLES_BUF_SIZE 4096 29 #define SAMPLES_BUF_SIZE 4096
30 30
31 typedef struct MpegAudioContext { 31 typedef struct MpegAudioContext {
34 int freq, bit_rate; 34 int freq, bit_rate;
35 int lsf; /* 1 if mpeg2 low bitrate selected */ 35 int lsf; /* 1 if mpeg2 low bitrate selected */
36 int bitrate_index; /* bit rate */ 36 int bitrate_index; /* bit rate */
37 int freq_index; 37 int freq_index;
38 int frame_size; /* frame size, in bits, without padding */ 38 int frame_size; /* frame size, in bits, without padding */
39 INT64 nb_samples; /* total number of samples encoded */ 39 int64_t nb_samples; /* total number of samples encoded */
40 /* padding computation */ 40 /* padding computation */
41 int frame_frac, frame_frac_incr, do_padding; 41 int frame_frac, frame_frac_incr, do_padding;
42 short samples_buf[MPA_MAX_CHANNELS][SAMPLES_BUF_SIZE]; /* buffer for filter */ 42 short samples_buf[MPA_MAX_CHANNELS][SAMPLES_BUF_SIZE]; /* buffer for filter */
43 int samples_offset[MPA_MAX_CHANNELS]; /* offset in samples_buf */ 43 int samples_offset[MPA_MAX_CHANNELS]; /* offset in samples_buf */
44 int sb_samples[MPA_MAX_CHANNELS][3][12][SBLIMIT]; 44 int sb_samples[MPA_MAX_CHANNELS][3][12][SBLIMIT];