Mercurial > libavcodec.hg
diff ac3enc.h @ 314:289eb941b8ba libavcodec
* encoding of AC3 with more than 2 channels
by Takashi Iwai <tiwai@suse.de>
| author | kabi |
|---|---|
| date | Mon, 08 Apr 2002 12:08:03 +0000 |
| parents | 986e461dc072 |
| children |
line wrap: on
line diff
--- a/ac3enc.h Sun Apr 07 21:44:29 2002 +0000 +++ b/ac3enc.h Mon Apr 08 12:08:03 2002 +0000 @@ -1,12 +1,13 @@ #define AC3_FRAME_SIZE (6*256) #define AC3_MAX_CODED_FRAME_SIZE 3840 /* in bytes */ -#define AC3_MAX_CHANNELS 2 /* we handle at most two channels, although - AC3 allows 6 channels */ +#define AC3_MAX_CHANNELS 6 typedef struct AC3EncodeContext { PutBitContext pb; int nb_channels; + int nb_all_channels; + int lfe_channel; int bit_rate; int sample_rate; int bsid; @@ -16,6 +17,7 @@ int frmsizecod; int fscod; /* frequency */ int acmod; + int lfe; int bsmod; short last_samples[AC3_MAX_CHANNELS][256]; int chbwcod[AC3_MAX_CHANNELS];
