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