71 unsigned dist = ((gp >> 14) & 0xff00) | (gp & 0xff);
72 int64_t dts = (gp >> 31);
73 int64_t
pts = dts + ((gp >> 9) & 0x1fff);
105 uint64_t iframe = gp >> 30;
106 uint64_t pframe = gp & 0x3fffffff;
111 return iframe + pframe;
119 .granule_is_start = 1,
128 .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).
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.
void av_freep(void *arg)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
static int old_dirac_header(AVFormatContext *s, int idx)
Interface to Dirac Decoder/Encoder.
AVStream ** streams
A list of all streams in the file.
#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