FFmpeg
Loading...
Searching...
No Matches
OGGMuxerMapping Struct Reference

Codec mapping of the muxer: the parts of the Ogg encapsulation that depend on the codec. More...

#include <muxer.h>

Data Fields

enum AVCodecID codec_id
 
size_t priv_data_size
 size of OGGStreamContext.priv_data
 
int optional_extradata
 the headers can be built without extradata
 
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 sets its own.
 
const char *(* new_link_refused )(const AVStream *st, const AVPacket *pkt, const uint8_t *new_extradata, size_t size)
 
int64_t(* packet_granule )(AVStream *st, const AVPacket *pkt)
 

Detailed Description

Codec mapping of the muxer: the parts of the Ogg encapsulation that depend on the codec.

Definition at line 71 of file muxer.h.

Field Documentation

◆ codec_id

enum AVCodecID OGGMuxerMapping::codec_id

Definition at line 72 of file muxer.h.

◆ priv_data_size

size_t OGGMuxerMapping::priv_data_size

size of OGGStreamContext.priv_data

Definition at line 73 of file muxer.h.

Referenced by ogg_init().

◆ optional_extradata

int OGGMuxerMapping::optional_extradata

the headers can be built without extradata

Definition at line 74 of file muxer.h.

Referenced by ogg_init().

◆ new_links

int OGGMuxerMapping::new_links

a new link can replace the current one

Definition at line 75 of file muxer.h.

Referenced by ogg_check_new_link().

◆ init

int(* OGGMuxerMapping::init) (AVFormatContext *s, AVStream *st)

Build the header packets in OGGStreamContext.header, adjusting the stream time base when the codec sets its own.

Definition at line 80 of file muxer.h.

Referenced by ogg_init().

◆ new_link_refused

const char *(* OGGMuxerMapping::new_link_refused) (const AVStream *st, const AVPacket *pkt, const uint8_t *new_extradata, size_t size)
Returns
why a new link cannot start with this packet, NULL if it can. When the callback is NULL, the codec imposes no additional packet restriction.

Definition at line 86 of file muxer.h.

Referenced by ogg_check_new_link().

◆ packet_granule

int64_t(* OGGMuxerMapping::packet_granule) (AVStream *st, const AVPacket *pkt)
Returns
the granule of a packet. When NULL, the granule is the packet's end timestamp plus OGGStreamContext.packet_granule_offset.

Definition at line 92 of file muxer.h.

Referenced by ogg_write_packet_internal().


The documentation for this struct was generated from the following file: