libgpac
Documentation of the core library of GPAC
ogg_audio_codec_desc Struct Reference

#include <avparse.h>

Data Fields

const char * codec_name
 
void * parserPrivateState
 
int channels
 
int sample_rate
 
GF_Err(* process )(struct ogg_audio_codec_desc_t *parserState, u8 *data, u32 data_length, void *importer, Bool *destroy_esd, u32 *track, u32 *di, u64 *duration, int *block_size)
 
void(* release )(struct ogg_audio_codec_desc_t *parserState)
 

Detailed Description

OGG audio codec descriptor

Field Documentation

◆ codec_name

const char* ogg_audio_codec_desc::codec_name

name of the codec

◆ parserPrivateState

void* ogg_audio_codec_desc::parserPrivateState

private

◆ channels

int ogg_audio_codec_desc::channels

number of channels

◆ sample_rate

int ogg_audio_codec_desc::sample_rate

samplerate

◆ process

GF_Err(* ogg_audio_codec_desc::process) (struct ogg_audio_codec_desc_t *parserState, u8 *data, u32 data_length, void *importer, Bool *destroy_esd, u32 *track, u32 *di, u64 *duration, int *block_size)

process the data and returns the sample block_size (i.e. duration)

◆ release

void(* ogg_audio_codec_desc::release) (struct ogg_audio_codec_desc_t *parserState)

release private state