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

Go to the source code of this file.

Variables

AVCodec ff_mp2fixed_encoder
 

Variable Documentation

AVCodec ff_mp2fixed_encoder
Initial value:
= {
.name = "mp2fixed",
.long_name = NULL_IF_CONFIG_SMALL("MP2 fixed point (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:176
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:59
signed 16 bits
Definition: samplefmt.h:62
static enum AVSampleFormat sample_fmts[]
Definition: adpcmenc.c:701
#define AV_CH_LAYOUT_MONO

Definition at line 24 of file mpegaudioenc_fixed.c.