39 {
AV_PIX_FMT_YUV420P, 8, 3, {0, 1, 1, 0}, {0, 1, 1, 0} },
40 {
AV_PIX_FMT_YUV444P, 8, 3, {0, 0, 0, 0}, {0, 0, 0, 0} }
65 for (j = 0; j < fmt->
planes; j++) {
66 if (fmt->
xdec[j] != list_fmts[i].
xdec[j])
68 if (fmt->
ydec[j] != list_fmts[i].
ydec[j])
117 if (timebase.
num < 0 && timebase.
den < 0) {
125 hdr->
gpshift = bytestream2_get_byte(&gb);
133 hdr->
format.
depth = 8 + 2*(bytestream2_get_byte(&gb)-1);
135 hdr->
fpr = bytestream2_get_byte(&gb);
140 "Invalid number of planes %d in daala pixel format map.\n",
145 hdr->
format.
xdec[i] = bytestream2_get_byte(&gb);
146 hdr->
format.
ydec[i] = bytestream2_get_byte(&gb);
184 *cdp++ = os->
psize >> 8;
185 *cdp++ = os->
psize & 0xff;
195 uint64_t iframe, pframe;
204 pframe = gp & hdr->
gpmask;
210 *dts = iframe + pframe;
212 return iframe + pframe;
228 for (seg = os->
segp; seg < os->
nsegs; seg++)
249 .magic =
"\200daala",
254 .granule_is_start = 1,
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
#define AV_LOG_WARNING
Something somehow does not look correct.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
AVRational sample_aspect_ratio
sample aspect ratio (0 if unknown)
static av_always_inline void bytestream2_init(GetByteContext *g, const uint8_t *buf, int buf_size)
#define bytestream2_get_ne32
enum AVStreamParseType need_parsing
static uint64_t daala_gptopts(AVFormatContext *ctx, int idx, uint64_t gp, int64_t *dts)
AVStream ** streams
A list of all streams in the file.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static av_always_inline void bytestream2_skip(GetByteContext *g, unsigned int size)
int ff_vorbis_stream_comment(AVFormatContext *as, AVStream *st, const uint8_t *buf, int size)
enum AVMediaType codec_type
General type of the encoded data.
int extradata_size
Size of the extradata content in bytes.
struct ogg_stream * streams
#define FF_ARRAY_ELEMS(a)
enum AVPixelFormat ffmpeg_fmt
rational number numerator/denominator
static int daala_packet(AVFormatContext *s, int idx)
const struct ogg_codec ff_daala_codec
int64_t duration
Decoding: duration of the stream, in stream time base.
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
int64_t start_time
Decoding: pts of the first frame of the stream in presentation order, in stream time base...
int av_reallocp(void *ptr, size_t size)
Allocate or reallocate a block of memory.
static int daala_match_pix_fmt(struct DaalaPixFmtMap *fmt)
#define AV_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...
void * priv_data
Format private data.
static int daala_header(AVFormatContext *s, int idx)
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
AVCodecParameters * codecpar
static const struct DaalaPixFmtMap list_fmts[]
AVPixelFormat
Pixel format.
void * av_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
#define AV_NOPTS_VALUE
Undefined timestamp value.