58 unsigned dist = ((gp >> 14) & 0xff00) | (gp & 0xff);
59 int64_t dts = (gp >> 31);
60 int64_t pts = dts + ((gp >> 9) & 0x1fff);
92 uint64_t iframe = gp >> 30;
93 uint64_t pframe = gp & 0x3fffffff;
98 return iframe + pframe;
106 .granule_is_start = 1,
115 .granule_is_start = 1,
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)
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
static int old_dirac_header(AVFormatContext *s, int idx)
Interface to Dirac Decoder/Encoder.
bitstream reader API header.
int avpriv_dirac_parse_sequence_header(AVCodecContext *avctx, GetBitContext *gb, dirac_source_params *source)
AVCodecContext * codec
Codec context associated with this stream.
const struct ogg_codec ff_dirac_codec
struct ogg_stream * streams
enum AVMediaType codec_type
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
static int dirac_header(AVFormatContext *s, int idx)
void * priv_data
Format private data.
const struct ogg_codec ff_old_dirac_codec