Go to the documentation of this file.
25 #ifndef AVFORMAT_OGGDEC_H
26 #define AVFORMAT_OGGDEC_H
110 #define OGG_FLAG_CONT 1
111 #define OGG_FLAG_BOS 2
112 #define OGG_FLAG_EOS 4
114 #define OGG_NOGRANULE_VALUE (-1ull)
151 static inline uint64_t
154 struct ogg *
ogg =
s->priv_data;
const struct ogg_codec ff_old_flac_codec
const struct ogg_codec ff_ogm_text_codec
const struct ogg_codec ff_ogm_audio_codec
const struct ogg_codec ff_daala_codec
struct ogg_stream streams[1]
const struct ogg_codec ff_vp8_codec
const struct ogg_codec ff_old_dirac_codec
uint64_t(* gptopts)(AVFormatContext *, int, uint64_t, int64_t *dts)
Translate a granule into a timestamp.
int nb_header
set to the number of parsed headers
const struct ogg_codec ff_vorbis_codec
const struct ogg_codec ff_flac_codec
int(* packet)(AVFormatContext *, int)
static uint64_t ogg_gptopts(AVFormatContext *s, int i, uint64_t gp, int64_t *dts)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int got_data
1 if the stream got some data (non-initial packets), 0 otherwise
int page_end
current packet is the last one completed in the page
int64_t page_pos
file offset of the current page
int(* header)(AVFormatContext *, int)
Attempt to process a packet as a header.
const struct ogg_codec ff_ogm_old_codec
int64_t page_pos
file offset of the current page
struct ogg_stream * streams
#define AV_NOPTS_VALUE
Undefined timestamp value.
unsigned int new_metadata_size
int64_t sync_pos
file offset of the first page needed to reconstruct the current packet
#define i(width, name, range_min, range_max)
int incomplete
whether we're expecting a continuation in the next page
const struct ogg_codec ff_ogm_video_codec
const struct ogg_codec ff_skeleton_codec
static int ogg_find_stream(struct ogg *ogg, int serial)
void(* cleanup)(AVFormatContext *s, int idx)
int ff_vorbis_stream_comment(AVFormatContext *as, AVStream *st, const uint8_t *buf, int size)
int nb_header
Number of expected headers.
const struct ogg_codec ff_celt_codec
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
int end_trimming
set the number of packets to drop from the end
const struct ogg_codec ff_dirac_codec
int ff_vorbis_comment(AVFormatContext *ms, AVDictionary **m, const uint8_t *buf, int size, int parse_picture)
const struct ogg_codec ff_speex_codec
int granule_is_start
1 if granule is the start time of the associated packet.
const struct ogg_codec ff_theora_codec
const struct ogg_codec * codec
const struct ogg_codec ff_opus_codec