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 |
11 #include "webrtc/modules/video_coding/frame_buffer.h" | 11 #include "webrtc/modules/video_coding/frame_buffer.h" |
12 | 12 |
13 #include <assert.h> | 13 #include <assert.h> |
14 #include <string.h> | 14 #include <string.h> |
15 | 15 |
16 #include "webrtc/base/checks.h" | |
17 #include "webrtc/base/logging.h" | |
18 #include "webrtc/base/trace_event.h" | |
19 #include "webrtc/modules/video_coding/packet.h" | 16 #include "webrtc/modules/video_coding/packet.h" |
| 17 #include "webrtc/rtc_base/checks.h" |
| 18 #include "webrtc/rtc_base/logging.h" |
| 19 #include "webrtc/rtc_base/trace_event.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 | 22 |
23 VCMFrameBuffer::VCMFrameBuffer() | 23 VCMFrameBuffer::VCMFrameBuffer() |
24 : _state(kStateEmpty), _nackCount(0), _latestPacketTimeMs(-1) {} | 24 : _state(kStateEmpty), _nackCount(0), _latestPacketTimeMs(-1) {} |
25 | 25 |
26 VCMFrameBuffer::~VCMFrameBuffer() {} | 26 VCMFrameBuffer::~VCMFrameBuffer() {} |
27 | 27 |
28 VCMFrameBuffer::VCMFrameBuffer(const VCMFrameBuffer& rhs) | 28 VCMFrameBuffer::VCMFrameBuffer(const VCMFrameBuffer& rhs) |
29 : VCMEncodedFrame(rhs), | 29 : VCMEncodedFrame(rhs), |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 size_t bytes_removed = _sessionInfo.MakeDecodable(); | 296 size_t bytes_removed = _sessionInfo.MakeDecodable(); |
297 _length -= bytes_removed; | 297 _length -= bytes_removed; |
298 // Transfer frame information to EncodedFrame and create any codec | 298 // Transfer frame information to EncodedFrame and create any codec |
299 // specific information. | 299 // specific information. |
300 _frameType = _sessionInfo.FrameType(); | 300 _frameType = _sessionInfo.FrameType(); |
301 _completeFrame = _sessionInfo.complete(); | 301 _completeFrame = _sessionInfo.complete(); |
302 _missingFrame = !continuous; | 302 _missingFrame = !continuous; |
303 } | 303 } |
304 | 304 |
305 } // namespace webrtc | 305 } // namespace webrtc |
OLD | NEW |