OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 * Get render time in milliseconds | 68 * Get render time in milliseconds |
69 */ | 69 */ |
70 int64_t RenderTimeMs() const { return _renderTimeMs; } | 70 int64_t RenderTimeMs() const { return _renderTimeMs; } |
71 /** | 71 /** |
72 * Get frame type | 72 * Get frame type |
73 */ | 73 */ |
74 webrtc::FrameType FrameType() const { return _frameType; } | 74 webrtc::FrameType FrameType() const { return _frameType; } |
75 /** | 75 /** |
76 * Get frame rotation | 76 * Get frame rotation |
77 */ | 77 */ |
78 VideoRotation rotation() const { return _rotation; } | 78 VideoRotation rotation() const { return rotation_; } |
79 /** | 79 /** |
80 * True if this frame is complete, false otherwise | 80 * True if this frame is complete, false otherwise |
81 */ | 81 */ |
82 bool Complete() const { return _completeFrame; } | 82 bool Complete() const { return _completeFrame; } |
83 /** | 83 /** |
84 * True if there's a frame missing before this frame | 84 * True if there's a frame missing before this frame |
85 */ | 85 */ |
86 bool MissingFrame() const { return _missingFrame; } | 86 bool MissingFrame() const { return _missingFrame; } |
87 /** | 87 /** |
88 * Payload type of the encoded payload | 88 * Payload type of the encoded payload |
(...skipping 23 matching lines...) Expand all Loading... |
112 void Reset(); | 112 void Reset(); |
113 | 113 |
114 void CopyCodecSpecific(const RTPVideoHeader* header); | 114 void CopyCodecSpecific(const RTPVideoHeader* header); |
115 | 115 |
116 int64_t _renderTimeMs; | 116 int64_t _renderTimeMs; |
117 uint8_t _payloadType; | 117 uint8_t _payloadType; |
118 bool _missingFrame; | 118 bool _missingFrame; |
119 CodecSpecificInfo _codecSpecificInfo; | 119 CodecSpecificInfo _codecSpecificInfo; |
120 webrtc::VideoCodecType _codec; | 120 webrtc::VideoCodecType _codec; |
121 RTPFragmentationHeader _fragmentation; | 121 RTPFragmentationHeader _fragmentation; |
122 VideoRotation _rotation; | |
123 | 122 |
124 // Video rotation is only set along with the last packet for each frame | 123 // Video rotation is only set along with the last packet for each frame |
125 // (same as marker bit). This |_rotation_set| is only for debugging purpose | 124 // (same as marker bit). This |_rotation_set| is only for debugging purpose |
126 // to ensure we don't set it twice for a frame. | 125 // to ensure we don't set it twice for a frame. |
127 bool _rotation_set; | 126 bool _rotation_set; |
128 }; | 127 }; |
129 | 128 |
130 } // namespace webrtc | 129 } // namespace webrtc |
131 | 130 |
132 #endif // WEBRTC_MODULES_VIDEO_CODING_ENCODED_FRAME_H_ | 131 #endif // WEBRTC_MODULES_VIDEO_CODING_ENCODED_FRAME_H_ |
OLD | NEW |