FFmpeg
|
A public API for Vorbis parsing. More...
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | VORBIS_FLAG_HEADER 0x00000001 |
#define | VORBIS_FLAG_COMMENT 0x00000002 |
#define | VORBIS_FLAG_SETUP 0x00000004 |
Functions | |
AVVorbisParseContext * | av_vorbis_parse_init (const uint8_t *extradata, int extradata_size) |
Allocate and initialize the Vorbis parser using headers in the extradata. More... | |
void | av_vorbis_parse_free (AVVorbisParseContext **s) |
Free the parser and everything associated with it. More... | |
int | av_vorbis_parse_frame_flags (AVVorbisParseContext *s, const uint8_t *buf, int buf_size, int *flags) |
Get the duration for a Vorbis packet. More... | |
int | av_vorbis_parse_frame (AVVorbisParseContext *s, const uint8_t *buf, int buf_size) |
Get the duration for a Vorbis packet. More... | |
void | av_vorbis_parse_reset (AVVorbisParseContext *s) |
A public API for Vorbis parsing.
Determines the duration for each packet.
Definition in file vorbis_parser.h.
#define VORBIS_FLAG_HEADER 0x00000001 |
Definition at line 44 of file vorbis_parser.h.
Referenced by av_vorbis_parse_frame_flags().
#define VORBIS_FLAG_COMMENT 0x00000002 |
Definition at line 45 of file vorbis_parser.h.
Referenced by av_vorbis_parse_frame_flags(), and vorbis_packet().
#define VORBIS_FLAG_SETUP 0x00000004 |
Definition at line 46 of file vorbis_parser.h.
Referenced by av_vorbis_parse_frame_flags().
AVVorbisParseContext* av_vorbis_parse_init | ( | const uint8_t * | extradata, |
int | extradata_size | ||
) |
Allocate and initialize the Vorbis parser using headers in the extradata.
Definition at line 281 of file vorbis_parser.c.
Referenced by libvorbis_encode_init(), and vorbis_header().
void av_vorbis_parse_free | ( | AVVorbisParseContext ** | s | ) |
Free the parser and everything associated with it.
Definition at line 276 of file vorbis_parser.c.
Referenced by av_vorbis_parse_init(), libvorbis_encode_close(), and vorbis_cleanup().
int av_vorbis_parse_frame_flags | ( | AVVorbisParseContext * | s, |
const uint8_t * | buf, | ||
int | buf_size, | ||
int * | flags | ||
) |
Get the duration for a Vorbis packet.
If flags
is NULL
, special frames are considered invalid.
s | Vorbis parser context |
buf | buffer containing a Vorbis frame |
buf_size | size of the buffer |
flags | flags for special frames |
Definition at line 213 of file vorbis_parser.c.
Referenced by av_vorbis_parse_frame(), and vorbis_packet().
int av_vorbis_parse_frame | ( | AVVorbisParseContext * | s, |
const uint8_t * | buf, | ||
int | buf_size | ||
) |
Get the duration for a Vorbis packet.
s | Vorbis parser context |
buf | buffer containing a Vorbis frame |
buf_size | size of the buffer |
Definition at line 264 of file vorbis_parser.c.
Referenced by libvorbis_encode_frame().
void av_vorbis_parse_reset | ( | AVVorbisParseContext * | s | ) |
Definition at line 270 of file vorbis_parser.c.
Referenced by vorbis_packet().