Go to the documentation of this file.
74 unsigned dist = ((gp >> 14) & 0xff00) | (gp & 0xff);
106 struct ogg *
ogg =
s->priv_data;
108 uint64_t iframe = gp >> 30;
109 uint64_t pframe = gp & 0x3fffffff;
114 return iframe + pframe;
122 .granule_is_start = 1,
131 .granule_is_start = 1,
int av_dirac_parse_sequence_header(AVDiracSeqHeader **pdsh, const uint8_t *buf, size_t buf_size, void *log_ctx)
Parse a Dirac sequence header.
enum AVMediaType codec_type
General type of the encoded data.
enum AVColorSpace color_space
static uint64_t old_dirac_gptopts(AVFormatContext *s, int idx, uint64_t gp, int64_t *dts)
static uint64_t dirac_gptopts(AVFormatContext *s, int idx, uint64_t granule, int64_t *dts_out)
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
enum AVColorPrimaries color_primaries
enum AVColorTransferCharacteristic color_trc
static int old_dirac_header(AVFormatContext *s, int idx)
AVCodecParameters * codecpar
Codec parameters associated with this stream.
const struct ogg_codec ff_dirac_codec
struct ogg_stream * streams
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_RB32
int profile
Codec-specific bitstream restrictions that the stream conforms to.
AVRational sample_aspect_ratio
sample aspect ratio (0 if unknown)
enum AVColorRange color_range
Video only.
static int dirac_header(AVFormatContext *s, int idx)
const struct ogg_codec ff_old_dirac_codec
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
int av_image_check_sar(unsigned int w, unsigned int h, AVRational sar)
Check if the given sample aspect ratio of an image is valid.