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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 packets_.front().codecSpecificHeader.codec != kRtpVideoVp9 || | 119 packets_.front().codecSpecificHeader.codec != kRtpVideoVp9 || |
120 packets_.front().codecSpecificHeader.codecHeader.VP9.flexible_mode) { | 120 packets_.front().codecSpecificHeader.codecHeader.VP9.flexible_mode) { |
121 return; | 121 return; |
122 } | 122 } |
123 packets_.front().codecSpecificHeader.codecHeader.VP9.temporal_idx = | 123 packets_.front().codecSpecificHeader.codecHeader.VP9.temporal_idx = |
124 gof_info.temporal_idx[idx]; | 124 gof_info.temporal_idx[idx]; |
125 packets_.front().codecSpecificHeader.codecHeader.VP9.temporal_up_switch = | 125 packets_.front().codecSpecificHeader.codecHeader.VP9.temporal_up_switch = |
126 gof_info.temporal_up_switch[idx]; | 126 gof_info.temporal_up_switch[idx]; |
127 packets_.front().codecSpecificHeader.codecHeader.VP9.num_ref_pics = | 127 packets_.front().codecSpecificHeader.codecHeader.VP9.num_ref_pics = |
128 gof_info.num_ref_pics[idx]; | 128 gof_info.num_ref_pics[idx]; |
129 for (size_t i = 0; i < gof_info.num_ref_pics[idx]; ++i) { | 129 for (uint8_t i = 0; i < gof_info.num_ref_pics[idx]; ++i) { |
130 packets_.front().codecSpecificHeader.codecHeader.VP9.pid_diff[i] = | 130 packets_.front().codecSpecificHeader.codecHeader.VP9.pid_diff[i] = |
131 gof_info.pid_diff[idx][i]; | 131 gof_info.pid_diff[idx][i]; |
132 } | 132 } |
133 } | 133 } |
134 | 134 |
135 void VCMSessionInfo::Reset() { | 135 void VCMSessionInfo::Reset() { |
136 session_nack_ = false; | 136 session_nack_ = false; |
137 complete_ = false; | 137 complete_ = false; |
138 decodable_ = false; | 138 decodable_ = false; |
139 frame_type_ = kVideoFrameDelta; | 139 frame_type_ = kVideoFrameDelta; |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 if (empty_seq_num_high_ == -1) | 571 if (empty_seq_num_high_ == -1) |
572 empty_seq_num_high_ = seq_num; | 572 empty_seq_num_high_ = seq_num; |
573 else | 573 else |
574 empty_seq_num_high_ = LatestSequenceNumber(seq_num, empty_seq_num_high_); | 574 empty_seq_num_high_ = LatestSequenceNumber(seq_num, empty_seq_num_high_); |
575 if (empty_seq_num_low_ == -1 || IsNewerSequenceNumber(empty_seq_num_low_, | 575 if (empty_seq_num_low_ == -1 || IsNewerSequenceNumber(empty_seq_num_low_, |
576 seq_num)) | 576 seq_num)) |
577 empty_seq_num_low_ = seq_num; | 577 empty_seq_num_low_ = seq_num; |
578 } | 578 } |
579 | 579 |
580 } // namespace webrtc | 580 } // namespace webrtc |
OLD | NEW |