Newer
Older
monitord / lame-3.97 / libmp3lame / .svn / text-base / set_get.h.svn-base
  1. /*
  2. * set_get.h -- Internal set/get definitions
  3. *
  4. * Copyright (C) 2003 Gabriel Bouvigne / Lame project
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Library General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Library General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Library General Public
  17. * License along with this library; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  19. */
  20.  
  21. #ifndef __SET_GET_H__
  22. #define __SET_GET_H__
  23.  
  24. #include "lame.h"
  25.  
  26.  
  27. #if defined(__cplusplus)
  28. extern "C" {
  29. #endif
  30.  
  31. #if defined(WIN32)
  32. #undef CDECL
  33. #define CDECL _cdecl
  34. #else
  35. #define CDECL
  36. #endif
  37.  
  38.  
  39. /* select psychoacoustic model */
  40. int CDECL lame_set_psy_model( lame_global_flags *, int);
  41. int CDECL lame_get_psy_model( const lame_global_flags *);
  42.  
  43.  
  44. void CDECL lame_set_ms_sparsing( lame_global_flags*, int );
  45. void CDECL lame_set_ms_sparse_low(lame_t , float );
  46. void CDECL lame_set_ms_sparse_high(lame_t , float );
  47.  
  48.  
  49. /* manage short blocks */
  50. int CDECL lame_set_short_threshold(lame_global_flags *, float, float);
  51. int CDECL lame_set_short_threshold_lrm(lame_global_flags *, float);
  52. float CDECL lame_get_short_threshold_lrm(const lame_global_flags *);
  53. int CDECL lame_set_short_threshold_s(lame_global_flags *, float);
  54. float CDECL lame_get_short_threshold_s(const lame_global_flags *);
  55.  
  56.  
  57. int CDECL lame_set_vbr_smooth( lame_global_flags *, int);
  58. int CDECL lame_get_vbr_smooth( const lame_global_flags *);
  59.  
  60. int CDECL lame_set_maskingadjust( lame_global_flags *, float);
  61. float CDECL lame_get_maskingadjust( const lame_global_flags *);
  62.  
  63. int CDECL lame_set_maskingadjust_short( lame_global_flags *, float);
  64. float CDECL lame_get_maskingadjust_short( const lame_global_flags *);
  65.  
  66. /* select ATH formula 4 shape */
  67. int CDECL lame_set_ATHcurve(lame_global_flags *, float);
  68. float CDECL lame_get_ATHcurve(const lame_global_flags *);
  69.  
  70. int CDECL lame_set_preset_notune(lame_global_flags *, int);
  71.  
  72. /* substep shaping method */
  73. int CDECL lame_set_substep(lame_global_flags *, int);
  74. int CDECL lame_get_substep(const lame_global_flags *);
  75.  
  76. /* scalefactors scale */
  77. int CDECL lame_set_sfscale(lame_global_flags *, int);
  78. int CDECL lame_get_sfscale(const lame_global_flags *);
  79.  
  80. /* subblock gain */
  81. int CDECL lame_set_subblock_gain(lame_global_flags *, int);
  82. int CDECL lame_get_subblock_gain(const lame_global_flags *);
  83.  
  84.  
  85.  
  86. /*presets*/
  87. int apply_preset(lame_global_flags*, int preset, int enforce);
  88.  
  89.  
  90.  
  91. #if defined(__cplusplus)
  92. }
  93. #endif
  94.  
  95. #endif