diff options
author | Zdenek Kabelac <kabi@informatics.muni.cz> | 2002-04-08 12:08:03 +0000 |
---|---|---|
committer | Zdenek Kabelac <kabi@informatics.muni.cz> | 2002-04-08 12:08:03 +0000 |
commit | 30b68f33aa5f6480b4271820c228438e2e6e79eb (patch) | |
tree | c64ac04fdc3aa66af5bd8b4421947d020ce67db4 /libavcodec/ac3enc.h | |
parent | 10bb7023a224adbcd2b97d5115db57bf13094906 (diff) | |
download | ffmpeg-30b68f33aa5f6480b4271820c228438e2e6e79eb.tar.gz |
* encoding of AC3 with more than 2 channels
by Takashi Iwai <tiwai@suse.de>
Originally committed as revision 383 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3enc.h')
-rw-r--r-- | libavcodec/ac3enc.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/ac3enc.h b/libavcodec/ac3enc.h index 40cc53aced..6dd0966ec8 100644 --- a/libavcodec/ac3enc.h +++ b/libavcodec/ac3enc.h @@ -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 @@ typedef struct AC3EncodeContext { int frmsizecod; int fscod; /* frequency */ int acmod; + int lfe; int bsmod; short last_samples[AC3_MAX_CHANNELS][256]; int chbwcod[AC3_MAX_CHANNELS]; |