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);
134 hdr->
format.
depth = 8 + 2*(bytestream2_get_byte(&gb)-1);
136 hdr->
fpr = bytestream2_get_byte(&gb);
141 "Invalid number of planes %d in daala pixel format map.\n",
185 *cdp++ = os->
psize >> 8;
186 *cdp++ = os->
psize & 0xff;
196 uint64_t iframe, pframe;
205 pframe = gp & hdr->
gpmask;
211 *dts = iframe + pframe;
213 return iframe + pframe;
230 for (seg = os->
segp; seg < os->
nsegs; seg++)
254 .magic =
"\200daala",
259 .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)
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
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 format(the sample packing is implied by the sample format) and sample rate.The lists are not just lists
#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 i(width, name, range_min, range_max)
#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)
int av_reallocp(void *ptr, size_t size)
Allocate, reallocate, or free a block of memory through a pointer to a pointer.
enum AVPixelFormat ffmpeg_fmt
Rational number (pair of numerator and 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...
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
Codec parameters associated with this stream.
static const struct DaalaPixFmtMap list_fmts[]
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
AVPixelFormat
Pixel format.
#define AV_NOPTS_VALUE
Undefined timestamp value.