Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Side by Side Diff: webrtc/common_types.h

Issue 2812913002: Reland of Add content type information to encoded images and corresponding rtp extension header (Closed)
Patch Set: Fix indent Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/api/video/video_content_type.h ('k') | webrtc/common_types.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 #ifndef WEBRTC_COMMON_TYPES_H_ 11 #ifndef WEBRTC_COMMON_TYPES_H_
12 #define WEBRTC_COMMON_TYPES_H_ 12 #define WEBRTC_COMMON_TYPES_H_
13 13
14 #include <stddef.h> 14 #include <stddef.h>
15 #include <string.h> 15 #include <string.h>
16 16
17 #include <ostream> 17 #include <ostream>
18 #include <string> 18 #include <string>
19 #include <vector> 19 #include <vector>
20 20
21 #include "webrtc/api/video/video_content_type.h"
21 #include "webrtc/api/video/video_rotation.h" 22 #include "webrtc/api/video/video_rotation.h"
22 #include "webrtc/base/checks.h" 23 #include "webrtc/base/checks.h"
23 #include "webrtc/base/optional.h" 24 #include "webrtc/base/optional.h"
24 #include "webrtc/typedefs.h" 25 #include "webrtc/typedefs.h"
25 26
26 #if defined(_MSC_VER) 27 #if defined(_MSC_VER)
27 // Disable "new behavior: elements of array will be default initialized" 28 // Disable "new behavior: elements of array will be default initialized"
28 // warning. Affects OverUseDetectorOptions. 29 // warning. Affects OverUseDetectorOptions.
29 #pragma warning(disable : 4351) 30 #pragma warning(disable : 4351)
30 #endif 31 #endif
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 bool hasAudioLevel; 710 bool hasAudioLevel;
710 bool voiceActivity; 711 bool voiceActivity;
711 uint8_t audioLevel; 712 uint8_t audioLevel;
712 713
713 // For Coordination of Video Orientation. See 714 // For Coordination of Video Orientation. See
714 // http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/12.07.00_60/ 715 // http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/12.07.00_60/
715 // ts_126114v120700p.pdf 716 // ts_126114v120700p.pdf
716 bool hasVideoRotation; 717 bool hasVideoRotation;
717 VideoRotation videoRotation; 718 VideoRotation videoRotation;
718 719
720 // TODO(ilnik): Refactor this and one above to be rtc::Optional() and remove
721 // a corresponding bool flag.
722 bool hasVideoContentType;
723 VideoContentType videoContentType;
724
719 PlayoutDelay playout_delay = {-1, -1}; 725 PlayoutDelay playout_delay = {-1, -1};
720 }; 726 };
721 727
722 struct RTPHeader { 728 struct RTPHeader {
723 RTPHeader(); 729 RTPHeader();
724 730
725 bool markerBit; 731 bool markerBit;
726 uint8_t payloadType; 732 uint8_t payloadType;
727 uint16_t sequenceNumber; 733 uint16_t sequenceNumber;
728 uint32_t timestamp; 734 uint32_t timestamp;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 enum class RtcpMode { kOff, kCompound, kReducedSize }; 841 enum class RtcpMode { kOff, kCompound, kReducedSize };
836 842
837 enum NetworkState { 843 enum NetworkState {
838 kNetworkUp, 844 kNetworkUp,
839 kNetworkDown, 845 kNetworkDown,
840 }; 846 };
841 847
842 } // namespace webrtc 848 } // namespace webrtc
843 849
844 #endif // WEBRTC_COMMON_TYPES_H_ 850 #endif // WEBRTC_COMMON_TYPES_H_
OLDNEW
« no previous file with comments | « webrtc/api/video/video_content_type.h ('k') | webrtc/common_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698