FFmpeg
Loading...
Searching...
No Matches
mapping.h File Reference

Go to the source code of this file.

Data Structures

struct  ogg_codec
 Copyright (C) 2005 Michael Ahlberg, Måns Rullgård. More...
 
struct  ogg_stream
 
struct  ogg_state
 
struct  ogg
 

Macros

#define OGG_FLAG_CONT   1
 
#define OGG_FLAG_BOS   2
 
#define OGG_FLAG_EOS   4
 
#define OGG_NOGRANULE_VALUE   (-1ull)
 

Functions

int ff_vorbis_update_metadata (AVFormatContext *s, AVStream *st, const uint8_t *buf, int size)
 Parse Vorbis comments, add metadata to an AVStream.
 
static int ogg_find_stream (struct ogg *ogg, int serial)
 
static uint64_t ogg_gptopts (AVFormatContext *s, int i, uint64_t gp, int64_t *dts)
 

Variables

const struct ogg_codec ff_dirac_codec
 
const struct ogg_codec ff_flac_codec
 
const struct ogg_codec ff_ogm_audio_codec
 
const struct ogg_codec ff_ogm_old_codec
 
const struct ogg_codec ff_ogm_text_codec
 
const struct ogg_codec ff_ogm_video_codec
 
const struct ogg_codec ff_old_dirac_codec
 
const struct ogg_codec ff_old_flac_codec
 
const struct ogg_codec ff_opus_codec
 
const struct ogg_codec ff_skeleton_codec
 
const struct ogg_codec ff_speex_codec
 
const struct ogg_codec ff_theora_codec
 
const struct ogg_codec ff_vorbis_codec
 
const struct ogg_codec ff_vp8_codec
 

Macro Definition Documentation

◆ OGG_FLAG_CONT

#define OGG_FLAG_CONT   1

Definition at line 121 of file mapping.h.

Referenced by ogg_read_page().

◆ OGG_FLAG_BOS

#define OGG_FLAG_BOS   2

Definition at line 122 of file mapping.h.

Referenced by ogg_read_page(), ogg_read_timestamp(), and opus_header().

◆ OGG_FLAG_EOS

#define OGG_FLAG_EOS   4

◆ OGG_NOGRANULE_VALUE

#define OGG_NOGRANULE_VALUE   (-1ull)

Definition at line 125 of file mapping.h.

Referenced by ogg_new_stream(), ogg_read_header(), and skeleton_header().

Function Documentation

◆ ff_vorbis_update_metadata()

int ff_vorbis_update_metadata ( AVFormatContext * s,
AVStream * st,
const uint8_t * buf,
int size )

Parse Vorbis comments, add metadata to an AVStream.

This function also attaches the metadata to the next decoded packet as AV_PKT_DATA_STRINGS_METADATA

Note
The buffer will be temporarily modified by this function, so it needs to be writable. Furthermore it must be padded by a single byte (not counted in size). All changes will have been reverted upon return.

Definition at line 125 of file vorbis.c.

Referenced by flac_packet(), opus_packet(), and vorbis_update_metadata().

◆ ogg_find_stream()

static int ogg_find_stream ( struct ogg * ogg,
int serial )
inlinestatic

Definition at line 157 of file mapping.h.

Referenced by ogg_read_page(), and skeleton_header().

◆ ogg_gptopts()

static uint64_t ogg_gptopts ( AVFormatContext * s,
int i,
uint64_t gp,
int64_t * dts )
inlinestatic

Definition at line 169 of file mapping.h.

Referenced by ogg_calc_pts(), ogg_get_length(), and ogg_read_header().

Variable Documentation

◆ ff_dirac_codec

const struct ogg_codec ff_dirac_codec
extern

Definition at line 117 of file dirac.c.

◆ ff_flac_codec

const struct ogg_codec ff_flac_codec
extern

Definition at line 172 of file flac.c.

◆ ff_ogm_audio_codec

const struct ogg_codec ff_ogm_audio_codec
extern

Definition at line 205 of file ogm.c.

◆ ff_ogm_old_codec

const struct ogg_codec ff_ogm_old_codec
extern

Definition at line 223 of file ogm.c.

◆ ff_ogm_text_codec

const struct ogg_codec ff_ogm_text_codec
extern

Definition at line 214 of file ogm.c.

◆ ff_ogm_video_codec

const struct ogg_codec ff_ogm_video_codec
extern

Definition at line 196 of file ogm.c.

Referenced by ogg_read_timestamp().

◆ ff_old_dirac_codec

const struct ogg_codec ff_old_dirac_codec
extern

Definition at line 126 of file dirac.c.

◆ ff_old_flac_codec

const struct ogg_codec ff_old_flac_codec
extern

Definition at line 180 of file flac.c.

◆ ff_opus_codec

const struct ogg_codec ff_opus_codec
extern

Definition at line 230 of file opus.c.

◆ ff_skeleton_codec

const struct ogg_codec ff_skeleton_codec
extern

Definition at line 96 of file skeleton.c.

◆ ff_speex_codec

const struct ogg_codec ff_speex_codec
extern

Definition at line 145 of file speex.c.

◆ ff_theora_codec

const struct ogg_codec ff_theora_codec
extern

Definition at line 214 of file theora.c.

◆ ff_vorbis_codec

const struct ogg_codec ff_vorbis_codec
extern

Definition at line 537 of file vorbis.c.

◆ ff_vp8_codec

const struct ogg_codec ff_vp8_codec
extern

Definition at line 140 of file vp8.c.