63 unsigned dist = ((gp >> 14) & 0xff00) | (gp & 0xff);
64 int64_t dts = (gp >> 31);
65 int64_t
pts = dts + ((gp >> 9) & 0x1fff);
97 uint64_t iframe = gp >> 30;
98 uint64_t pframe = gp & 0x3fffffff;
103 return iframe + pframe;
111 .granule_is_start = 1,
120 .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)
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.
bitstream reader API header.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
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_bits8(GetBitContext *s, const uint8_t *buffer, int byte_size)
Initialize GetBitContext.
static int64_t pts
Global timestamp for the audio frames.
static int dirac_header(AVFormatContext *s, int idx)
void * priv_data
Format private data.
const struct ogg_codec ff_old_dirac_codec