highlevel.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 http://www.xiph.org/ *
  10. * *
  11. ********************************************************************
  12. function: highlevel encoder setup struct separated out for vorbisenc clarity
  13. last mod: $Id: highlevel.h 17195 2010-05-05 21:49:51Z giles $
  14. ********************************************************************/
  15. typedef struct highlevel_byblocktype {
  16. double tone_mask_setting;
  17. double tone_peaklimit_setting;
  18. double noise_bias_setting;
  19. double noise_compand_setting;
  20. } highlevel_byblocktype;
  21. typedef struct highlevel_encode_setup {
  22. int set_in_stone;
  23. const void *setup;
  24. double base_setting;
  25. double impulse_noisetune;
  26. /* bitrate management below all settable */
  27. float req;
  28. int managed;
  29. long bitrate_min;
  30. long bitrate_av;
  31. double bitrate_av_damp;
  32. long bitrate_max;
  33. long bitrate_reservoir;
  34. double bitrate_reservoir_bias;
  35. int impulse_block_p;
  36. int noise_normalize_p;
  37. int coupling_p;
  38. double stereo_point_setting;
  39. double lowpass_kHz;
  40. int lowpass_altered;
  41. double ath_floating_dB;
  42. double ath_absolute_dB;
  43. double amplitude_track_dBpersec;
  44. double trigger_setting;
  45. highlevel_byblocktype block[4]; /* padding, impulse, transition, long */
  46. } highlevel_encode_setup;