| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 rtc::scoped_refptr<webrtc::VideoFrameBuffer> video_frame_buffer_; | 162 rtc::scoped_refptr<webrtc::VideoFrameBuffer> video_frame_buffer_; |
| 163 uint32_t timestamp_; | 163 uint32_t timestamp_; |
| 164 int64_t ntp_time_ms_; | 164 int64_t ntp_time_ms_; |
| 165 int64_t render_time_ms_; | 165 int64_t render_time_ms_; |
| 166 VideoRotation rotation_; | 166 VideoRotation rotation_; |
| 167 }; | 167 }; |
| 168 | 168 |
| 169 enum VideoFrameType { | 169 enum VideoFrameType { |
| 170 kKeyFrame = 0, | 170 kKeyFrame = 0, |
| 171 kDeltaFrame = 1, | 171 kDeltaFrame = 1, |
| 172 kGoldenFrame = 2, | |
| 173 kAltRefFrame = 3, | |
| 174 kSkipFrame = 4 | |
| 175 }; | 172 }; |
| 176 | 173 |
| 177 // TODO(pbos): Rename EncodedFrame and reformat this class' members. | 174 // TODO(pbos): Rename EncodedFrame and reformat this class' members. |
| 178 class EncodedImage { | 175 class EncodedImage { |
| 179 public: | 176 public: |
| 180 EncodedImage() : EncodedImage(nullptr, 0, 0) {} | 177 EncodedImage() : EncodedImage(nullptr, 0, 0) {} |
| 181 EncodedImage(uint8_t* buffer, size_t length, size_t size) | 178 EncodedImage(uint8_t* buffer, size_t length, size_t size) |
| 182 : _buffer(buffer), _length(length), _size(size) {} | 179 : _buffer(buffer), _length(length), _size(size) {} |
| 183 | 180 |
| 184 uint32_t _encodedWidth = 0; | 181 uint32_t _encodedWidth = 0; |
| 185 uint32_t _encodedHeight = 0; | 182 uint32_t _encodedHeight = 0; |
| 186 uint32_t _timeStamp = 0; | 183 uint32_t _timeStamp = 0; |
| 187 // NTP time of the capture time in local timebase in milliseconds. | 184 // NTP time of the capture time in local timebase in milliseconds. |
| 188 int64_t ntp_time_ms_ = 0; | 185 int64_t ntp_time_ms_ = 0; |
| 189 int64_t capture_time_ms_ = 0; | 186 int64_t capture_time_ms_ = 0; |
| 190 // TODO(pbos): Use webrtc::FrameType directly (and remove VideoFrameType). | 187 // TODO(pbos): Use webrtc::FrameType directly (and remove VideoFrameType). |
| 191 VideoFrameType _frameType = kDeltaFrame; | 188 VideoFrameType _frameType = kDeltaFrame; |
| 192 uint8_t* _buffer; | 189 uint8_t* _buffer; |
| 193 size_t _length; | 190 size_t _length; |
| 194 size_t _size; | 191 size_t _size; |
| 195 bool _completeFrame = false; | 192 bool _completeFrame = false; |
| 196 }; | 193 }; |
| 197 | 194 |
| 198 } // namespace webrtc | 195 } // namespace webrtc |
| 199 #endif // WEBRTC_VIDEO_FRAME_H_ | 196 #endif // WEBRTC_VIDEO_FRAME_H_ |
| OLD | NEW |