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

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

Issue 1328113004: Work on flexible mode and screen sharing. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Implement general screenshare layer logic and unittests. Created 5 years, 3 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 _codecSpecificInfo.codecSpecific.VP9.spatial_idx = 0; 140 _codecSpecificInfo.codecSpecific.VP9.spatial_idx = 0;
141 _codecSpecificInfo.codecSpecific.VP9.gof_idx = 0; 141 _codecSpecificInfo.codecSpecific.VP9.gof_idx = 0;
142 _codecSpecificInfo.codecSpecific.VP9.inter_layer_predicted = false; 142 _codecSpecificInfo.codecSpecific.VP9.inter_layer_predicted = false;
143 _codecSpecificInfo.codecSpecific.VP9.tl0_pic_idx = -1; 143 _codecSpecificInfo.codecSpecific.VP9.tl0_pic_idx = -1;
144 _codecSpecificInfo.codecType = kVideoCodecVP9; 144 _codecSpecificInfo.codecType = kVideoCodecVP9;
145 } 145 }
146 _codecSpecificInfo.codecSpecific.VP9.inter_pic_predicted = 146 _codecSpecificInfo.codecSpecific.VP9.inter_pic_predicted =
147 header->codecHeader.VP9.inter_pic_predicted; 147 header->codecHeader.VP9.inter_pic_predicted;
148 _codecSpecificInfo.codecSpecific.VP9.flexible_mode = 148 _codecSpecificInfo.codecSpecific.VP9.flexible_mode =
149 header->codecHeader.VP9.flexible_mode; 149 header->codecHeader.VP9.flexible_mode;
150 _codecSpecificInfo.codecSpecific.VP9.num_ref_pics =
151 header->codecHeader.VP9.num_ref_pics;
152 for (uint8_t r = 0; r < header->codecHeader.VP9.num_ref_pics; ++r) {
153 _codecSpecificInfo.codecSpecific.VP9.p_diff[r] =
154 header->codecHeader.VP9.pid_diff[r];
155 }
150 _codecSpecificInfo.codecSpecific.VP9.ss_data_available = 156 _codecSpecificInfo.codecSpecific.VP9.ss_data_available =
151 header->codecHeader.VP9.ss_data_available; 157 header->codecHeader.VP9.ss_data_available;
152 if (header->codecHeader.VP9.picture_id != kNoPictureId) { 158 if (header->codecHeader.VP9.picture_id != kNoPictureId) {
153 _codecSpecificInfo.codecSpecific.VP9.picture_id = 159 _codecSpecificInfo.codecSpecific.VP9.picture_id =
154 header->codecHeader.VP9.picture_id; 160 header->codecHeader.VP9.picture_id;
155 } 161 }
156 if (header->codecHeader.VP9.tl0_pic_idx != kNoTl0PicIdx) { 162 if (header->codecHeader.VP9.tl0_pic_idx != kNoTl0PicIdx) {
157 _codecSpecificInfo.codecSpecific.VP9.tl0_pic_idx = 163 _codecSpecificInfo.codecSpecific.VP9.tl0_pic_idx =
158 header->codecHeader.VP9.tl0_pic_idx; 164 header->codecHeader.VP9.tl0_pic_idx;
159 } 165 }
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 const std::vector<webrtc::FrameType>& frame_types, 262 const std::vector<webrtc::FrameType>& frame_types,
257 std::vector<VideoFrameType>* video_frame_types) { 263 std::vector<VideoFrameType>* video_frame_types) {
258 assert(video_frame_types); 264 assert(video_frame_types);
259 video_frame_types->reserve(frame_types.size()); 265 video_frame_types->reserve(frame_types.size());
260 for (size_t i = 0; i < frame_types.size(); ++i) { 266 for (size_t i = 0; i < frame_types.size(); ++i) {
261 (*video_frame_types)[i] = ConvertFrameType(frame_types[i]); 267 (*video_frame_types)[i] = ConvertFrameType(frame_types[i]);
262 } 268 }
263 } 269 }
264 270
265 } 271 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698