comparison mpegaudioenc.c @ 5161:94c3f01c243c libavcodec

move a couple of macros and structs to mpegaudio.h
author mru
date Sat, 16 Jun 2007 22:58:43 +0000
parents 4dbe6578f811
children 48759bfbd073
comparison
equal deleted inserted replaced
5160:13386224ff72 5161:94c3f01c243c
29 #include "mpegaudio.h" 29 #include "mpegaudio.h"
30 30
31 /* currently, cannot change these constants (need to modify 31 /* currently, cannot change these constants (need to modify
32 quantization stage) */ 32 quantization stage) */
33 #define MUL(a,b) (((int64_t)(a) * (int64_t)(b)) >> FRAC_BITS) 33 #define MUL(a,b) (((int64_t)(a) * (int64_t)(b)) >> FRAC_BITS)
34 #define FIX(a) ((int)((a) * (1 << FRAC_BITS)))
35 34
36 #define SAMPLES_BUF_SIZE 4096 35 #define SAMPLES_BUF_SIZE 4096
37 36
38 typedef struct MpegAudioContext { 37 typedef struct MpegAudioContext {
39 PutBitContext pb; 38 PutBitContext pb;