FFmpeg
4.0
|
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 realloc_buffer().
#define ENCODE_BUFFER | ( | func, | |
buf_type, | |||
buf_name | |||
) |
Definition at line 180 of file libmp3lame.c.
Referenced by mp3lame_encode_frame().
#define OFFSET | ( | x | ) | offsetof(LAMEContext, x) |
Definition at line 307 of file libmp3lame.c.
#define AE AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Definition at line 308 of file libmp3lame.c.
|
static |
Definition at line 60 of file libmp3lame.c.
Referenced by mp3lame_encode_frame(), and mp3lame_encode_init().
|
static |
Definition at line 76 of file libmp3lame.c.
Referenced by mp3lame_encode_init().
|
static |
Definition at line 91 of file libmp3lame.c.
|
static |
Definition at line 188 of file libmp3lame.c.
|
static |
Definition at line 309 of file libmp3lame.c.
|
static |
Definition at line 316 of file libmp3lame.c.
|
static |
Definition at line 323 of file libmp3lame.c.
|
static |
Definition at line 328 of file libmp3lame.c.
AVCodec ff_libmp3lame_encoder |
Definition at line 332 of file libmp3lame.c.