Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: webrtc/modules/video_coding/frame_buffer.cc

Issue 2380933003: Delete unused support for vp8 partitions. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 VCMFrameBufferStateEnum VCMFrameBuffer::GetState(uint32_t& timeStamp) const { 246 VCMFrameBufferStateEnum VCMFrameBuffer::GetState(uint32_t& timeStamp) const {
247 timeStamp = TimeStamp(); 247 timeStamp = TimeStamp();
248 return GetState(); 248 return GetState();
249 } 249 }
250 250
251 bool VCMFrameBuffer::IsRetransmitted() const { 251 bool VCMFrameBuffer::IsRetransmitted() const {
252 return _sessionInfo.session_nack(); 252 return _sessionInfo.session_nack();
253 } 253 }
254 254
255 void VCMFrameBuffer::PrepareForDecode(bool continuous) { 255 void VCMFrameBuffer::PrepareForDecode(bool continuous) {
256 #ifdef INDEPENDENT_PARTITIONS
257 if (_codec == kVideoCodecVP8) {
258 _length = _sessionInfo.BuildVP8FragmentationHeader(_buffer, _length,
259 &_fragmentation);
260 } else {
261 size_t bytes_removed = _sessionInfo.MakeDecodable();
262 _length -= bytes_removed;
263 }
264 #else
265 size_t bytes_removed = _sessionInfo.MakeDecodable(); 256 size_t bytes_removed = _sessionInfo.MakeDecodable();
266 _length -= bytes_removed; 257 _length -= bytes_removed;
267 #endif
268 // Transfer frame information to EncodedFrame and create any codec 258 // Transfer frame information to EncodedFrame and create any codec
269 // specific information. 259 // specific information.
270 _frameType = _sessionInfo.FrameType(); 260 _frameType = _sessionInfo.FrameType();
271 _completeFrame = _sessionInfo.complete(); 261 _completeFrame = _sessionInfo.complete();
272 _missingFrame = !continuous; 262 _missingFrame = !continuous;
273 } 263 }
274 264
275 } // namespace webrtc 265 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/encoded_frame.cc ('k') | webrtc/modules/video_coding/generic_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698