FFmpeg
Classes | Macros | Typedefs | Variables
libtwolame.c File Reference

Interface to libtwolame for mp2 encoding. More...

#include <twolame.h>
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "internal.h"
#include "mpegaudio.h"

Classes

struct  TWOLAMEContext
 

Macros

#define OFFSET(x)   offsetof(TWOLAMEContext, x)
 
#define AE   AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
 

Typedefs

typedef struct TWOLAMEContext TWOLAMEContext
 

Variables

AVCodec ff_libtwolame_encoder
 

Detailed Description

Interface to libtwolame for mp2 encoding.

Variable Documentation

§ ff_libtwolame_encoder

AVCodec ff_libtwolame_encoder
Initial value:
= {
.name = "libtwolame",
.long_name = NULL_IF_CONFIG_SMALL("libtwolame MP2 (MPEG audio layer 2)"),
.type = AVMEDIA_TYPE_AUDIO,
.id = AV_CODEC_ID_MP2,
.priv_data_size = sizeof(TWOLAMEContext),
.init = twolame_encode_init,
.encode2 = twolame_encode_frame,
.close = twolame_encode_close,
.capabilities = AV_CODEC_CAP_DELAY,
.defaults = twolame_defaults,
.priv_class = &twolame_class,
.sample_fmts = (const enum AVSampleFormat[]) {
AV_SAMPLE_FMT_NONE
},
.channel_layouts = (const uint64_t[]) {
AV_CH_LAYOUT_MONO,
AV_CH_LAYOUT_STEREO,
0 },
.supported_samplerates = twolame_samplerates,
.wrapper_name = "libtwolame",
}
float, planar
Definition: samplefmt.h:69
float
Definition: samplefmt.h:63
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: avcodec.h:984
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
Definition: libtwolame.c:36
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:58
signed 16 bits
Definition: samplefmt.h:61
signed 16 bits, planar
Definition: samplefmt.h:67