22#ifndef AVFORMAT_OGG_MUXER_H
23#define AVFORMAT_OGG_MUXER_H
30#define MAX_PAGE_SIZE 65025
87 const uint8_t *new_extradata,
size_t size);
107 AVChapter **chapters,
unsigned int nb_chapters);
119 int first_header_size,
int comment_type,
120 const char *
name,
int framing_bit);
AVCodecID
Identify the syntax and semantics of the bitstream.
const OGGMuxerMapping ff_ogg_speex_muxer_mapping
const OGGMuxerMapping ff_ogg_theora_muxer_mapping
const OGGMuxerMapping ff_ogg_vp8_muxer_mapping
const OGGMuxerMapping ff_ogg_flac_muxer_mapping
int ff_ogg_build_xiph_headers(AVFormatContext *s, AVStream *st, int first_header_size, int comment_type, const char *name, int framing_bit)
Build the headers of a codec using the Xiph header layout: identification, comment and setup packets ...
uint8_t * ff_ogg_write_vorbiscomment(int64_t offset, int bitexact, int *header_len, AVDictionary **m, int framing_bit, AVChapter **chapters, unsigned int nb_chapters)
Allocate a comment header packet holding a VorbisComment.
const OGGMuxerMapping ff_ogg_vorbis_muxer_mapping
const OGGMuxerMapping ff_ogg_opus_muxer_mapping
This structure stores compressed data.
Codec mapping of the muxer: the parts of the Ogg encapsulation that depend on the codec.
int new_links
a new link can replace the current one
int(* init)(AVFormatContext *s, AVStream *st)
Build the header packets in OGGStreamContext.header, adjusting the stream time base when the codec se...
size_t priv_data_size
size of OGGStreamContext.priv_data
int optional_extradata
the headers can be built without extradata
int64_t(* packet_granule)(AVStream *st, const AVPacket *pkt)
uint8_t data[MAX_PAGE_SIZE]
unsigned granule_shift
Granule layout, set by the mapping.
unsigned serial_num
serial number
unsigned page_count
number of page buffered
const OGGMuxerMapping * mapping
void * priv_data
state of the mapping
int packet_granule_offset
added to the end timestamp of a packet without packet_granule
int64_t granule_delta_mask
int64_t granule_key_mask
bits all clear on keyframes, 0 when no granule marks one
int packet_seen
true when packets have been submitted
int64_t last_granule
last packet granule