You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
3.3 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * libjingle
  3. * Copyright 2012 Google Inc.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. *
  8. * 1. Redistributions of source code must retain the above copyright notice,
  9. * this list of conditions and the following disclaimer.
  10. * 2. Redistributions in binary form must reproduce the above copyright notice,
  11. * this list of conditions and the following disclaimer in the documentation
  12. * and/or other materials provided with the distribution.
  13. * 3. The name of the author may not be used to endorse or promote products
  14. * derived from this software without specific prior written permission.
  15. *
  16. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
  17. * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  18. * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
  19. * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  20. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  21. * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  22. * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  23. * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  24. * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  25. * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. */
  27. #ifndef TALK_MEDIA_BASE_CONSTANTS_H_
  28. #define TALK_MEDIA_BASE_CONSTANTS_H_
  29. #include <string>
  30. // This file contains constants related to media.
  31. namespace cricket {
  32. extern const int kVideoCodecClockrate;
  33. extern const int kDataCodecClockrate;
  34. extern const int kDataMaxBandwidth; // bps
  35. // Default CPU thresholds.
  36. extern const float kHighSystemCpuThreshold;
  37. extern const float kLowSystemCpuThreshold;
  38. extern const float kProcessCpuThreshold;
  39. extern const char* kRtxCodecName;
  40. // Codec parameters
  41. extern const char* kCodecParamAssociatedPayloadType;
  42. extern const char* kOpusCodecName;
  43. // Attribute parameters
  44. extern const char* kCodecParamPTime;
  45. extern const char* kCodecParamMaxPTime;
  46. // fmtp parameters
  47. extern const char* kCodecParamMinPTime;
  48. extern const char* kCodecParamSPropStereo;
  49. extern const char* kCodecParamStereo;
  50. extern const char* kCodecParamUseInbandFec;
  51. extern const char* kParamTrue;
  52. // opus parameters.
  53. // Default value for maxptime according to
  54. // http://tools.ietf.org/html/draft-spittka-payload-rtp-opus-03
  55. extern const int kOpusDefaultMaxPTime;
  56. extern const int kOpusDefaultPTime;
  57. extern const int kOpusDefaultMinPTime;
  58. extern const int kOpusDefaultSPropStereo;
  59. extern const int kOpusDefaultStereo;
  60. extern const int kOpusDefaultUseInbandFec;
  61. // Prefered values in this code base. Note that they may differ from the default
  62. // values in http://tools.ietf.org/html/draft-spittka-payload-rtp-opus-03
  63. // Only frames larger or equal to 10 ms are currently supported in this code
  64. // base.
  65. extern const int kPreferredMaxPTime;
  66. extern const int kPreferredMinPTime;
  67. extern const int kPreferredSPropStereo;
  68. extern const int kPreferredStereo;
  69. extern const int kPreferredUseInbandFec;
  70. // Google specific parameters
  71. extern const char* kCodecParamMaxBitrate;
  72. extern const char* kCodecParamMinBitrate;
  73. extern const char* kCodecParamMaxQuantization;
  74. } // namespace cricket
  75. #endif // TALK_MEDIA_BASE_CONSTANTS_H_