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

Side by Side Diff: media/base/yuv_convert_unittest.cc

Issue 7888012: Reorganize YUV scalers (Continued) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/base_paths.h" 5 #include "base/base_paths.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "media/base/cpu_features.h" 9 #include "media/base/cpu_features.h"
10 #include "media/base/djb2.h" 10 #include "media/base/djb2.h"
11 #include "media/base/simd/convert_rgb_to_yuv.h"
11 #include "media/base/simd/convert_yuv_to_rgb.h" 12 #include "media/base/simd/convert_yuv_to_rgb.h"
12 #include "media/base/yuv_convert.h" 13 #include "media/base/yuv_convert.h"
13 #include "media/base/yuv_convert_internal.h"
14 #include "media/base/yuv_row.h"
15 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
16 15
17 // Size of raw image. 16 // Size of raw image.
18 static const int kSourceWidth = 640; 17 static const int kSourceWidth = 640;
19 static const int kSourceHeight = 360; 18 static const int kSourceHeight = 360;
20 static const int kSourceYSize = kSourceWidth * kSourceHeight; 19 static const int kSourceYSize = kSourceWidth * kSourceHeight;
21 static const int kSourceUOffset = kSourceYSize; 20 static const int kSourceUOffset = kSourceYSize;
22 static const int kSourceVOffset = kSourceYSize * 5 / 4; 21 static const int kSourceVOffset = kSourceYSize * 5 / 4;
23 static const int kScaledWidth = 1024; 22 static const int kScaledWidth = 1024;
24 static const int kScaledHeight = 768; 23 static const int kScaledHeight = 768;
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 kSourceDx); 680 kSourceDx);
682 media::EmptyRegisterState(); 681 media::EmptyRegisterState();
683 EXPECT_EQ(0, memcmp(rgb_bytes_reference.get(), 682 EXPECT_EQ(0, memcmp(rgb_bytes_reference.get(),
684 rgb_bytes_converted.get(), 683 rgb_bytes_converted.get(),
685 kWidth * kBpp)); 684 kWidth * kBpp));
686 } 685 }
687 686
688 #endif // defined(ARCH_CPU_X86_64) 687 #endif // defined(ARCH_CPU_X86_64)
689 688
690 #endif // defined(ARCH_CPU_X86_FAMILY) 689 #endif // defined(ARCH_CPU_X86_FAMILY)
OLDNEW
« no previous file with comments | « media/base/yuv_convert_sse2.cc ('k') | media/base/yuv_row.h » ('j') | media/media.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698