FFmpeg
|
Interface to libmp3lame for mp3 encoding. More...
#include <lame/lame.h>
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/float_dsp.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "audio_frame_queue.h"
#include "internal.h"
#include "mpegaudio.h"
#include "mpegaudiodecheader.h"
Go to the source code of this file.
Data Structures | |
struct | LAMEContext |
Macros | |
#define | BUFFER_SIZE (7200 + 2 * MPA_FRAME_SIZE + MPA_FRAME_SIZE / 4+1000) |
#define | ENCODE_BUFFER(func, buf_type, buf_name) |
#define | OFFSET(x) offsetof(LAMEContext, x) |
#define | AE AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Functions | |
static int | realloc_buffer (LAMEContext *s) |
static av_cold int | mp3lame_encode_close (AVCodecContext *avctx) |
static av_cold int | mp3lame_encode_init (AVCodecContext *avctx) |
static int | mp3lame_encode_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) |
Variables | |
static const AVOption | options [] |
static const AVClass | libmp3lame_class |
static const AVCodecDefault | libmp3lame_defaults [] |
static const int | libmp3lame_sample_rates [] |
AVCodec | ff_libmp3lame_encoder |
Interface to libmp3lame for mp3 encoding.
Definition in file libmp3lame.c.
#define BUFFER_SIZE (7200 + 2 * MPA_FRAME_SIZE + MPA_FRAME_SIZE / 4+1000) |
Definition at line 41 of file libmp3lame.c.
Referenced by mp3lame_encode_frame(), and realloc_buffer().
#define ENCODE_BUFFER | ( | func, | |
buf_type, | |||
buf_name | |||
) |
Definition at line 179 of file libmp3lame.c.
Referenced by mp3lame_encode_frame().
#define OFFSET | ( | x | ) | offsetof(LAMEContext, x) |
Definition at line 273 of file libmp3lame.c.
#define AE AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 274 of file libmp3lame.c.
|
static |
Definition at line 57 of file libmp3lame.c.
Referenced by mp3lame_encode_frame(), and mp3lame_encode_init().
|
static |
Definition at line 77 of file libmp3lame.c.
Referenced by mp3lame_encode_init().
|
static |
Definition at line 94 of file libmp3lame.c.
|
static |
Definition at line 187 of file libmp3lame.c.
|
static |
Definition at line 275 of file libmp3lame.c.
|
static |
Definition at line 280 of file libmp3lame.c.
|
static |
Definition at line 287 of file libmp3lame.c.
|
static |
Definition at line 292 of file libmp3lame.c.
AVCodec ff_libmp3lame_encoder |
Definition at line 296 of file libmp3lame.c.