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

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

Issue 2517173004: Move VideoFrame and related declarations to webrtc/api/video. (Closed)
Patch Set: Make rotation check clearer. Created 3 years, 11 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/libyuv_unittest.cc ('k') | webrtc/common_video/rotation.h » ('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
11 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" 11 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
12 12
13 #include <string.h> 13 #include <string.h>
14 14
15 #include "webrtc/base/checks.h" 15 #include "webrtc/base/checks.h"
16 // TODO(nisse): Only needed for the deprecated ConvertToI420.
17 #include "webrtc/api/video/i420_buffer.h"
16 18
17 // NOTE(ajm): Path provided by gyp. 19 // NOTE(ajm): Path provided by gn.
18 #include "libyuv.h" // NOLINT 20 #include "libyuv.h" // NOLINT
19 21
20 namespace webrtc { 22 namespace webrtc {
21 23
22 VideoType RawVideoTypeToCommonVideoVideoType(RawVideoType type) { 24 VideoType RawVideoTypeToCommonVideoVideoType(RawVideoType type) {
23 switch (type) { 25 switch (type) {
24 case kVideoI420: 26 case kVideoI420:
25 return kI420; 27 return kI420;
26 case kVideoIYUV: 28 case kVideoIYUV:
27 return kIYUV; 29 return kIYUV;
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 src_v, src_uv_width, 442 src_v, src_uv_width,
441 src_width, src_height, 443 src_width, src_height,
442 dst_y, dst_stride_y, 444 dst_y, dst_stride_y,
443 dst_u, dst_stride_u, 445 dst_u, dst_stride_u,
444 dst_v, dst_stride_v, 446 dst_v, dst_stride_v,
445 dst_width, dst_height, 447 dst_width, dst_height,
446 libyuv::kFilterBox); 448 libyuv::kFilterBox);
447 } 449 }
448 450
449 } // namespace webrtc 451 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/common_video/libyuv/libyuv_unittest.cc ('k') | webrtc/common_video/rotation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698