FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
mpegaudioenc_float.c File Reference
#include "mpegaudioenc_template.c"

Go to the source code of this file.

Macros

#define USE_FLOATS   1
 

Variables

AVCodec ff_mp2_encoder
 

Macro Definition Documentation

#define USE_FLOATS   1

Definition at line 22 of file mpegaudioenc_float.c.

Variable Documentation

AVCodec ff_mp2_encoder
Initial value:
= {
.name = "mp2",
.long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"),
.priv_data_size = sizeof(MpegAudioContext),
.encode2 = MPA_encode_frame,
.supported_samplerates = (const int[]){
44100, 48000, 32000, 22050, 24000, 16000, 0
},
.channel_layouts = (const uint64_t[]){ AV_CH_LAYOUT_MONO,
0 },
.defaults = mp2_defaults,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define AV_CH_LAYOUT_STEREO
static int MPA_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
static const AVCodecDefault mp2_defaults[]
static av_cold int MPA_encode_init(AVCodecContext *avctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:58
signed 16 bits
Definition: samplefmt.h:61
static enum AVSampleFormat sample_fmts[]
Definition: adpcmenc.c:701
#define AV_CH_LAYOUT_MONO

Definition at line 25 of file mpegaudioenc_float.c.