PageRenderTime 39ms CodeModel.GetById 24ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1
  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. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31. #include "ogg/ogg.h"
  32. #include "vorbis/codec.h"
  33. #include "vorbis/vorbisenc.h"
  34. extern int mac_vorbis_analysis(vorbis_block *vb,ogg_packet *op);
  35. extern int mac_vorbis_analysis_headerout(vorbis_dsp_state *v,
  36. vorbis_comment *vc,
  37. ogg_packet *op,
  38. ogg_packet *op_comm,
  39. ogg_packet *op_code);
  40. extern int mac_vorbis_analysis_init(vorbis_dsp_state *v,vorbis_info *vi);
  41. extern int mac_vorbis_encode_ctl(vorbis_info *vi,int number,void *arg);
  42. extern int mac_vorbis_encode_setup_init(vorbis_info *vi);
  43. extern int mac_vorbis_encode_setup_managed(vorbis_info *vi,
  44. long channels,
  45. long rate,
  46. long max_bitrate,
  47. long nominal_bitrate,
  48. long min_bitrate);
  49. extern void mac_vorbis_info_init(vorbis_info *vi);
  50. extern void mac_vorbis_info_clear(vorbis_info *vi);
  51. extern void mac_vorbis_comment_init(vorbis_comment *vc);
  52. extern void mac_vorbis_comment_clear(vorbis_comment *vc);
  53. extern int mac_vorbis_block_init(vorbis_dsp_state *v, vorbis_block *vb);
  54. extern int mac_vorbis_block_clear(vorbis_block *vb);
  55. extern void mac_vorbis_dsp_clear(vorbis_dsp_state *v);
  56. extern float **mac_vorbis_analysis_buffer(vorbis_dsp_state *v,int vals);
  57. extern int mac_vorbis_analysis_wrote(vorbis_dsp_state *v,int vals);
  58. extern int mac_vorbis_analysis_blockout(vorbis_dsp_state *v,vorbis_block *vb);
  59. extern int mac_ogg_stream_packetin(ogg_stream_state *os, ogg_packet *op);
  60. extern int mac_ogg_stream_init(ogg_stream_state *os,int serialno);
  61. extern int mac_ogg_stream_flush(ogg_stream_state *os, ogg_page *og);
  62. extern int mac_ogg_stream_pageout(ogg_stream_state *os, ogg_page *og);
  63. extern int mac_ogg_page_eos(ogg_page *og);
  64. extern int mac_ogg_stream_clear(ogg_stream_state *os);
  65. #ifdef __cplusplus
  66. }
  67. #endif