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

Side by Side Diff: webrtc/common_video/libyuv/webrtc_libyuv.cc

Issue 2851563003: Move CoreVideoFrameBuffer from webrtc/common_video/ to webrtc/sdk/objc/ (Closed)
Patch Set: Use = default Created 3 years, 7 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 | « webrtc/common_video/libyuv/include/webrtc_libyuv.h ('k') | webrtc/sdk/BUILD.gn » ('j') | 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 dst_width, dst_height, 360 dst_width, dst_height,
361 libyuv::kFilterBox); 361 libyuv::kFilterBox);
362 362
363 // Merge the UV planes into the destination. 363 // Merge the UV planes into the destination.
364 libyuv::MergeUVPlane(dst_u, dst_chroma_width, 364 libyuv::MergeUVPlane(dst_u, dst_chroma_width,
365 dst_v, dst_chroma_width, 365 dst_v, dst_chroma_width,
366 dst_uv, dst_stride_uv, 366 dst_uv, dst_stride_uv,
367 dst_chroma_width, dst_chroma_height); 367 dst_chroma_width, dst_chroma_height);
368 } 368 }
369 369
370 NV12ToI420Scaler::NV12ToI420Scaler() = default;
371 NV12ToI420Scaler::~NV12ToI420Scaler() = default;
372
370 void NV12ToI420Scaler::NV12ToI420Scale( 373 void NV12ToI420Scaler::NV12ToI420Scale(
371 const uint8_t* src_y, int src_stride_y, 374 const uint8_t* src_y, int src_stride_y,
372 const uint8_t* src_uv, int src_stride_uv, 375 const uint8_t* src_uv, int src_stride_uv,
373 int src_width, int src_height, 376 int src_width, int src_height,
374 uint8_t* dst_y, int dst_stride_y, 377 uint8_t* dst_y, int dst_stride_y,
375 uint8_t* dst_u, int dst_stride_u, 378 uint8_t* dst_u, int dst_stride_u,
376 uint8_t* dst_v, int dst_stride_v, 379 uint8_t* dst_v, int dst_stride_v,
377 int dst_width, int dst_height) { 380 int dst_width, int dst_height) {
378 if (src_width == dst_width && src_height == dst_height) { 381 if (src_width == dst_width && src_height == dst_height) {
379 // No scaling. 382 // No scaling.
(...skipping 30 matching lines...) Expand all
410 src_v, src_uv_width, 413 src_v, src_uv_width,
411 src_width, src_height, 414 src_width, src_height,
412 dst_y, dst_stride_y, 415 dst_y, dst_stride_y,
413 dst_u, dst_stride_u, 416 dst_u, dst_stride_u,
414 dst_v, dst_stride_v, 417 dst_v, dst_stride_v,
415 dst_width, dst_height, 418 dst_width, dst_height,
416 libyuv::kFilterBox); 419 libyuv::kFilterBox);
417 } 420 }
418 421
419 } // namespace webrtc 422 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/common_video/libyuv/include/webrtc_libyuv.h ('k') | webrtc/sdk/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698