Go to the documentation of this file.
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++) {
72 if (match ==
fmt->planes)
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;
211 *dts = iframe + pframe;
213 return iframe + pframe;
219 struct ogg *
ogg =
s->priv_data;
230 for (seg = os->
segp; seg < os->
nsegs; seg++)
239 s->streams[idx]->start_time = os->
lastpts;
241 s->streams[idx]->duration -=
s->streams[idx]->start_time;
254 .magic =
"\200daala",
259 .granule_is_start = 1,
#define AV_LOG_WARNING
Something somehow does not look correct.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
AVPixelFormat
Pixel format.
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.
static const struct DaalaPixFmtMap list_fmts[]
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
static int daala_packet(AVFormatContext *s, int idx)
static av_always_inline void bytestream2_skip(GetByteContext *g, unsigned int size)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static int daala_header(AVFormatContext *s, int idx)
enum AVStreamParseType need_parsing
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
#define bytestream2_get_ne32
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)
const struct ogg_codec ff_daala_codec
static int daala_match_pix_fmt(struct DaalaPixFmtMap *fmt)
#define i(width, name, range_min, range_max)
static uint64_t daala_gptopts(AVFormatContext *ctx, int idx, uint64_t gp, int64_t *dts)
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
#define FF_ARRAY_ELEMS(a)
enum AVPixelFormat ffmpeg_fmt
@ AV_PIX_FMT_YUV444P
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
int ff_vorbis_stream_comment(AVFormatContext *as, AVStream *st, const uint8_t *buf, int size)
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
static av_always_inline void bytestream2_init(GetByteContext *g, const uint8_t *buf, int buf_size)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
void * priv_data
Format private data.