| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  *  Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2  *  Copyright (c) 2011 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/main/source/decoding_state.h" | 11 #include "webrtc/modules/video_coding/main/source/decoding_state.h" | 
| 12 | 12 | 
| 13 #include "webrtc/modules/interface/module_common_types.h" | 13 #include "webrtc/modules/include/module_common_types.h" | 
| 14 #include "webrtc/modules/video_coding/main/source/frame_buffer.h" | 14 #include "webrtc/modules/video_coding/main/source/frame_buffer.h" | 
| 15 #include "webrtc/modules/video_coding/main/source/jitter_buffer_common.h" | 15 #include "webrtc/modules/video_coding/main/source/jitter_buffer_common.h" | 
| 16 #include "webrtc/modules/video_coding/main/source/packet.h" | 16 #include "webrtc/modules/video_coding/main/source/packet.h" | 
| 17 | 17 | 
| 18 namespace webrtc { | 18 namespace webrtc { | 
| 19 | 19 | 
| 20 VCMDecodingState::VCMDecodingState() | 20 VCMDecodingState::VCMDecodingState() | 
| 21     : sequence_num_(0), | 21     : sequence_num_(0), | 
| 22       time_stamp_(0), | 22       time_stamp_(0), | 
| 23       picture_id_(kNoPictureId), | 23       picture_id_(kNoPictureId), | 
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 214   if (temporal_id != 0) | 214   if (temporal_id != 0) | 
| 215     return false; | 215     return false; | 
| 216   return (static_cast<uint8_t>(tl0_pic_id_ + 1) == tl0_pic_id); | 216   return (static_cast<uint8_t>(tl0_pic_id_ + 1) == tl0_pic_id); | 
| 217 } | 217 } | 
| 218 | 218 | 
| 219 bool VCMDecodingState::UsingPictureId(const VCMFrameBuffer* frame) const { | 219 bool VCMDecodingState::UsingPictureId(const VCMFrameBuffer* frame) const { | 
| 220   return (frame->PictureId() != kNoPictureId && picture_id_ != kNoPictureId); | 220   return (frame->PictureId() != kNoPictureId && picture_id_ != kNoPictureId); | 
| 221 } | 221 } | 
| 222 | 222 | 
| 223 }  // namespace webrtc | 223 }  // namespace webrtc | 
| OLD | NEW | 
|---|