FFmpeg
Loading...
Searching...
No Matches
theora.c File Reference

Go to the source code of this file.

Data Structures

struct  TheoraMuxerContext
 

Functions

static int theora_init (AVFormatContext *s, AVStream *st)
 
static int theora_rate_changed (const AVStream *st, const uint8_t *extradata, size_t size)
 Whether Theora headers set a frame rate other than the stream time base, which packets keep across links.
 
static const char * theora_new_link_refused (const AVStream *st, const AVPacket *pkt, const uint8_t *new_extradata, size_t size)
 
static int64_t theora_packet_granule (AVStream *st, const AVPacket *pkt)
 

Variables

const OGGMuxerMapping ff_ogg_theora_muxer_mapping
 

Function Documentation

◆ theora_init()

static int theora_init ( AVFormatContext * s,
AVStream * st )
static

KFGSHIFT is the width of the less significant section of the granule position The less significant section is the frame count since the last keyframe

Definition at line 34 of file theora.c.

◆ theora_rate_changed()

static int theora_rate_changed ( const AVStream * st,
const uint8_t * extradata,
size_t size )
static

Whether Theora headers set a frame rate other than the stream time base, which packets keep across links.

Definition at line 69 of file theora.c.

Referenced by theora_new_link_refused().

◆ theora_new_link_refused()

static const char * theora_new_link_refused ( const AVStream * st,
const AVPacket * pkt,
const uint8_t * new_extradata,
size_t size )
static

Definition at line 82 of file theora.c.

◆ theora_packet_granule()

static int64_t theora_packet_granule ( AVStream * st,
const AVPacket * pkt )
static

Definition at line 92 of file theora.c.

Variable Documentation

◆ ff_ogg_theora_muxer_mapping

const OGGMuxerMapping ff_ogg_theora_muxer_mapping
Initial value:
= {
.codec_id = AV_CODEC_ID_THEORA,
.priv_data_size = sizeof(TheoraMuxerContext),
.new_links = 1,
.new_link_refused = theora_new_link_refused,
.packet_granule = theora_packet_granule,
}
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:613
@ AV_CODEC_ID_THEORA
Definition codec_id.h:80
static const char * theora_new_link_refused(const AVStream *st, const AVPacket *pkt, const uint8_t *new_extradata, size_t size)
Definition theora.c:82
static int theora_init(AVFormatContext *s, AVStream *st)
Definition theora.c:34
static int64_t theora_packet_granule(AVStream *st, const AVPacket *pkt)
Definition theora.c:92

Definition at line 110 of file theora.c.