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

Side by Side Diff: media/base/simd/convert_rgb_to_yuv_ssse3.cc

Issue 10537082: Remove duplicate CPU detection code; use base::CPU instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: int->bool Created 8 years, 6 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
« no previous file with comments | « media/base/cpu_features_x86.cc ('k') | media/base/simd/convert_rgb_to_yuv_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "media/base/simd/convert_rgb_to_yuv.h" 5 #include "media/base/simd/convert_rgb_to_yuv.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "media/base/cpu_features.h"
9 #include "media/base/simd/convert_rgb_to_yuv_ssse3.h" 8 #include "media/base/simd/convert_rgb_to_yuv_ssse3.h"
10 9
11 namespace media { 10 namespace media {
12 11
13 void ConvertRGB32ToYUV_SSSE3(const uint8* rgbframe, 12 void ConvertRGB32ToYUV_SSSE3(const uint8* rgbframe,
14 uint8* yplane, 13 uint8* yplane,
15 uint8* uplane, 14 uint8* uplane,
16 uint8* vplane, 15 uint8* vplane,
17 int width, 16 int width,
18 int height, 17 int height,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 uplane += uvstride; 91 uplane += uvstride;
93 vplane += uvstride; 92 vplane += uvstride;
94 } 93 }
95 94
96 if (height) 95 if (height)
97 ConvertRGBToYUVRow_SSSE3(rgbframe, yplane, uplane, vplane, width); 96 ConvertRGBToYUVRow_SSSE3(rgbframe, yplane, uplane, vplane, width);
98 #endif 97 #endif
99 } 98 }
100 99
101 } // namespace media 100 } // namespace media
OLDNEW
« no previous file with comments | « media/base/cpu_features_x86.cc ('k') | media/base/simd/convert_rgb_to_yuv_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698