mpegaudioenc.c File Reference

Go to the source code of this file.

Classes

struct  MpegAudioContext

Functions

static int MPA_encode_init (AVCodecContext *avctx)
static void idct32 (int *out, int *tab)
static void filter (MpegAudioContext *s, int ch, short *samples, int incr)
static void compute_scale_factors (unsigned char scale_code[SBLIMIT], unsigned char scale_factors[SBLIMIT][3], int sb_samples[3][12][SBLIMIT], int sblimit)
static void psycho_acoustic_model (MpegAudioContext *s, short smr[SBLIMIT])
static void compute_bit_allocation (MpegAudioContext *s, short smr1[MPA_MAX_CHANNELS][SBLIMIT], unsigned char bit_alloc[MPA_MAX_CHANNELS][SBLIMIT], int *padding)
static void encode_frame (MpegAudioContext *s, unsigned char bit_alloc[MPA_MAX_CHANNELS][SBLIMIT], int padding)
static int MPA_encode_frame (AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data)
static int MPA_encode_close (AVCodecContext *avctx)

Variables

AVCodec mp2_encoder


Function Documentation

static int MPA_encode_init ( AVCodecContext avctx  )  [static]

Definition at line 64 of file mpegaudioenc.c.

static void idct32 ( int *  out,
int *  tab 
) [static]

Definition at line 191 of file mpegaudioenc.c.

Referenced by filter().

static void filter ( MpegAudioContext s,
int  ch,
short *  samples,
int  incr 
) [static]

static void compute_scale_factors ( unsigned char  scale_code[SBLIMIT],
unsigned char  scale_factors[SBLIMIT][3],
int  sb_samples[3][12][SBLIMIT],
int  sblimit 
) [static]

Definition at line 369 of file mpegaudioenc.c.

Referenced by MPA_encode_frame().

static void psycho_acoustic_model ( MpegAudioContext s,
short  smr[SBLIMIT] 
) [static]

Definition at line 488 of file mpegaudioenc.c.

Referenced by MPA_encode_frame().

static void compute_bit_allocation ( MpegAudioContext s,
short  smr1[MPA_MAX_CHANNELS][SBLIMIT],
unsigned char  bit_alloc[MPA_MAX_CHANNELS][SBLIMIT],
int *  padding 
) [static]

Definition at line 505 of file mpegaudioenc.c.

static void encode_frame ( MpegAudioContext s,
unsigned char  bit_alloc[MPA_MAX_CHANNELS][SBLIMIT],
int  padding 
) [static]

Definition at line 610 of file mpegaudioenc.c.

static int MPA_encode_frame ( AVCodecContext avctx,
unsigned char *  frame,
int  buf_size,
void *  data 
) [static]

Definition at line 754 of file mpegaudioenc.c.

static int MPA_encode_close ( AVCodecContext avctx  )  [static]

Definition at line 784 of file mpegaudioenc.c.


Variable Documentation

Initial value:

Definition at line 790 of file mpegaudioenc.c.


Generated on Sat Dec 18 05:15:54 2010 for MythTV by  doxygen 1.5.5