FFmpeg  4.4
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

◆ ff_mp2fixed_encoder

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 enum AVSampleFormat sample_fmts[]
Definition: adpcmenc.c:925
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
#define AV_CH_LAYOUT_MONO
#define AV_CH_LAYOUT_STEREO
@ AV_CODEC_ID_MP2
Definition: codec_id.h:424
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:58
@ AV_SAMPLE_FMT_NONE
Definition: samplefmt.h:59
@ AV_SAMPLE_FMT_S16
signed 16 bits
Definition: samplefmt.h:61
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
static int MPA_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
static av_cold int MPA_encode_init(AVCodecContext *avctx)
static const AVCodecDefault mp2_defaults[]

Definition at line 24 of file mpegaudioenc_fixed.c.