PageRenderTime 30ms CodeModel.GetById 13ms app.highlight 13ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/VorbisFramework.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 80 lines | 40 code | 13 blank | 27 comment | 0 complexity | 1d43a85274a7b2ab091d0f5fe6d3c361 MD5 | raw file
 1/** 
 2 * @file VorbisFramework.h
 3 * @author Dave Camp
 4 * @date Fri Oct 10 2003
 5 * @brief For the Macview project
 6 *
 7 * $LicenseInfo:firstyear=2003&license=viewerlgpl$
 8 * Second Life Viewer Source Code
 9 * Copyright (C) 2010, Linden Research, Inc.
10 * 
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation;
14 * version 2.1 of the License only.
15 * 
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19 * Lesser General Public License for more details.
20 * 
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this library; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
24 * 
25 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
26 * $/LicenseInfo$
27 */
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#include "ogg/ogg.h"
34#include "vorbis/codec.h"
35#include "vorbis/vorbisenc.h"
36
37extern int      mac_vorbis_analysis(vorbis_block *vb,ogg_packet *op);
38
39extern int      mac_vorbis_analysis_headerout(vorbis_dsp_state *v,
40					  vorbis_comment *vc,
41					  ogg_packet *op,
42					  ogg_packet *op_comm,
43					  ogg_packet *op_code);
44
45extern int mac_vorbis_analysis_init(vorbis_dsp_state *v,vorbis_info *vi);
46
47extern int mac_vorbis_encode_ctl(vorbis_info *vi,int number,void *arg);
48
49extern int mac_vorbis_encode_setup_init(vorbis_info *vi);
50
51extern int mac_vorbis_encode_setup_managed(vorbis_info *vi,
52				       long channels,
53				       long rate,
54				       
55				       long max_bitrate,
56				       long nominal_bitrate,
57				       long min_bitrate);
58
59extern void     mac_vorbis_info_init(vorbis_info *vi);
60extern void     mac_vorbis_info_clear(vorbis_info *vi);
61extern void     mac_vorbis_comment_init(vorbis_comment *vc);
62extern void     mac_vorbis_comment_clear(vorbis_comment *vc);
63extern int      mac_vorbis_block_init(vorbis_dsp_state *v, vorbis_block *vb);
64extern int      mac_vorbis_block_clear(vorbis_block *vb);
65extern void     mac_vorbis_dsp_clear(vorbis_dsp_state *v);
66extern float  **mac_vorbis_analysis_buffer(vorbis_dsp_state *v,int vals);
67extern int      mac_vorbis_analysis_wrote(vorbis_dsp_state *v,int vals);
68extern int      mac_vorbis_analysis_blockout(vorbis_dsp_state *v,vorbis_block *vb);
69
70extern int		mac_ogg_stream_packetin(ogg_stream_state *os, ogg_packet *op);
71extern int      mac_ogg_stream_init(ogg_stream_state *os,int serialno);
72extern int      mac_ogg_stream_flush(ogg_stream_state *os, ogg_page *og);
73extern int      mac_ogg_stream_pageout(ogg_stream_state *os, ogg_page *og);
74extern int      mac_ogg_page_eos(ogg_page *og);
75extern int      mac_ogg_stream_clear(ogg_stream_state *os);
76
77
78#ifdef __cplusplus
79}
80#endif