73 unsigned dist = ((gp >> 14) & 0xff00) | (gp & 0xff);
74 int64_t dts = (gp >> 31);
75 int64_t
pts = dts + ((gp >> 9) & 0x1fff);
107 uint64_t iframe = gp >> 30;
108 uint64_t pframe = gp & 0x3fffffff;
113 return iframe + pframe;
121 .granule_is_start = 1,
130 .granule_is_start = 1,
enum AVColorTransferCharacteristic color_trc
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
static uint64_t dirac_gptopts(AVFormatContext *s, int idx, uint64_t granule, int64_t *dts_out)
static uint64_t old_dirac_gptopts(AVFormatContext *s, int idx, uint64_t gp, int64_t *dts)
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
AVRational sample_aspect_ratio
sample aspect ratio (0 if unknown)
enum AVColorSpace color_space
int av_dirac_parse_sequence_header(AVDiracSeqHeader **pdsh, const uint8_t *buf, size_t buf_size, void *log_ctx)
Parse a Dirac sequence header.
static int old_dirac_header(AVFormatContext *s, int idx)
Interface to Dirac Decoder/Encoder.
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
AVStream ** streams
A list of all streams in the file.
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.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
enum AVColorPrimaries color_primaries
enum AVMediaType codec_type
General type of the encoded data.
const struct ogg_codec ff_dirac_codec
struct ogg_stream * streams
enum AVColorRange color_range
Video only.
static int64_t pts
Global timestamp for the audio frames.
static int dirac_header(AVFormatContext *s, int idx)
int profile
Codec-specific bitstream restrictions that the stream conforms to.
void * priv_data
Format private data.
AVCodecParameters * codecpar
const struct ogg_codec ff_old_dirac_codec