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

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

Issue 1413333002: system_wrappers: rename interface -> include (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased again! 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
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 <math.h> 11 #include <math.h>
12 #include <string.h> 12 #include <string.h>
13 13
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "webrtc/base/scoped_ptr.h" 15 #include "webrtc/base/scoped_ptr.h"
16 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" 16 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
17 #include "webrtc/system_wrappers/interface/tick_util.h" 17 #include "webrtc/system_wrappers/include/tick_util.h"
18 #include "webrtc/test/testsupport/fileutils.h" 18 #include "webrtc/test/testsupport/fileutils.h"
19 #include "webrtc/video_frame.h" 19 #include "webrtc/video_frame.h"
20 20
21 namespace webrtc { 21 namespace webrtc {
22 22
23 int PrintBuffer(const uint8_t* buffer, int width, int height, int stride) { 23 int PrintBuffer(const uint8_t* buffer, int width, int height, int stride) {
24 if (buffer == NULL) 24 if (buffer == NULL)
25 return -1; 25 return -1;
26 int k; 26 int k;
27 const uint8_t* tmp_buffer = buffer; 27 const uint8_t* tmp_buffer = buffer;
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 Calc16ByteAlignedStride(width, &stride_y, &stride_uv); 340 Calc16ByteAlignedStride(width, &stride_y, &stride_uv);
341 EXPECT_EQ(128, stride_y); 341 EXPECT_EQ(128, stride_y);
342 EXPECT_EQ(64, stride_uv); 342 EXPECT_EQ(64, stride_uv);
343 width = 127; 343 width = 127;
344 Calc16ByteAlignedStride(width, &stride_y, &stride_uv); 344 Calc16ByteAlignedStride(width, &stride_y, &stride_uv);
345 EXPECT_EQ(128, stride_y); 345 EXPECT_EQ(128, stride_y);
346 EXPECT_EQ(64, stride_uv); 346 EXPECT_EQ(64, stride_uv);
347 } 347 }
348 348
349 } // namespace 349 } // namespace
OLDNEW
« no previous file with comments | « webrtc/common_video/interface/video_frame_buffer.h ('k') | webrtc/common_video/libyuv/scaler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698