Go to the documentation of this file.
34 #define MAX_EXTRADATA_SIZE 1024
47 {
"smc-interval",
"StreamMuxConfig interval.",
109 int words = length >> 4;
110 int bits = length & 15;
112 for (
i = 0;
i < words;
i++)
144 if (!
ctx->channel_conf) {
171 uint8_t loas_header[] =
"\x56\xe0\x00";
182 size_t side_data_size;
187 if (side_data_size) {
193 memcpy(par->
extradata, side_data, side_data_size);
236 loas_header[1] |= (
len >> 8) & 0x1f;
237 loas_header[2] |=
len & 0xff;
265 .mime_type =
"audio/MP4A-LATM",
266 .extensions =
"latm,loas",
static void skip_bits_long(GetBitContext *s, int n)
Skips the specified number of bits.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
static int put_bytes_output(const PutBitContext *s)
This struct describes the properties of an encoded stream.
static const AVClass latm_muxer_class
static void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size)
Initialize the PutBitContext s.
static int check_bitstream(AVFormatContext *s, FFStream *sti, AVPacket *pkt)
static void put_bits(Jpeg2000EncoderContext *s, int val, int n)
put n times val bit
static int latm_check_bitstream(AVFormatContext *s, AVStream *st, const AVPacket *pkt)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static int init_get_bits8(GetBitContext *s, const uint8_t *buffer, int byte_size)
Initialize GetBitContext.
int avpriv_mpeg4audio_get_config2(MPEG4AudioConfig *c, const uint8_t *buf, int size, int sync_extension, void *logctx)
Parse MPEG-4 systems extradata from a raw buffer to retrieve audio configuration.
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
#define av_assert0(cond)
assert() equivalent, that is always enabled.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
#define LIBAVUTIL_VERSION_INT
Describe the class of an AVClass context structure.
const char * av_default_item_name(void *ptr)
Return the context name.
static int ff_copy_pce_data(PutBitContext *pb, GetBitContext *gb)
int extradata_size
Size of the extradata content in bytes.
static int latm_decode_extradata(AVFormatContext *s, uint8_t *buf, int size)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int latm_write_packet(AVFormatContext *s, AVPacket *pkt)
uint8_t buffer[0x1fff+MAX_EXTRADATA_SIZE+1024]
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
static int latm_write_header(AVFormatContext *s)
const AVOutputFormat ff_latm_muxer
#define i(width, name, range_min, range_max)
uint8_t * av_packet_get_side_data(const AVPacket *pkt, enum AVPacketSideDataType type, size_t *size)
Get side information from packet.
#define MAX_EXTRADATA_SIZE
static int mod(int a, int b)
Modulo operation with only positive remainders.
static void copy_bits(PutBitContext *pb, const uint8_t *src, int length)
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
int ff_stream_add_bitstream_filter(AVStream *st, const char *name, const char *args)
Add a bitstream filter to a stream.
@ AV_PKT_DATA_NEW_EXTRADATA
The AV_PKT_DATA_NEW_EXTRADATA is used to notify the codec or the format that the extradata buffer was...
@ AOT_SBR
Y Spectral Band Replication.
static void latm_write_frame_header(AVFormatContext *s, PutBitContext *bs)
static void flush_put_bits(PutBitContext *s)
Pad the end of the output stream with zeros.
@ AOT_ALS
Y Audio LosslesS.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
This structure stores compressed data.
#define flags(name, subs,...)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
static int write_packet(AVFormatContext *s1, AVPacket *pkt)
static void write_header(FFV1Context *f)
static const AVOption options[]
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_WB24 unsigned int_TMPL AV_RB16