psymodel.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * psymodel.h
  3. *
  4. * Copyright (c) 1999 Mark Taylor
  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
  18. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19. * Boston, MA 02111-1307, USA.
  20. */
  21. #ifndef LAME_PSYMODEL_H
  22. #define LAME_PSYMODEL_H
  23. int L3psycho_anal_ns(lame_internal_flags * gfc,
  24. const sample_t *const buffer[2], int gr,
  25. III_psy_ratio ratio[2][2],
  26. III_psy_ratio MS_ratio[2][2],
  27. FLOAT pe[2], FLOAT pe_MS[2], FLOAT ener[2], int blocktype_d[2]);
  28. int L3psycho_anal_vbr(lame_internal_flags * gfc,
  29. const sample_t *const buffer[2], int gr,
  30. III_psy_ratio ratio[2][2],
  31. III_psy_ratio MS_ratio[2][2],
  32. FLOAT pe[2], FLOAT pe_MS[2], FLOAT ener[2], int blocktype_d[2]);
  33. int psymodel_init(lame_global_flags const* gfp);
  34. #define rpelev 2
  35. #define rpelev2 16
  36. #define rpelev_s 2
  37. #define rpelev2_s 16
  38. /* size of each partition band, in barks: */
  39. #define DELBARK .34
  40. /* tuned for output level (sensitive to energy scale) */
  41. #define VO_SCALE (1./( 14752*14752 )/(BLKSIZE/2))
  42. #define temporalmask_sustain_sec 0.01
  43. #define NS_PREECHO_ATT0 0.8
  44. #define NS_PREECHO_ATT1 0.6
  45. #define NS_PREECHO_ATT2 0.3
  46. #define NS_MSFIX 3.5
  47. #define NSATTACKTHRE 4.4
  48. #define NSATTACKTHRE_S 25
  49. #endif /* LAME_PSYMODEL_H */