FFmpeg
Data Structures | Macros | Functions | Variables
aacdec_latm.h File Reference

Go to the source code of this file.

Data Structures

struct  LATMContext
 

Macros

#define LOAS_SYNC_WORD   0x2b7
 11 bits LOAS sync word More...
 

Functions

static uint32_t latm_get_value (GetBitContext *b)
 
static int latm_decode_audio_specific_config (struct LATMContext *latmctx, GetBitContext *gb, int asclen)
 
static int read_stream_mux_config (struct LATMContext *latmctx, GetBitContext *gb)
 
static int read_payload_length_info (struct LATMContext *ctx, GetBitContext *gb)
 
static int read_audio_mux_element (struct LATMContext *latmctx, GetBitContext *gb)
 
static int latm_decode_frame (AVCodecContext *avctx, AVFrame *out, int *got_frame_ptr, AVPacket *avpkt)
 
static av_cold int latm_decode_init (AVCodecContext *avctx)
 

Variables

const FFCodec ff_aac_latm_decoder
 

Macro Definition Documentation

◆ LOAS_SYNC_WORD

#define LOAS_SYNC_WORD   0x2b7

11 bits LOAS sync word

Definition at line 35 of file aacdec_latm.h.

Function Documentation

◆ latm_get_value()

static uint32_t latm_get_value ( GetBitContext b)
inlinestatic

Definition at line 47 of file aacdec_latm.h.

Referenced by read_stream_mux_config().

◆ latm_decode_audio_specific_config()

static int latm_decode_audio_specific_config ( struct LATMContext latmctx,
GetBitContext gb,
int  asclen 
)
static

Definition at line 54 of file aacdec_latm.h.

Referenced by read_stream_mux_config().

◆ read_stream_mux_config()

static int read_stream_mux_config ( struct LATMContext latmctx,
GetBitContext gb 
)
static

Definition at line 124 of file aacdec_latm.h.

Referenced by read_audio_mux_element().

◆ read_payload_length_info()

static int read_payload_length_info ( struct LATMContext ctx,
GetBitContext gb 
)
static

Definition at line 204 of file aacdec_latm.h.

Referenced by read_audio_mux_element().

◆ read_audio_mux_element()

static int read_audio_mux_element ( struct LATMContext latmctx,
GetBitContext gb 
)
static

Definition at line 227 of file aacdec_latm.h.

Referenced by latm_decode_frame().

◆ latm_decode_frame()

static int latm_decode_frame ( AVCodecContext avctx,
AVFrame out,
int *  got_frame_ptr,
AVPacket avpkt 
)
static

Definition at line 256 of file aacdec_latm.h.

◆ latm_decode_init()

static av_cold int latm_decode_init ( AVCodecContext avctx)
static

Definition at line 317 of file aacdec_latm.h.

Variable Documentation

◆ ff_aac_latm_decoder

const FFCodec ff_aac_latm_decoder
Initial value:
= {
.p.name = "aac_latm",
CODEC_LONG_NAME("AAC LATM (Advanced Audio Coding LATM syntax)"),
.p.type = AVMEDIA_TYPE_AUDIO,
.priv_data_size = sizeof(struct LATMContext),
.close = decode_close,
.p.sample_fmts = (const enum AVSampleFormat[]) {
},
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
.p.ch_layouts = ff_aac_ch_layout,
.flush = flush,
}

Definition at line 333 of file aacdec_latm.h.

AV_SAMPLE_FMT_FLTP
@ AV_SAMPLE_FMT_FLTP
float, planar
Definition: samplefmt.h:66
decode_close
static av_cold int decode_close(AVCodecContext *avctx)
Definition: aacdec.c:1101
FF_CODEC_CAP_INIT_CLEANUP
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: codec_internal.h:43
ff_aac_profiles
const AVProfile ff_aac_profiles[]
Definition: profiles.c:27
latm_decode_frame
static int latm_decode_frame(AVCodecContext *avctx, AVFrame *out, int *got_frame_ptr, AVPacket *avpkt)
Definition: aacdec_latm.h:256
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
ff_aac_ch_layout
const AVChannelLayout ff_aac_ch_layout[]
Definition: aacdec_tab.c:96
flush
void(* flush)(AVBSFContext *ctx)
Definition: dts2pts.c:370
AV_CODEC_CAP_CHANNEL_CONF
#define AV_CODEC_CAP_CHANNEL_CONF
Codec should fill in channel configuration and samplerate instead of container.
Definition: codec.h:106
latm_decode_init
static av_cold int latm_decode_init(AVCodecContext *avctx)
Definition: aacdec_latm.h:317
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:368
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:94
AV_SAMPLE_FMT_NONE
@ AV_SAMPLE_FMT_NONE
Definition: samplefmt.h:56
LATMContext
Definition: aacdec_latm.h:37
AVSampleFormat
AVSampleFormat
Audio sample formats.
Definition: samplefmt.h:55
AV_CODEC_ID_AAC_LATM
@ AV_CODEC_ID_AAC_LATM
Definition: codec_id.h:495