set_get.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. #ifndef __SET_GET_H__
  21. #define __SET_GET_H__
  22. #include <lame.h>
  23. #if defined(__cplusplus)
  24. extern "C" {
  25. #endif
  26. /* select psychoacoustic model */
  27. /* manage short blocks */
  28. int CDECL lame_set_short_threshold(lame_global_flags *, float, float);
  29. int CDECL lame_set_short_threshold_lrm(lame_global_flags *, float);
  30. float CDECL lame_get_short_threshold_lrm(const lame_global_flags *);
  31. int CDECL lame_set_short_threshold_s(lame_global_flags *, float);
  32. float CDECL lame_get_short_threshold_s(const lame_global_flags *);
  33. int CDECL lame_set_maskingadjust(lame_global_flags *, float);
  34. float CDECL lame_get_maskingadjust(const lame_global_flags *);
  35. int CDECL lame_set_maskingadjust_short(lame_global_flags *, float);
  36. float CDECL lame_get_maskingadjust_short(const lame_global_flags *);
  37. /* select ATH formula 4 shape */
  38. int CDECL lame_set_ATHcurve(lame_global_flags *, float);
  39. float CDECL lame_get_ATHcurve(const lame_global_flags *);
  40. int CDECL lame_set_preset_notune(lame_global_flags *, int);
  41. /* substep shaping method */
  42. int CDECL lame_set_substep(lame_global_flags *, int);
  43. int CDECL lame_get_substep(const lame_global_flags *);
  44. /* scalefactors scale */
  45. int CDECL lame_set_sfscale(lame_global_flags *, int);
  46. int CDECL lame_get_sfscale(const lame_global_flags *);
  47. /* subblock gain */
  48. int CDECL lame_set_subblock_gain(lame_global_flags *, int);
  49. int CDECL lame_get_subblock_gain(const lame_global_flags *);
  50. /*presets*/
  51. int apply_preset(lame_global_flags *, int preset, int enforce);
  52. void CDECL lame_set_tune(lame_t, float); /* FOR INTERNAL USE ONLY */
  53. void CDECL lame_set_msfix(lame_t gfp, double msfix);
  54. #if defined(__cplusplus)
  55. }
  56. #endif
  57. #endif