FFmpeg
|
Vorbis audio parser. More...
#include "avcodec.h"
Go to the source code of this file.
Data Structures | |
struct | VorbisParseContext |
Macros | |
#define | VORBIS_FLAG_HEADER 0x00000001 |
#define | VORBIS_FLAG_COMMENT 0x00000002 |
Functions | |
int | avpriv_vorbis_parse_extradata (AVCodecContext *avctx, VorbisParseContext *s) |
Initialize the Vorbis parser using headers in the extradata. | |
int | avpriv_vorbis_parse_frame_flags (VorbisParseContext *s, const uint8_t *buf, int buf_size, int *flags) |
Get the duration for a Vorbis packet. | |
int | avpriv_vorbis_parse_frame (VorbisParseContext *s, const uint8_t *buf, int buf_size) |
Get the duration for a Vorbis packet. | |
void | avpriv_vorbis_parse_reset (VorbisParseContext *s) |
#define VORBIS_FLAG_HEADER 0x00000001 |
Definition at line 53 of file vorbis_parser.h.
Referenced by avpriv_vorbis_parse_frame_flags().
#define VORBIS_FLAG_COMMENT 0x00000002 |
Definition at line 54 of file vorbis_parser.h.
Referenced by avpriv_vorbis_parse_frame_flags(), and vorbis_packet().
int avpriv_vorbis_parse_extradata | ( | AVCodecContext * | avctx, |
VorbisParseContext * | s | ||
) |
Initialize the Vorbis parser using headers in the extradata.
avctx | codec context |
s | Vorbis parser context |
Definition at line 176 of file vorbis_parser.c.
Referenced by libvorbis_encode_init(), and vorbis_header().
int avpriv_vorbis_parse_frame_flags | ( | VorbisParseContext * | s, |
const uint8_t * | buf, | ||
int | buf_size, | ||
int * | flags | ||
) |
Get the duration for a Vorbis packet.
avpriv_vorbis_parse_extradata() must have been successfully called prior to this in order for a correct duration to be returned. 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 204 of file vorbis_parser.c.
Referenced by avpriv_vorbis_parse_frame(), and vorbis_packet().
int avpriv_vorbis_parse_frame | ( | VorbisParseContext * | s, |
const uint8_t * | buf, | ||
int | buf_size | ||
) |
Get the duration for a Vorbis packet.
avpriv_vorbis_parse_extradata() must have been successfully called prior to this in order for a correct duration to be returned.
s | Vorbis parser context |
buf | buffer containing a Vorbis frame |
buf_size | size of the buffer |
Definition at line 253 of file vorbis_parser.c.
Referenced by libvorbis_encode_frame().
void avpriv_vorbis_parse_reset | ( | VorbisParseContext * | s | ) |
Definition at line 259 of file vorbis_parser.c.
Referenced by vorbis_packet().