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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 _frameType = kVideoFrameDelta; | 81 _frameType = kVideoFrameDelta; |
82 _encodedWidth = 0; | 82 _encodedWidth = 0; |
83 _encodedHeight = 0; | 83 _encodedHeight = 0; |
84 _completeFrame = false; | 84 _completeFrame = false; |
85 _missingFrame = false; | 85 _missingFrame = false; |
86 _length = 0; | 86 _length = 0; |
87 _codecSpecificInfo.codecType = kVideoCodecUnknown; | 87 _codecSpecificInfo.codecType = kVideoCodecUnknown; |
88 _codec = kVideoCodecUnknown; | 88 _codec = kVideoCodecUnknown; |
89 rotation_ = kVideoRotation_0; | 89 rotation_ = kVideoRotation_0; |
90 content_type_ = VideoContentType::UNSPECIFIED; | 90 content_type_ = VideoContentType::UNSPECIFIED; |
91 timing_.is_timing_frame = false; | 91 timing_.flags = TimingFrameFlags::kInvalid; |
92 _rotation_set = false; | 92 _rotation_set = false; |
93 } | 93 } |
94 | 94 |
95 void VCMEncodedFrame::CopyCodecSpecific(const RTPVideoHeader* header) { | 95 void VCMEncodedFrame::CopyCodecSpecific(const RTPVideoHeader* header) { |
96 if (header) { | 96 if (header) { |
97 switch (header->codec) { | 97 switch (header->codec) { |
98 case kRtpVideoVp8: { | 98 case kRtpVideoVp8: { |
99 if (_codecSpecificInfo.codecType != kVideoCodecVP8) { | 99 if (_codecSpecificInfo.codecType != kVideoCodecVP8) { |
100 // This is the first packet for this frame. | 100 // This is the first packet for this frame. |
101 _codecSpecificInfo.codecSpecific.VP8.pictureId = -1; | 101 _codecSpecificInfo.codecSpecific.VP8.pictureId = -1; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // copy old data | 209 // copy old data |
210 memcpy(newBuffer, _buffer, _size); | 210 memcpy(newBuffer, _buffer, _size); |
211 delete[] _buffer; | 211 delete[] _buffer; |
212 } | 212 } |
213 _buffer = newBuffer; | 213 _buffer = newBuffer; |
214 _size = minimumSize; | 214 _size = minimumSize; |
215 } | 215 } |
216 } | 216 } |
217 | 217 |
218 } // namespace webrtc | 218 } // namespace webrtc |
OLD | NEW |