Libav
Functions
vorbis_parser.h File Reference

A public API for Vorbis parsing. More...

#include <stdint.h>

Go to the source code of this file.

Functions

AVVorbisParseContextav_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 (AVVorbisParseContext *s, const uint8_t *buf, int buf_size)
 Get the duration for a Vorbis packet. More...
 
void av_vorbis_parse_reset (AVVorbisParseContext *s)
 

Detailed Description

A public API for Vorbis parsing.

Determines the duration for each packet.

Definition in file vorbis_parser.h.

Function Documentation

◆ av_vorbis_parse_init()

AVVorbisParseContext* av_vorbis_parse_init ( const uint8_t extradata,
int  extradata_size 
)

Allocate and initialize the Vorbis parser using headers in the extradata.

Parameters
avctxcodec context
sVorbis parser context

Definition at line 257 of file vorbis_parser.c.

Referenced by av_vorbis_parse_init(), libvorbis_encode_init(), and vorbis_header().

◆ av_vorbis_parse_free()

void av_vorbis_parse_free ( AVVorbisParseContext **  s)

Free the parser and everything associated with it.

Definition at line 252 of file vorbis_parser.c.

Referenced by av_vorbis_parse_init(), libvorbis_encode_close(), and vorbis_cleanup().

◆ av_vorbis_parse_frame()

int av_vorbis_parse_frame ( AVVorbisParseContext s,
const uint8_t buf,
int  buf_size 
)

Get the duration for a Vorbis packet.

Parameters
sVorbis parser context
bufbuffer containing a Vorbis frame
buf_sizesize of the buffer

Definition at line 213 of file vorbis_parser.c.

Referenced by av_vorbis_parse_init(), libvorbis_encode_frame(), and vorbis_packet().

◆ av_vorbis_parse_reset()

void av_vorbis_parse_reset ( AVVorbisParseContext s)

Definition at line 246 of file vorbis_parser.c.

Referenced by av_vorbis_parse_init(), and vorbis_packet().