libavcodec/libmp3lame.c File Reference

#include "avcodec.h"
#include "mpegaudio.h"
#include <lame/lame.h>

Go to the source code of this file.

Data Structures

struct  Mp3AudioContext

Defines

#define BUFFER_SIZE   (7200 + MPA_FRAME_SIZE + MPA_FRAME_SIZE/4)

Functions

static int MP3lame_encode_init (AVCodecContext *avctx)
static int mp3len (void *data, int *samplesPerFrame, int *sampleRate)
static int MP3lame_encode_frame (AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data)
static int MP3lame_encode_close (AVCodecContext *avctx)

Variables

static const int sSampleRates [3]
static const int sBitRates [2][3][15]
static const int sSamplesPerFrame [2][3]
static const int sBitsPerSlot [3]
AVCodec libmp3lame_encoder


Define Documentation

#define BUFFER_SIZE   (7200 + MPA_FRAME_SIZE + MPA_FRAME_SIZE/4)

Definition at line 31 of file libmp3lame.c.

Referenced by ff_xvid_encode_init(), http_getc(), and MP3lame_encode_frame().


Function Documentation

static int MP3lame_encode_close ( AVCodecContext avctx  )  [static]

Definition at line 200 of file libmp3lame.c.

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

Definition at line 137 of file libmp3lame.c.

static int MP3lame_encode_init ( AVCodecContext avctx  )  [static]

Definition at line 39 of file libmp3lame.c.

static int mp3len ( void *  data,
int *  samplesPerFrame,
int *  sampleRate 
) [static]

Definition at line 107 of file libmp3lame.c.

Referenced by MP3lame_encode_frame().


Variable Documentation

Initial value:

Definition at line 211 of file libmp3lame.c.

const int sBitRates[2][3][15] [static]

Initial value:

 {
    {   {  0, 32, 64, 96,128,160,192,224,256,288,320,352,384,416,448},
        {  0, 32, 48, 56, 64, 80, 96,112,128,160,192,224,256,320,384},
        {  0, 32, 40, 48, 56, 64, 80, 96,112,128,160,192,224,256,320}
    },
    {   {  0, 32, 48, 56, 64, 80, 96,112,128,144,160,176,192,224,256},
        {  0,  8, 16, 24, 32, 40, 48, 56, 64, 80, 96,112,128,144,160},
        {  0,  8, 16, 24, 32, 40, 48, 56, 64, 80, 96,112,128,144,160}
    },
}

Definition at line 84 of file libmp3lame.c.

Referenced by mp3len().

const int sBitsPerSlot[3] [static]

Initial value:

 {
    32,
    8,
    8
}

Definition at line 101 of file libmp3lame.c.

Referenced by mp3len().

const int sSampleRates[3] [static]

Initial value:

 {
    44100, 48000,  32000
}

Definition at line 80 of file libmp3lame.c.

Referenced by mp3len().

const int sSamplesPerFrame[2][3] [static]

Initial value:

{
    {  384,     1152,    1152 },
    {  384,     1152,     576 }
}

Definition at line 95 of file libmp3lame.c.

Referenced by mp3len().


Generated on Sat Sep 6 21:24:29 2008 for ffmpeg by  doxygen 1.5.6