Interface to libmp3lame for mp3 encoding. More...
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "mpegaudio.h"
#include <lame/lame.h>
Go to the source code of this file.
Data Structures | |
struct | Mp3AudioContext |
Macros | |
#define | BUFFER_SIZE (7200 + 2 * MPA_FRAME_SIZE + MPA_FRAME_SIZE / 4) |
#define | OFFSET(x) offsetof(Mp3AudioContext, x) |
#define | AE AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Typedefs | |
typedef struct Mp3AudioContext | Mp3AudioContext |
Functions | |
static av_cold 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 av_cold int | MP3lame_encode_close (AVCodecContext *avctx) |
Variables | |
static const int | sSampleRates [] |
static const int | sBitRates [2][3][15] |
static const int | sSamplesPerFrame [2][3] |
static const int | sBitsPerSlot [3] = { 32, 8, 8 } |
static const AVOption | options [] |
static const AVClass | libmp3lame_class |
AVCodec | ff_libmp3lame_encoder |
Interface to libmp3lame for mp3 encoding.
Definition in file libmp3lame.c.
#define AE AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 218 of file libmp3lame.c.
#define BUFFER_SIZE (7200 + 2 * MPA_FRAME_SIZE + MPA_FRAME_SIZE / 4) |
Definition at line 34 of file libmp3lame.c.
Referenced by MP3lame_encode_frame().
#define OFFSET | ( | x | ) | offsetof(Mp3AudioContext, x) |
Definition at line 217 of file libmp3lame.c.
typedef struct Mp3AudioContext Mp3AudioContext |
|
static |
Definition at line 207 of file libmp3lame.c.
|
static |
Definition at line 149 of file libmp3lame.c.
|
static |
Definition at line 44 of file libmp3lame.c.
|
static |
Definition at line 114 of file libmp3lame.c.
Referenced by MP3lame_encode_frame().
AVCodec ff_libmp3lame_encoder |
Definition at line 231 of file libmp3lame.c.
|
static |
Definition at line 224 of file libmp3lame.c.
|
static |
Definition at line 219 of file libmp3lame.c.
|
static |
Definition at line 94 of file libmp3lame.c.
Referenced by mp3len().
|
static |
Definition at line 112 of file libmp3lame.c.
Referenced by mp3len().
|
static |
Definition at line 90 of file libmp3lame.c.
Referenced by mp3len().
|
static |
Definition at line 107 of file libmp3lame.c.
Referenced by mp3len().