| 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 bool denoisingOn; | 533 bool denoisingOn; |
| 534 bool frameDroppingOn; | 534 bool frameDroppingOn; |
| 535 int keyFrameInterval; | 535 int keyFrameInterval; |
| 536 bool adaptiveQpMode; | 536 bool adaptiveQpMode; |
| 537 bool automaticResizeOn; | 537 bool automaticResizeOn; |
| 538 unsigned char numberOfSpatialLayers; | 538 unsigned char numberOfSpatialLayers; |
| 539 bool flexibleMode; | 539 bool flexibleMode; |
| 540 }; | 540 }; |
| 541 | 541 |
| 542 // H264 specific. | 542 // H264 specific. |
| 543 enum H264PacketizationMode { | |
| 544 // Because VideoCodecH264 was initialized in multiple places using memset, | |
| 545 // we let 0 have the meaning of "not set". | |
| 546 kH264PacketizationModeNotSet = 0, | |
| 547 kH264PacketizationMode0, // Only single NALU allowed | |
| 548 kH264PacketizationMode1 // Non-interleaved - STAP-A, FU-A is allowed | |
| 549 }; | |
| 550 | |
| 551 struct VideoCodecH264 { | 543 struct VideoCodecH264 { |
| 552 bool frameDroppingOn; | 544 bool frameDroppingOn; |
| 553 int keyFrameInterval; | 545 int keyFrameInterval; |
| 554 H264PacketizationMode packetization_mode; | |
| 555 // These are NULL/0 if not externally negotiated. | 546 // These are NULL/0 if not externally negotiated. |
| 556 const uint8_t* spsData; | 547 const uint8_t* spsData; |
| 557 size_t spsLen; | 548 size_t spsLen; |
| 558 const uint8_t* ppsData; | 549 const uint8_t* ppsData; |
| 559 size_t ppsLen; | 550 size_t ppsLen; |
| 560 }; | 551 }; |
| 561 | 552 |
| 562 // Video codec types | 553 // Video codec types |
| 563 enum VideoCodecType { | 554 enum VideoCodecType { |
| 564 kVideoCodecVP8, | 555 kVideoCodecVP8, |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 847 enum class RtcpMode { kOff, kCompound, kReducedSize }; | 838 enum class RtcpMode { kOff, kCompound, kReducedSize }; |
| 848 | 839 |
| 849 enum NetworkState { | 840 enum NetworkState { |
| 850 kNetworkUp, | 841 kNetworkUp, |
| 851 kNetworkDown, | 842 kNetworkDown, |
| 852 }; | 843 }; |
| 853 | 844 |
| 854 } // namespace webrtc | 845 } // namespace webrtc |
| 855 | 846 |
| 856 #endif // WEBRTC_COMMON_TYPES_H_ | 847 #endif // WEBRTC_COMMON_TYPES_H_ |
| OLD | NEW |