libavcodec/vorbis_parser.c File Reference

Vorbis audio parser. More...

#include "get_bits.h"
#include "parser.h"
#include "xiph.h"
#include "vorbis_parser.h"

Go to the source code of this file.

Functions

static int parse_id_header (AVCodecContext *avctx, VorbisParseContext *s, const uint8_t *buf, int buf_size)
static int parse_setup_header (AVCodecContext *avctx, VorbisParseContext *s, const uint8_t *buf, int buf_size)
int avpriv_vorbis_parse_extradata (AVCodecContext *avctx, VorbisParseContext *s)
 Initialize the Vorbis parser using headers in the extradata.
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)


Detailed Description

Vorbis audio parser.

Determines the duration for each packet.

Definition in file vorbis_parser.c.


Function Documentation

int avpriv_vorbis_parse_extradata ( AVCodecContext avctx,
VorbisParseContext s 
)

Initialize the Vorbis parser using headers in the extradata.

Parameters:
avctx codec context
s Vorbis parser context

Definition at line 175 of file vorbis_parser.c.

Referenced by oggvorbis_encode_init(), and vorbis_header().

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.

Parameters:
s Vorbis parser context
buf buffer containing a Vorbis frame
buf_size size of the buffer

Definition at line 203 of file vorbis_parser.c.

Referenced by oggvorbis_encode_frame(), and vorbis_packet().

void avpriv_vorbis_parse_reset ( VorbisParseContext s  ) 

Definition at line 236 of file vorbis_parser.c.

Referenced by vorbis_packet().

static int parse_id_header ( AVCodecContext avctx,
VorbisParseContext s,
const uint8_t buf,
int  buf_size 
) [static]

Definition at line 33 of file vorbis_parser.c.

Referenced by avpriv_vorbis_parse_extradata().

static int parse_setup_header ( AVCodecContext avctx,
VorbisParseContext s,
const uint8_t buf,
int  buf_size 
) [static]

Definition at line 65 of file vorbis_parser.c.

Referenced by avpriv_vorbis_parse_extradata().


Generated on Fri Oct 26 02:50:08 2012 for FFmpeg by  doxygen 1.5.8