OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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/base/checks.h" | 11 #include "webrtc/modules/video_coding/frame_object.h" |
12 #include "webrtc/common_video/h264/h264_common.h" | 12 #include "webrtc/common_video/h264/h264_common.h" |
13 #include "webrtc/modules/video_coding/frame_object.h" | |
14 #include "webrtc/modules/video_coding/packet_buffer.h" | 13 #include "webrtc/modules/video_coding/packet_buffer.h" |
| 14 #include "webrtc/rtc_base/checks.h" |
15 | 15 |
16 namespace webrtc { | 16 namespace webrtc { |
17 namespace video_coding { | 17 namespace video_coding { |
18 | 18 |
19 FrameObject::FrameObject() | 19 FrameObject::FrameObject() |
20 : picture_id(0), | 20 : picture_id(0), |
21 spatial_layer(0), | 21 spatial_layer(0), |
22 timestamp(0), | 22 timestamp(0), |
23 num_references(0), | 23 num_references(0), |
24 inter_layer_predicted(false) {} | 24 inter_layer_predicted(false) {} |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 rtc::Optional<RTPVideoTypeHeader> RtpFrameObject::GetCodecHeader() const { | 188 rtc::Optional<RTPVideoTypeHeader> RtpFrameObject::GetCodecHeader() const { |
189 rtc::CritScope lock(&packet_buffer_->crit_); | 189 rtc::CritScope lock(&packet_buffer_->crit_); |
190 VCMPacket* packet = packet_buffer_->GetPacket(first_seq_num_); | 190 VCMPacket* packet = packet_buffer_->GetPacket(first_seq_num_); |
191 if (!packet) | 191 if (!packet) |
192 return rtc::Optional<RTPVideoTypeHeader>(); | 192 return rtc::Optional<RTPVideoTypeHeader>(); |
193 return rtc::Optional<RTPVideoTypeHeader>(packet->video_header.codecHeader); | 193 return rtc::Optional<RTPVideoTypeHeader>(packet->video_header.codecHeader); |
194 } | 194 } |
195 | 195 |
196 } // namespace video_coding | 196 } // namespace video_coding |
197 } // namespace webrtc | 197 } // namespace webrtc |
OLD | NEW |