zenilib
0.5.3.0
|
#include <ogg/ogg.h>
Go to the source code of this file.
Classes | |
struct | alloc_chain |
struct | vorbis_block |
struct | vorbis_comment |
struct | vorbis_dsp_state |
struct | vorbis_info |
Macros | |
#define | OV_EBADHEADER -133 |
#define | OV_EBADLINK -137 |
#define | OV_EBADPACKET -136 |
#define | OV_EFAULT -129 |
#define | OV_EIMPL -130 |
#define | OV_EINVAL -131 |
#define | OV_ENOSEEK -138 |
#define | OV_ENOTAUDIO -135 |
#define | OV_ENOTVORBIS -132 |
#define | OV_EOF -2 |
#define | OV_EREAD -128 |
#define | OV_EVERSION -134 |
#define | OV_FALSE -1 |
#define | OV_HOLE -3 |
Typedefs | |
typedef struct vorbis_block | vorbis_block |
typedef struct vorbis_comment | vorbis_comment |
typedef struct vorbis_dsp_state | vorbis_dsp_state |
typedef struct vorbis_info | vorbis_info |
#define OV_EBADHEADER -133 |
Definition at line 231 of file codec.h.
Referenced by _fetch_headers(), _vorbis_unpack_books(), _vorbis_unpack_comment(), _vorbis_unpack_info(), and vorbis_synthesis_headerin().
#define OV_EBADLINK -137 |
Definition at line 235 of file codec.h.
Referenced by _make_decode_ready(), and ov_raw_seek().
#define OV_EBADPACKET -136 |
Definition at line 234 of file codec.h.
Referenced by ov_pcm_seek_page(), vorbis_packet_blocksize(), vorbis_synthesis(), and vorbis_synthesis_trackonly().
#define OV_EFAULT -129 |
Definition at line 227 of file codec.h.
Referenced by _fetch_and_process_packet(), _get_prev_page(), _make_decode_ready(), _seek_helper(), _vorbis_pack_books(), _vorbis_pack_info(), _vorbis_unpack_books(), _vorbis_unpack_info(), ov_pcm_seek_page(), and vorbis_analysis_headerout().
#define OV_EIMPL -130 |
Definition at line 228 of file codec.h.
Referenced by vorbis_analysis_headerout(), vorbis_commentheader_out(), vorbis_encode_ctl(), vorbis_encode_setup_managed(), and vorbis_encode_setup_vbr().
#define OV_EINVAL -131 |
Definition at line 229 of file codec.h.
Referenced by _open_seekable2(), _ov_64_seek_lap(), _ov_d_seek_lap(), _ov_open2(), ov_bitrate(), ov_bitrate_instant(), ov_crosslap(), ov_halfrate(), ov_halfrate_p(), ov_pcm_seek_page(), ov_pcm_tell(), ov_pcm_total(), ov_raw_seek(), ov_raw_tell(), ov_raw_total(), ov_read_filter(), ov_read_float(), ov_test_open(), ov_time_seek(), ov_time_seek_page(), ov_time_tell(), ov_time_total(), vorbis_analysis(), vorbis_analysis_wrote(), vorbis_encode_ctl(), vorbis_encode_setup_init(), vorbis_encode_setup_managed(), vorbis_synthesis_blockin(), and vorbis_synthesis_read().
#define OV_ENOSEEK -138 |
Definition at line 236 of file codec.h.
Referenced by ov_pcm_seek_page(), ov_raw_seek(), ov_time_seek(), and ov_time_seek_page().
#define OV_ENOTAUDIO -135 |
Definition at line 233 of file codec.h.
Referenced by vorbis_packet_blocksize(), vorbis_synthesis(), and vorbis_synthesis_trackonly().
#define OV_ENOTVORBIS -132 |
Definition at line 230 of file codec.h.
Referenced by _fetch_headers(), and vorbis_synthesis_headerin().
#define OV_EOF -2 |
Definition at line 223 of file codec.h.
Referenced by _fetch_and_process_packet(), _get_next_page(), _ov_getlap(), ov_read_filter(), and ov_read_float().
#define OV_EREAD -128 |
Definition at line 226 of file codec.h.
Referenced by _bisect_forward_serialno(), _fetch_headers(), _get_next_page(), _get_prev_page(), _get_prev_page_serial(), _open_seekable2(), _seek_helper(), and ov_pcm_seek_page().
#define OV_EVERSION -134 |
Definition at line 232 of file codec.h.
Referenced by _vorbis_unpack_info().
#define OV_FALSE -1 |
Definition at line 222 of file codec.h.
Referenced by _get_next_page(), ov_bitrate(), and ov_bitrate_instant().
#define OV_HOLE -3 |
Definition at line 224 of file codec.h.
Referenced by _fetch_and_process_packet(), _ov_initprime(), _ov_initset(), and ov_pcm_seek().
typedef struct vorbis_block vorbis_block |
typedef struct vorbis_comment vorbis_comment |
typedef struct vorbis_dsp_state vorbis_dsp_state |
typedef struct vorbis_info vorbis_info |
int vorbis_analysis | ( | vorbis_block * | vb, |
ogg_packet * | op | ||
) |
Definition at line 30 of file analysis.c.
References _mapping_P, ogg_packet::b_o_s, ogg_packet::bytes, ogg_packet::e_o_s, vorbis_block::eofflag, vorbis_block::floor_bits, vorbis_block::glue_bits, ogg_packet::granulepos, vorbis_block::granulepos, i, vorbis_block::internal, oggpack_bytes(), oggpack_get_buffer(), oggpack_reset(), vorbis_block::opb, OV_EINVAL, ogg_packet::packet, vorbis_block_internal::packetblob, PACKETBLOBS, ogg_packet::packetno, vorbis_block::res_bits, ret, vorbis_block::sequence, vorbis_block::time_bits, and vorbis_bitrate_managed().
int vorbis_analysis_blockout | ( | vorbis_dsp_state * | v, |
vorbis_block * | vb | ||
) |
Definition at line 524 of file block.c.
References _ve_envelope_mark(), _ve_envelope_search(), _ve_envelope_shift(), _vorbis_block_alloc(), _vorbis_block_ripcord(), _vp_ampmax_decay(), vorbis_block_internal::ampmax, vorbis_look_psy_global::ampmax, vorbis_dsp_state::backend_state, codec_setup_info::blocksizes, vorbis_block_internal::blocktype, BLOCKTYPE_IMPULSE, BLOCKTYPE_LONG, BLOCKTYPE_PADDING, BLOCKTYPE_TRANSITION, bp, vorbis_dsp_state::centerW, vorbis_info::channels, vorbis_info::codec_setup, vorbis_dsp_state::eofflag, vorbis_block::eofflag, vorbis_dsp_state::granulepos, vorbis_block::granulepos, i, vorbis_block::internal, vorbis_dsp_state::lW, vorbis_block::lW, memcpy, memmove, vorbis_dsp_state::nW, vorbis_block::nW, vorbis_dsp_state::pcm, vorbis_block::pcm, vorbis_dsp_state::pcm_current, vorbis_block_internal::pcmdelay, vorbis_block::pcmend, vorbis_dsp_state::preextrapolate, private_state::psy_g_look, vorbis_dsp_state::sequence, vorbis_block::sequence, vorbis_block::vd, private_state::ve, vorbis_dsp_state::vi, vi, vorbis_dsp_state::W, and vorbis_block::W.
float** vorbis_analysis_buffer | ( | vorbis_dsp_state * | v, |
int | vals | ||
) |
Definition at line 389 of file block.c.
References _ogg_free, _ogg_realloc, vorbis_dsp_state::backend_state, vorbis_info::channels, private_state::header, private_state::header1, private_state::header2, i, NULL, vorbis_dsp_state::pcm, vorbis_dsp_state::pcm_current, vorbis_dsp_state::pcm_storage, vorbis_dsp_state::pcmret, vorbis_dsp_state::vi, and vi.
Referenced by vorbis_analysis_wrote().
int vorbis_analysis_headerout | ( | vorbis_dsp_state * | v, |
vorbis_comment * | vc, | ||
ogg_packet * | op, | ||
ogg_packet * | op_comm, | ||
ogg_packet * | op_code | ||
) |
Definition at line 567 of file info.c.
References _ogg_free, _ogg_malloc, _vorbis_pack_books(), _vorbis_pack_comment(), _vorbis_pack_info(), ogg_packet::b_o_s, vorbis_dsp_state::backend_state, oggpack_buffer::buffer, ogg_packet::bytes, ogg_packet::e_o_s, ogg_packet::granulepos, private_state::header, private_state::header1, private_state::header2, memcpy, memset, NULL, oggpack_bytes(), oggpack_reset(), oggpack_writeclear(), oggpack_writeinit(), OV_EFAULT, OV_EIMPL, ogg_packet::packet, ogg_packet::packetno, ret, vorbis_dsp_state::vi, and vi.
int vorbis_analysis_init | ( | vorbis_dsp_state * | v, |
vorbis_info * | vi | ||
) |
Definition at line 295 of file block.c.
References _ogg_calloc, _vds_shared_init(), _ve_envelope_init(), _vp_global_look(), vorbis_dsp_state::backend_state, private_state::bms, NULL, private_state::psy_g_look, vorbis_dsp_state::sequence, private_state::ve, and vorbis_bitrate_init().
int vorbis_analysis_wrote | ( | vorbis_dsp_state * | v, |
int | vals | ||
) |
Definition at line 460 of file block.c.
References _preextrapolate_helper(), codec_setup_info::blocksizes, vorbis_dsp_state::centerW, vorbis_info::channels, vorbis_info::codec_setup, vorbis_dsp_state::eofflag, i, memset, OV_EINVAL, vorbis_dsp_state::pcm, vorbis_dsp_state::pcm_current, vorbis_dsp_state::pcm_storage, vorbis_dsp_state::preextrapolate, vorbis_dsp_state::vi, vi, vorbis_analysis_buffer(), vorbis_lpc_from_data(), and vorbis_lpc_predict().
int vorbis_bitrate_addblock | ( | vorbis_block * | vb | ) |
int vorbis_bitrate_flushpacket | ( | vorbis_dsp_state * | vd, |
ogg_packet * | op | ||
) |
int vorbis_block_clear | ( | vorbis_block * | vb | ) |
Definition at line 159 of file block.c.
References _ogg_free, _vorbis_block_ripcord(), i, vorbis_block::internal, vorbis_block::localstore, memset, oggpack_writeclear(), vorbis_block_internal::packetblob, and PACKETBLOBS.
Referenced by _decode_clear(), ov_clear(), and ov_halfrate().
int vorbis_block_init | ( | vorbis_dsp_state * | v, |
vorbis_block * | vb | ||
) |
Definition at line 88 of file block.c.
References _ogg_calloc, vorbis_block_internal::ampmax, vorbis_dsp_state::analysisp, i, vorbis_block::internal, vorbis_block::localalloc, vorbis_block::localstore, memset, NULL, oggpack_writeinit(), vorbis_block::opb, vorbis_block_internal::packetblob, PACKETBLOBS, and vorbis_block::vd.
Referenced by _make_decode_ready().
void vorbis_comment_add | ( | vorbis_comment * | vc, |
const char * | comment | ||
) |
Definition at line 65 of file info.c.
References _ogg_malloc, _ogg_realloc, vorbis_comment::comment_lengths, vorbis_comment::comments, NULL, and vorbis_comment::user_comments.
Referenced by vorbis_comment_add_tag().
void vorbis_comment_add_tag | ( | vorbis_comment * | vc, |
const char * | tag, | ||
const char * | contents | ||
) |
Definition at line 77 of file info.c.
References vorbis_comment_add().
void vorbis_comment_clear | ( | vorbis_comment * | vc | ) |
Definition at line 133 of file info.c.
References _ogg_free, vorbis_comment::comment_lengths, vorbis_comment::comments, i, memset, vorbis_comment::user_comments, and vorbis_comment::vendor.
Referenced by _fetch_and_process_packet(), _fetch_headers(), _vorbis_unpack_comment(), and ov_clear().
void vorbis_comment_init | ( | vorbis_comment * | vc | ) |
char* vorbis_comment_query | ( | vorbis_comment * | vc, |
const char * | tag, | ||
int | count | ||
) |
Definition at line 97 of file info.c.
References vorbis_comment::comments, i, NULL, tagcompare(), and vorbis_comment::user_comments.
int vorbis_comment_query_count | ( | vorbis_comment * | vc, |
const char * | tag | ||
) |
Definition at line 118 of file info.c.
References vorbis_comment::comments, i, tagcompare(), and vorbis_comment::user_comments.
int vorbis_commentheader_out | ( | vorbis_comment * | vc, |
ogg_packet * | op | ||
) |
Definition at line 547 of file info.c.
References _ogg_malloc, _vorbis_pack_comment(), ogg_packet::b_o_s, oggpack_buffer::buffer, ogg_packet::bytes, ogg_packet::e_o_s, ogg_packet::granulepos, memcpy, oggpack_bytes(), oggpack_writeinit(), OV_EIMPL, ogg_packet::packet, and ogg_packet::packetno.
void vorbis_dsp_clear | ( | vorbis_dsp_state * | v | ) |
Definition at line 315 of file block.c.
References _floor_P, _ogg_free, _residue_P, _ve_envelope_clear(), _vp_global_free(), _vp_psy_clear(), vorbis_dsp_state::backend_state, private_state::bms, vorbis_info::channels, vorbis_info::codec_setup, drft_clear(), private_state::fft_look, codec_setup_info::floor_type, codec_setup_info::floors, private_state::flr, private_state::header, private_state::header1, private_state::header2, i, mdct_clear(), memset, NULL, vorbis_dsp_state::pcm, vorbis_dsp_state::pcmret, private_state::psy, private_state::psy_g_look, codec_setup_info::psys, private_state::residue, codec_setup_info::residue_type, codec_setup_info::residues, private_state::transform, private_state::ve, vorbis_dsp_state::vi, vi, and vorbis_bitrate_clear().
Referenced by _decode_clear(), _vds_shared_init(), ov_clear(), ov_halfrate(), and vorbis_synthesis_init().
double vorbis_granule_time | ( | vorbis_dsp_state * | v, |
ogg_int64_t | granulepos | ||
) |
Definition at line 647 of file info.c.
References vorbis_info::rate, and vorbis_dsp_state::vi.
int vorbis_info_blocksize | ( | vorbis_info * | vi, |
int | zo | ||
) |
Definition at line 149 of file info.c.
References codec_setup_info::blocksizes, and vorbis_info::codec_setup.
Referenced by _ov_64_seek_lap(), _ov_d_seek_lap(), ov_crosslap(), and ov_pcm_seek().
void vorbis_info_clear | ( | vorbis_info * | vi | ) |
Definition at line 160 of file info.c.
References _floor_P, _mapping_P, _ogg_free, _residue_P, _vi_psy_free(), codec_setup_info::book_param, codec_setup_info::books, vorbis_info::codec_setup, codec_setup_info::floor_param, codec_setup_info::floor_type, codec_setup_info::floors, vorbis_func_floor::free_info, vorbis_func_residue::free_info, vorbis_func_mapping::free_info, codec_setup_info::fullbooks, i, codec_setup_info::map_param, codec_setup_info::map_type, codec_setup_info::maps, memset, codec_setup_info::mode_param, codec_setup_info::modes, codec_setup_info::psy_param, codec_setup_info::psys, codec_setup_info::residue_param, codec_setup_info::residue_type, codec_setup_info::residues, vorbis_book_clear(), and vorbis_staticbook_destroy().
Referenced by _fetch_and_process_packet(), _fetch_headers(), _vorbis_unpack_books(), _vorbis_unpack_info(), ov_clear(), vorbis_encode_init(), and vorbis_encode_init_vbr().
void vorbis_info_init | ( | vorbis_info * | vi | ) |
Definition at line 155 of file info.c.
References _ogg_calloc, vorbis_info::codec_setup, and memset.
Referenced by _fetch_headers().
long vorbis_packet_blocksize | ( | vorbis_info * | vi, |
ogg_packet * | op | ||
) |
Definition at line 143 of file synthesis.c.
References vorbis_info_mode::blockflag, codec_setup_info::blocksizes, ogg_packet::bytes, vorbis_info::codec_setup, codec_setup_info::mode_param, codec_setup_info::modes, oggpack_read(), oggpack_readinit(), OV_EBADPACKET, OV_ENOTAUDIO, and ogg_packet::packet.
Referenced by _initial_pcmoffset(), ov_pcm_seek(), and ov_raw_seek().
int vorbis_synthesis | ( | vorbis_block * | vb, |
ogg_packet * | op | ||
) |
Definition at line 26 of file synthesis.c.
References _mapping_P, _vorbis_block_alloc(), _vorbis_block_ripcord(), vorbis_dsp_state::backend_state, vorbis_info_mode::blockflag, codec_setup_info::blocksizes, ogg_packet::bytes, vorbis_info::channels, vorbis_info::codec_setup, ogg_packet::e_o_s, vorbis_block::eofflag, ogg_packet::granulepos, vorbis_block::granulepos, i, vorbis_block::lW, codec_setup_info::map_param, codec_setup_info::map_type, vorbis_info_mode::mapping, vorbis_block::mode, codec_setup_info::mode_param, private_state::modebits, vorbis_block::nW, oggpack_read(), oggpack_readinit(), vorbis_block::opb, OV_EBADPACKET, OV_ENOTAUDIO, ogg_packet::packet, ogg_packet::packetno, vorbis_block::pcm, vorbis_block::pcmend, vorbis_block::sequence, vorbis_block::vd, vorbis_dsp_state::vi, vi, and vorbis_block::W.
Referenced by _fetch_and_process_packet().
int vorbis_synthesis_blockin | ( | vorbis_dsp_state * | v, |
vorbis_block * | vb | ||
) |
Definition at line 721 of file block.c.
References _vorbis_window_get(), vorbis_dsp_state::backend_state, codec_setup_info::blocksizes, vorbis_dsp_state::centerW, vorbis_info::channels, vorbis_info::codec_setup, vorbis_dsp_state::eofflag, vorbis_block::eofflag, vorbis_dsp_state::floor_bits, vorbis_block::floor_bits, vorbis_dsp_state::glue_bits, vorbis_block::glue_bits, vorbis_dsp_state::granulepos, vorbis_block::granulepos, codec_setup_info::halfrate_flag, i, j, vorbis_dsp_state::lW, vorbis_dsp_state::nW, OV_EINVAL, vorbis_dsp_state::pcm, vorbis_block::pcm, vorbis_dsp_state::pcm_current, vorbis_dsp_state::pcm_returned, vorbis_dsp_state::res_bits, vorbis_block::res_bits, private_state::sample_count, vorbis_dsp_state::sequence, vorbis_block::sequence, vorbis_dsp_state::time_bits, vorbis_block::time_bits, vorbis_dsp_state::vi, vi, vorbis_dsp_state::W, vorbis_block::W, and private_state::window.
Referenced by _fetch_and_process_packet(), and ov_pcm_seek().
int vorbis_synthesis_halfrate | ( | vorbis_info * | v, |
int | flag | ||
) |
Definition at line 171 of file synthesis.c.
References codec_setup_info::blocksizes, vorbis_info::codec_setup, and codec_setup_info::halfrate_flag.
Referenced by ov_halfrate().
int vorbis_synthesis_halfrate_p | ( | vorbis_info * | v | ) |
Definition at line 181 of file synthesis.c.
References vorbis_info::codec_setup, and codec_setup_info::halfrate_flag.
Referenced by _fetch_and_process_packet(), ov_halfrate_p(), ov_pcm_seek(), ov_read_filter(), and ov_read_float().
int vorbis_synthesis_headerin | ( | vorbis_info * | vi, |
vorbis_comment * | vc, | ||
ogg_packet * | op | ||
) |
Definition at line 379 of file info.c.
References _v_readstring(), _vorbis_unpack_books(), _vorbis_unpack_comment(), _vorbis_unpack_info(), ogg_packet::b_o_s, ogg_packet::bytes, memset, NULL, oggpack_read(), oggpack_readinit(), OV_EBADHEADER, OV_ENOTVORBIS, ogg_packet::packet, vorbis_info::rate, and vorbis_comment::vendor.
Referenced by _fetch_headers().
int vorbis_synthesis_idheader | ( | ogg_packet * | op | ) |
Definition at line 350 of file info.c.
References _v_readstring(), ogg_packet::b_o_s, ogg_packet::bytes, memset, oggpack_read(), oggpack_readinit(), and ogg_packet::packet.
Referenced by _fetch_headers().
int vorbis_synthesis_init | ( | vorbis_dsp_state * | v, |
vorbis_info * | vi | ||
) |
Definition at line 708 of file block.c.
References _vds_shared_init(), vorbis_dsp_clear(), and vorbis_synthesis_restart().
Referenced by _make_decode_ready().
int vorbis_synthesis_lapout | ( | vorbis_dsp_state * | v, |
float *** | pcm | ||
) |
Definition at line 963 of file block.c.
References codec_setup_info::blocksizes, vorbis_dsp_state::centerW, vorbis_info::channels, vorbis_info::codec_setup, d, codec_setup_info::halfrate_flag, i, j, vorbis_dsp_state::lW, vorbis_dsp_state::pcm, vorbis_dsp_state::pcm_current, vorbis_dsp_state::pcm_returned, vorbis_dsp_state::pcmret, vorbis_dsp_state::vi, vi, and vorbis_dsp_state::W.
Referenced by _ov_64_seek_lap(), _ov_d_seek_lap(), _ov_getlap(), and ov_crosslap().
int vorbis_synthesis_pcmout | ( | vorbis_dsp_state * | v, |
float *** | pcm | ||
) |
Definition at line 937 of file block.c.
References vorbis_info::channels, i, vorbis_dsp_state::pcm, vorbis_dsp_state::pcm_current, vorbis_dsp_state::pcm_returned, vorbis_dsp_state::pcmret, vorbis_dsp_state::vi, and vi.
Referenced by _fetch_and_process_packet(), _ov_getlap(), _ov_initprime(), ov_pcm_seek(), ov_read_filter(), and ov_read_float().
int vorbis_synthesis_read | ( | vorbis_dsp_state * | v, |
int | samples | ||
) |
Definition at line 952 of file block.c.
References OV_EINVAL, vorbis_dsp_state::pcm_current, and vorbis_dsp_state::pcm_returned.
Referenced by _ov_getlap(), ov_pcm_seek(), ov_read_filter(), and ov_read_float().
int vorbis_synthesis_restart | ( | vorbis_dsp_state * | v | ) |
Definition at line 685 of file block.c.
References vorbis_dsp_state::backend_state, codec_setup_info::blocksizes, vorbis_dsp_state::centerW, vorbis_info::codec_setup, vorbis_dsp_state::eofflag, vorbis_dsp_state::granulepos, codec_setup_info::halfrate_flag, vorbis_dsp_state::pcm_current, vorbis_dsp_state::pcm_returned, vorbis_dsp_state::sequence, vorbis_dsp_state::vi, and vi.
Referenced by ov_pcm_seek_page(), ov_raw_seek(), and vorbis_synthesis_init().
int vorbis_synthesis_trackonly | ( | vorbis_block * | vb, |
ogg_packet * | op | ||
) |
Definition at line 94 of file synthesis.c.
References _vorbis_block_ripcord(), vorbis_dsp_state::backend_state, vorbis_info_mode::blockflag, ogg_packet::bytes, vorbis_info::codec_setup, ogg_packet::e_o_s, vorbis_block::eofflag, ogg_packet::granulepos, vorbis_block::granulepos, vorbis_block::lW, vorbis_block::mode, codec_setup_info::mode_param, private_state::modebits, NULL, vorbis_block::nW, oggpack_read(), oggpack_readinit(), vorbis_block::opb, OV_EBADPACKET, OV_ENOTAUDIO, ogg_packet::packet, ogg_packet::packetno, vorbis_block::pcm, vorbis_block::pcmend, vorbis_block::sequence, vorbis_block::vd, vorbis_dsp_state::vi, vi, and vorbis_block::W.
Referenced by ov_pcm_seek().
Definition at line 662 of file info.c.
References GENERAL_VENDOR_STRING.