highlevel.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /********************************************************************
  2. * *
  3. * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
  4. * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
  5. * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
  6. * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
  7. * *
  8. * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2009 *
  9. * by the Xiph.Org Foundation https://xiph.org/ *
  10. * *
  11. ********************************************************************
  12. function: highlevel encoder setup struct separated out for vorbisenc clarity
  13. ********************************************************************/
  14. typedef struct highlevel_byblocktype {
  15. double tone_mask_setting;
  16. double tone_peaklimit_setting;
  17. double noise_bias_setting;
  18. double noise_compand_setting;
  19. } highlevel_byblocktype;
  20. typedef struct highlevel_encode_setup {
  21. int set_in_stone;
  22. const void *setup;
  23. double base_setting;
  24. double impulse_noisetune;
  25. /* bitrate management below all settable */
  26. float req;
  27. int managed;
  28. long bitrate_min;
  29. long bitrate_av;
  30. double bitrate_av_damp;
  31. long bitrate_max;
  32. long bitrate_reservoir;
  33. double bitrate_reservoir_bias;
  34. int impulse_block_p;
  35. int noise_normalize_p;
  36. int coupling_p;
  37. double stereo_point_setting;
  38. double lowpass_kHz;
  39. int lowpass_altered;
  40. double ath_floating_dB;
  41. double ath_absolute_dB;
  42. double amplitude_track_dBpersec;
  43. double trigger_setting;
  44. highlevel_byblocktype block[4]; /* padding, impulse, transition, long */
  45. } highlevel_encode_setup;