comparison ac3dec.h @ 7026:4bd2ccb0619e libavcodec

store cpl_in_use for all blocks in decode context
author jbr
date Sat, 07 Jun 2008 22:30:43 +0000
parents acf98a472f74
children 1edec36c02c5
comparison
equal deleted inserted replaced
7025:acf98a472f74 7026:4bd2ccb0619e
40 40
41 #define AC3_OUTPUT_LFEON 8 41 #define AC3_OUTPUT_LFEON 8
42 42
43 #define AC3_MAX_COEFS 256 43 #define AC3_MAX_COEFS 256
44 #define AC3_BLOCK_SIZE 256 44 #define AC3_BLOCK_SIZE 256
45 #define MAX_BLOCKS 6
45 46
46 typedef struct { 47 typedef struct {
47 AVCodecContext *avctx; ///< parent context 48 AVCodecContext *avctx; ///< parent context
48 GetBitContext gbc; ///< bitstream reader 49 GetBitContext gbc; ///< bitstream reader
49 uint8_t *input_buffer; ///< temp buffer to prevent overread 50 uint8_t *input_buffer; ///< temp buffer to prevent overread
61 int center_mix_level; ///< Center mix level index 62 int center_mix_level; ///< Center mix level index
62 int surround_mix_level; ///< Surround mix level index 63 int surround_mix_level; ///< Surround mix level index
63 ///@} 64 ///@}
64 65
65 ///@defgroup cpl standard coupling 66 ///@defgroup cpl standard coupling
66 int cpl_in_use; ///< coupling in use (cplinu) 67 int cpl_in_use[MAX_BLOCKS]; ///< coupling in use (cplinu)
67 int channel_in_cpl[AC3_MAX_CHANNELS]; ///< channel in coupling (chincpl) 68 int channel_in_cpl[AC3_MAX_CHANNELS]; ///< channel in coupling (chincpl)
68 int phase_flags_in_use; ///< phase flags in use (phsflginu) 69 int phase_flags_in_use; ///< phase flags in use (phsflginu)
69 int phase_flags[18]; ///< phase flags (phsflg) 70 int phase_flags[18]; ///< phase flags (phsflg)
70 int num_cpl_subbands; ///< number of coupling sub bands (ncplsubnd) 71 int num_cpl_subbands; ///< number of coupling sub bands (ncplsubnd)
71 int num_cpl_bands; ///< number of coupling bands (ncplbnd) 72 int num_cpl_bands; ///< number of coupling bands (ncplbnd)