comparison mpegaudio.h @ 8594:c5349ca95c08 libavcodec

Replace #ifdef CONFIG_ preprocessor check by #if CONFIG_. CONFIG_ changed semantics and is always defined now.
author diego
date Wed, 14 Jan 2009 07:57:12 +0000
parents 9aac5b3cecbd
children 6550218be3b7
comparison
equal deleted inserted replaced
8593:7de1d00618e4 8594:c5349ca95c08
49 #define SAME_HEADER_MASK \ 49 #define SAME_HEADER_MASK \
50 (0xffe00000 | (3 << 17) | (0xf << 12) | (3 << 10) | (3 << 19)) 50 (0xffe00000 | (3 << 17) | (0xf << 12) | (3 << 10) | (3 << 19))
51 51
52 #define MP3_MASK 0xFFFE0CCF 52 #define MP3_MASK 0xFFFE0CCF
53 53
54 #ifdef CONFIG_MPEGAUDIO_HP 54 #if CONFIG_MPEGAUDIO_HP
55 #define FRAC_BITS 23 /* fractional bits for sb_samples and dct */ 55 #define FRAC_BITS 23 /* fractional bits for sb_samples and dct */
56 #define WFRAC_BITS 16 /* fractional bits for window */ 56 #define WFRAC_BITS 16 /* fractional bits for window */
57 #else 57 #else
58 #define FRAC_BITS 15 /* fractional bits for sb_samples and dct */ 58 #define FRAC_BITS 15 /* fractional bits for sb_samples and dct */
59 #define WFRAC_BITS 14 /* fractional bits for window */ 59 #define WFRAC_BITS 14 /* fractional bits for window */
61 61
62 #define FRAC_ONE (1 << FRAC_BITS) 62 #define FRAC_ONE (1 << FRAC_BITS)
63 63
64 #define FIX(a) ((int)((a) * FRAC_ONE)) 64 #define FIX(a) ((int)((a) * FRAC_ONE))
65 65
66 #if defined(CONFIG_MPEGAUDIO_HP) && defined(CONFIG_AUDIO_NONSHORT) 66 #if CONFIG_MPEGAUDIO_HP && CONFIG_AUDIO_NONSHORT
67 typedef int32_t OUT_INT; 67 typedef int32_t OUT_INT;
68 #define OUT_MAX INT32_MAX 68 #define OUT_MAX INT32_MAX
69 #define OUT_MIN INT32_MIN 69 #define OUT_MIN INT32_MIN
70 #define OUT_SHIFT (WFRAC_BITS + FRAC_BITS - 31) 70 #define OUT_SHIFT (WFRAC_BITS + FRAC_BITS - 31)
71 #else 71 #else