68 "Too old or unsupported Theora (%x)\n", thp->
version);
82 if ( width <= st->codec->width && width > st->
codec->
width-16
83 && height <= st->codec->height && height > st->
codec->
height-16)
112 }
else if (os->
buf[os->
pstart] == 0x83) {
119 *cdp++ = os->
psize >> 8;
120 *cdp++ = os->
psize & 0xff;
133 uint64_t iframe = gp >> thp->
gpshift;
134 uint64_t pframe = gp & thp->
gpmask;
143 *dts = iframe + pframe;
145 return iframe + pframe;
149 .
magic =
"\200theora",
void * av_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
static uint64_t theora_gptopts(AVFormatContext *ctx, int idx, uint64_t gp, int64_t *dts)
static void skip_bits_long(GetBitContext *s, int n)
#define AV_LOG_WARNING
Something somehow does not look correct.
Copyright (C) 2005 Matthieu CASTET, Alex Beregszaszi.
AVRational sample_aspect_ratio
sample aspect ratio (0 if unknown)
void * av_realloc(void *ptr, size_t size)
Allocate or reallocate a block of memory.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
enum AVStreamParseType need_parsing
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
bitstream reader API header.
int ff_vorbis_comment(AVFormatContext *ms, AVDictionary **m, const uint8_t *buf, int size)
void avcodec_set_dimensions(AVCodecContext *s, int width, int height)
void av_log(void *avcl, int level, const char *fmt,...)
AVCodecContext * codec
codec context
int width
picture width / height.
struct ogg_stream * streams
enum AVMediaType codec_type
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static void skip_bits(GetBitContext *s, int n)
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
#define FF_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...
static unsigned int get_bits_long(GetBitContext *s, int n)
Read 0-32 bits.
static int theora_header(AVFormatContext *s, int idx)
void * priv_data
Format private data.
const struct ogg_codec ff_theora_codec