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

Side by Side Diff: webrtc/api/video/i420_buffer.cc

Issue 2745193002: iOS: Add new RTCVideoSource interface (Closed)
Patch Set: Naming convention and remove unnecessary code. Created 3 years, 9 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
« no previous file with comments | « no previous file | webrtc/sdk/BUILD.gn » ('j') | webrtc/sdk/BUILD.gn » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 #include "webrtc/api/video/i420_buffer.h" 10 #include "webrtc/api/video/i420_buffer.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 } 173 }
174 int I420Buffer::StrideV() const { 174 int I420Buffer::StrideV() const {
175 return stride_v_; 175 return stride_v_;
176 } 176 }
177 177
178 void* I420Buffer::native_handle() const { 178 void* I420Buffer::native_handle() const {
179 return nullptr; 179 return nullptr;
180 } 180 }
181 181
182 rtc::scoped_refptr<VideoFrameBuffer> I420Buffer::NativeToI420Buffer() { 182 rtc::scoped_refptr<VideoFrameBuffer> I420Buffer::NativeToI420Buffer() {
183 RTC_NOTREACHED(); 183 return this;
184 return nullptr;
185 } 184 }
186 185
187 uint8_t* I420Buffer::MutableDataY() { 186 uint8_t* I420Buffer::MutableDataY() {
188 return const_cast<uint8_t*>(DataY()); 187 return const_cast<uint8_t*>(DataY());
189 } 188 }
190 uint8_t* I420Buffer::MutableDataU() { 189 uint8_t* I420Buffer::MutableDataU() {
191 return const_cast<uint8_t*>(DataU()); 190 return const_cast<uint8_t*>(DataU());
192 } 191 }
193 uint8_t* I420Buffer::MutableDataV() { 192 uint8_t* I420Buffer::MutableDataV() {
194 return const_cast<uint8_t*>(DataV()); 193 return const_cast<uint8_t*>(DataV());
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 src, 250 src,
252 (src.width() - crop_width) / 2, (src.height() - crop_height) / 2, 251 (src.width() - crop_width) / 2, (src.height() - crop_height) / 2,
253 crop_width, crop_height); 252 crop_width, crop_height);
254 } 253 }
255 254
256 void I420Buffer::ScaleFrom(const VideoFrameBuffer& src) { 255 void I420Buffer::ScaleFrom(const VideoFrameBuffer& src) {
257 CropAndScaleFrom(src, 0, 0, src.width(), src.height()); 256 CropAndScaleFrom(src, 0, 0, src.width(), src.height());
258 } 257 }
259 258
260 } // namespace webrtc 259 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/sdk/BUILD.gn » ('j') | webrtc/sdk/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698