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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 delete [] _buffer; | 82 delete [] _buffer; |
83 _buffer = NULL; | 83 _buffer = NULL; |
84 } | 84 } |
85 } | 85 } |
86 | 86 |
87 void VCMEncodedFrame::Reset() | 87 void VCMEncodedFrame::Reset() |
88 { | 88 { |
89 _renderTimeMs = -1; | 89 _renderTimeMs = -1; |
90 _timeStamp = 0; | 90 _timeStamp = 0; |
91 _payloadType = 0; | 91 _payloadType = 0; |
92 _frameType = kDeltaFrame; | 92 _frameType = kVideoFrameDelta; |
93 _encodedWidth = 0; | 93 _encodedWidth = 0; |
94 _encodedHeight = 0; | 94 _encodedHeight = 0; |
95 _completeFrame = false; | 95 _completeFrame = false; |
96 _missingFrame = false; | 96 _missingFrame = false; |
97 _length = 0; | 97 _length = 0; |
98 _codecSpecificInfo.codecType = kVideoCodecUnknown; | 98 _codecSpecificInfo.codecType = kVideoCodecUnknown; |
99 _codec = kVideoCodecUnknown; | 99 _codec = kVideoCodecUnknown; |
100 _rotation = kVideoRotation_0; | 100 _rotation = kVideoRotation_0; |
101 _rotation_set = false; | 101 _rotation_set = false; |
102 } | 102 } |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 // copy old data | 220 // copy old data |
221 memcpy(newBuffer, _buffer, _size); | 221 memcpy(newBuffer, _buffer, _size); |
222 delete [] _buffer; | 222 delete [] _buffer; |
223 } | 223 } |
224 _buffer = newBuffer; | 224 _buffer = newBuffer; |
225 _size = minimumSize; | 225 _size = minimumSize; |
226 } | 226 } |
227 } | 227 } |
228 | 228 |
229 } // namespace webrtc | 229 } // namespace webrtc |
OLD | NEW |