FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
latmenc.c File Reference
#include "libavcodec/get_bits.h"
#include "libavcodec/put_bits.h"
#include "libavcodec/avcodec.h"
#include "libavcodec/mpeg4audio.h"
#include "libavutil/opt.h"
#include "avformat.h"
#include "internal.h"
#include "rawenc.h"

Go to the source code of this file.

Data Structures

struct  LATMContext
 

Macros

#define MAX_EXTRADATA_SIZE   1024
 

Functions

static int latm_decode_extradata (LATMContext *ctx, uint8_t *buf, int size)
 
static int latm_write_header (AVFormatContext *s)
 
static void latm_write_frame_header (AVFormatContext *s, PutBitContext *bs)
 
static int latm_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int latm_check_bitstream (struct AVFormatContext *s, const AVPacket *pkt)
 

Variables

static const AVOption options []
 
static const AVClass latm_muxer_class
 
AVOutputFormat ff_latm_muxer
 

Macro Definition Documentation

#define MAX_EXTRADATA_SIZE   1024

Definition at line 31 of file latmenc.c.

Referenced by latm_decode_extradata(), and latm_write_packet().

Function Documentation

static int latm_decode_extradata ( LATMContext ctx,
uint8_t buf,
int  size 
)
static

Definition at line 56 of file latmenc.c.

Referenced by latm_write_header().

static int latm_write_header ( AVFormatContext s)
static

Definition at line 85 of file latmenc.c.

static void latm_write_frame_header ( AVFormatContext s,
PutBitContext bs 
)
static

Definition at line 100 of file latmenc.c.

Referenced by latm_write_packet().

static int latm_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 146 of file latmenc.c.

static int latm_check_bitstream ( struct AVFormatContext s,
const AVPacket pkt 
)
static

Definition at line 216 of file latmenc.c.

Variable Documentation

const AVOption options[]
static
Initial value:
= {
{"smc-interval", "StreamMuxConfig interval.",
0x42, AV_OPT_TYPE_INT, {.i64 = 0x0014}, 0x0001, 0xffff, AV_OPT_FLAG_ENCODING_PARAM},
{NULL},
}
#define NULL
Definition: coverity.c:32
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
Definition: opt.h:275

Definition at line 43 of file latmenc.c.

const AVClass latm_muxer_class
static
Initial value:
= {
.class_name = "LATM/LOAS muxer",
.item_name = av_default_item_name,
.option = options,
}
static const AVOption options[]
Definition: latmenc.c:43
#define LIBAVUTIL_VERSION_INT
Definition: version.h:70
av_default_item_name

Definition at line 49 of file latmenc.c.

AVOutputFormat ff_latm_muxer
Initial value:
= {
.name = "latm",
.long_name = NULL_IF_CONFIG_SMALL("LOAS/LATM"),
.mime_type = "audio/MP4A-LATM",
.extensions = "latm,loas",
.priv_data_size = sizeof(LATMContext),
.audio_codec = AV_CODEC_ID_AAC,
.video_codec = AV_CODEC_ID_NONE,
.priv_class = &latm_muxer_class,
.check_bitstream= latm_check_bitstream,
}
static const AVClass latm_muxer_class
Definition: latmenc.c:49
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static int latm_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: latmenc.c:146
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:484
static int latm_write_header(AVFormatContext *s)
Definition: latmenc.c:85
static int flags
Definition: cpu.c:47
static void write_header(FFV1Context *f)
Definition: ffv1enc.c:498
static int latm_check_bitstream(struct AVFormatContext *s, const AVPacket *pkt)
Definition: latmenc.c:216
static int write_packet(AVFormatContext *s1, AVPacket *pkt)
Definition: v4l2enc.c:86

Definition at line 229 of file latmenc.c.