30 #undef CONFIG_AC3ENC_FLOAT 
   36 #define AC3ENC_TYPE AC3ENC_TYPE_AC3_FIXED 
   98         for (ch = 1; ch <= s->
channels; ch++) {
 
  130         uint64_t coord   = energy_ch / (energy_cpl >> 24);
 
  131         uint32_t coord32 = 
FFMIN(coord, 1073741824);
 
  132         coord32          = 
ff_sqrt(coord32) << 9;
 
void(* ac3_rshift_int32)(int32_t *src, unsigned int len, unsigned int shift)
Right-shift each value in an array of int32_t by a specified amount. 
 
void(* vector_clip_int32)(int32_t *dst, const int32_t *src, int32_t min, int32_t max, unsigned int len)
Clip each element in an array of int32_t to a given minimum and maximum value. 
 
#define LIBAVUTIL_VERSION_INT
 
static av_cold int init(AVCodecContext *avctx)
 
static av_cold int ac3_fixed_encode_init(AVCodecContext *avctx)
 
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
 
av_cold int AC3_NAME() mdct_init(AC3EncodeContext *s)
Initialize MDCT tables. 
 
int(* ac3_max_msb_abs_int16)(const int16_t *src, int len)
Calculate the maximum MSB of the absolute value of each element in an array of int16_t. 
 
av_cold int ff_ac3_encode_close(AVCodecContext *avctx)
Finalize encoding and free any memory allocated by the encoder. 
 
const int16_t ff_ac3_window[AC3_WINDOW_SIZE/2]
 
AC3DSPContext ac3dsp
AC-3 optimized functions. 
 
av_cold void AC3_NAME() mdct_end(AC3EncodeContext *s)
Finalize MDCT and free allocated memory. 
 
CoefType ** mdct_coef
MDCT coefficients. 
 
const uint64_t ff_ac3_channel_layouts[19]
List of supported channel layouts. 
 
int channels
total number of channels (nchans) 
 
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
 
const char * name
Name of the codec implementation. 
 
int fixed_point
indicates if fixed-point encoder is being used 
 
Data for a single audio block. 
 
static void scale_coefficients(AC3EncodeContext *s)
 
static void clip_coefficients(AudioDSPContext *adsp, int32_t *coef, unsigned int len)
 
AVSampleFormat
Audio sample formats. 
 
static CoefType calc_cpl_coord(CoefSumType energy_ch, CoefSumType energy_cpl)
 
main external API structure. 
 
Describe the class of an AVClass context structure. 
 
int ff_ac3_fixed_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
 
static const AVCodecDefault ac3_defaults[]
 
AC-3 encoder private context. 
 
AC3Block blocks[AC3_MAX_BLOCKS]
per-block info 
 
SampleType * windowed_samples
 
int num_blocks
number of blocks per frame 
 
uint8_t coeff_shift[AC3_MAX_CHANNELS]
fixed-point coefficient shift values 
 
AC-3 encoder float/fixed template. 
 
common internal api header. 
 
AVCodec ff_ac3_fixed_encoder
 
static const AVClass ac3enc_class
 
void(* ac3_lshift_int16)(int16_t *src, unsigned int len, unsigned int shift)
Left-shift each value in an array of int16_t by a specified amount. 
 
static const AVOption ac3_options[]
 
AVCodecContext * avctx
parent AVCodecContext 
 
static int normalize_samples(AC3EncodeContext *s)
 
AC-3 encoder & E-AC-3 encoder common header. 
 
void(* sum_square_butterfly_int32)(int64_t sum[4], const int32_t *coef0, const int32_t *coef1, int len)
 
static enum AVSampleFormat sample_fmts[]
 
static void sum_square_butterfly(AC3EncodeContext *s, int64_t sum[4], const int32_t *coef0, const int32_t *coef1, int len)
 
av_cold int ff_ac3_encode_init(AVCodecContext *avctx)