| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 int calls_to_silence_generator; // Number of calls where silence generated, | 403 int calls_to_silence_generator; // Number of calls where silence generated, |
| 404 // and NetEq was disengaged from decoding. | 404 // and NetEq was disengaged from decoding. |
| 405 int calls_to_neteq; // Number of calls to NetEq. | 405 int calls_to_neteq; // Number of calls to NetEq. |
| 406 int decoded_normal; // Number of calls where audio RTP packet decoded. | 406 int decoded_normal; // Number of calls where audio RTP packet decoded. |
| 407 int decoded_plc; // Number of calls resulted in PLC. | 407 int decoded_plc; // Number of calls resulted in PLC. |
| 408 int decoded_cng; // Number of calls where comfort noise generated due to DTX. | 408 int decoded_cng; // Number of calls where comfort noise generated due to DTX. |
| 409 int decoded_plc_cng; // Number of calls resulted where PLC faded to CNG. | 409 int decoded_plc_cng; // Number of calls resulted where PLC faded to CNG. |
| 410 int decoded_muted_output; // Number of calls returning a muted state output. | 410 int decoded_muted_output; // Number of calls returning a muted state output. |
| 411 }; | 411 }; |
| 412 | 412 |
| 413 // Type of Noise Suppression. | |
| 414 enum NsModes { | |
| 415 kNsUnchanged = 0, // previously set mode | |
| 416 kNsDefault, // platform default | |
| 417 kNsConference, // conferencing default | |
| 418 kNsLowSuppression, // lowest suppression | |
| 419 kNsModerateSuppression, | |
| 420 kNsHighSuppression, | |
| 421 kNsVeryHighSuppression, // highest suppression | |
| 422 }; | |
| 423 | |
| 424 // Type of Automatic Gain Control. | |
| 425 enum AgcModes { | |
| 426 kAgcUnchanged = 0, // previously set mode | |
| 427 kAgcDefault, // platform default | |
| 428 // adaptive mode for use when analog volume control exists (e.g. for | |
| 429 // PC softphone) | |
| 430 kAgcAdaptiveAnalog, | |
| 431 // scaling takes place in the digital domain (e.g. for conference servers | |
| 432 // and embedded devices) | |
| 433 kAgcAdaptiveDigital, | |
| 434 // can be used on embedded devices where the capture signal level | |
| 435 // is predictable | |
| 436 kAgcFixedDigital | |
| 437 }; | |
| 438 | |
| 439 // Type of Echo Control. | |
| 440 enum EcModes { | |
| 441 kEcUnchanged = 0, // previously set mode | |
| 442 kEcDefault, // platform default | |
| 443 kEcConference, // conferencing default (aggressive AEC) | |
| 444 kEcAec, // Acoustic Echo Cancellation | |
| 445 kEcAecm, // AEC mobile | |
| 446 }; | |
| 447 | |
| 448 // Mode of AECM. | |
| 449 enum AecmModes { | |
| 450 kAecmQuietEarpieceOrHeadset = 0, | |
| 451 // Quiet earpiece or headset use | |
| 452 kAecmEarpiece, // most earpiece use | |
| 453 kAecmLoudEarpiece, // Loud earpiece or quiet speakerphone use | |
| 454 kAecmSpeakerphone, // most speakerphone use (default) | |
| 455 kAecmLoudSpeakerphone // Loud speakerphone | |
| 456 }; | |
| 457 | |
| 458 // AGC configuration parameters | |
| 459 struct AgcConfig { | |
| 460 unsigned short targetLeveldBOv; | |
| 461 unsigned short digitalCompressionGaindB; | |
| 462 bool limiterEnable; | |
| 463 }; | |
| 464 | |
| 465 enum StereoChannel { kStereoLeft = 0, kStereoRight, kStereoBoth }; | |
| 466 | |
| 467 // Audio device layers | |
| 468 enum AudioLayers { | |
| 469 kAudioPlatformDefault = 0, | |
| 470 kAudioWindowsCore = 2, | |
| 471 kAudioLinuxAlsa = 3, | |
| 472 kAudioLinuxPulse = 4 | |
| 473 }; | |
| 474 | |
| 475 // ================================================================== | 413 // ================================================================== |
| 476 // Video specific types | 414 // Video specific types |
| 477 // ================================================================== | 415 // ================================================================== |
| 478 | 416 |
| 479 // Raw video types | 417 // Raw video types |
| 480 enum RawVideoType { | 418 enum RawVideoType { |
| 481 kVideoI420 = 0, | 419 kVideoI420 = 0, |
| 482 kVideoYV12 = 1, | 420 kVideoYV12 = 1, |
| 483 kVideoYUY2 = 2, | 421 kVideoYUY2 = 2, |
| 484 kVideoUYVY = 3, | 422 kVideoUYVY = 3, |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 enum class RtcpMode { kOff, kCompound, kReducedSize }; | 836 enum class RtcpMode { kOff, kCompound, kReducedSize }; |
| 899 | 837 |
| 900 enum NetworkState { | 838 enum NetworkState { |
| 901 kNetworkUp, | 839 kNetworkUp, |
| 902 kNetworkDown, | 840 kNetworkDown, |
| 903 }; | 841 }; |
| 904 | 842 |
| 905 } // namespace webrtc | 843 } // namespace webrtc |
| 906 | 844 |
| 907 #endif // WEBRTC_COMMON_TYPES_H_ | 845 #endif // WEBRTC_COMMON_TYPES_H_ |
| OLD | NEW |