Go to the documentation of this file.
71 "Too old or unsupported Theora (%x)\n", thp->
version);
95 if (!(timebase.
num > 0 && timebase.
den > 0)) {
137 *cdp++ = os->
psize >> 8;
138 *cdp++ = os->
psize & 0xff;
151 uint64_t iframe, pframe;
166 *dts = iframe + pframe;
168 return iframe + pframe;
173 struct ogg *
ogg =
s->priv_data;
187 for (seg = os->
segp; seg < os->
nsegs; seg++) {
197 s->streams[idx]->start_time = os->
lastpts;
198 if (
s->streams[idx]->duration > 0)
199 s->streams[idx]->duration -=
s->streams[idx]->start_time;
212 .
magic =
"\200theora",
static void skip_bits_long(GetBitContext *s, int n)
Skips the specified number of bits.
#define AV_LOG_WARNING
Something somehow does not look correct.
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
enum AVMediaType codec_type
General type of the encoded data.
Copyright (C) 2005 Matthieu CASTET, Alex Beregszaszi.
static unsigned int get_bits_long(GetBitContext *s, int n)
Read 0-32 bits.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
static void skip_bits(GetBitContext *s, int n)
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
enum AVStreamParseType need_parsing
static int theora_packet(AVFormatContext *s, int idx)
AVCodecParameters * codecpar
Codec parameters associated with this stream.
Rational number (pair of numerator and denominator).
struct ogg_stream * streams
int extradata_size
Size of the extradata content in bytes.
int av_reallocp(void *ptr, size_t size)
Allocate, reallocate, or free a block of memory through a pointer to a pointer.
#define AV_NOPTS_VALUE
Undefined timestamp value.
AVRational sample_aspect_ratio
sample aspect ratio (0 if unknown)
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
#define AV_INPUT_BUFFER_PADDING_SIZE
const struct ogg_codec ff_theora_codec
int ff_vorbis_stream_comment(AVFormatContext *as, AVStream *st, const uint8_t *buf, int size)
static int theora_header(AVFormatContext *s, int idx)
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
static uint64_t theora_gptopts(AVFormatContext *ctx, int idx, uint64_t gp, int64_t *dts)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
void * priv_data
Format private data.