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

Side by Side Diff: webrtc/modules/video_coding/main/source/session_info.cc

Issue 1409753007: Reland of "Change type of pid_diff (int16_t -> uint8_t) according to updates in RTP payload profile… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: also update include/module_common_types.h Created 5 years, 1 month 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
« no previous file with comments | « webrtc/modules/video_coding/main/source/jitter_buffer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/main/source/jitter_buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698