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

Side by Side Diff: media/base/simd/convert_yuv_to_rgb_x86.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/simd/convert_rgb_to_yuv_unittest.cc ('k') | media/base/yuv_convert.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 #if defined(_MSC_VER) 5 #if defined(_MSC_VER)
6 #include <intrin.h> 6 #include <intrin.h>
7 #else 7 #else
8 #include <mmintrin.h> 8 #include <mmintrin.h>
9 #endif 9 #endif
10 10
11 #include "media/base/cpu_features.h"
12 #include "media/base/simd/convert_yuv_to_rgb.h" 11 #include "media/base/simd/convert_yuv_to_rgb.h"
13 #include "media/base/yuv_convert.h" 12 #include "media/base/yuv_convert.h"
14 13
15 namespace media { 14 namespace media {
16 15
17 void ConvertYUVToRGB32_MMX(const uint8* yplane, 16 void ConvertYUVToRGB32_MMX(const uint8* yplane,
18 const uint8* uplane, 17 const uint8* uplane,
19 const uint8* vplane, 18 const uint8* vplane,
20 uint8* rgbframe, 19 uint8* rgbframe,
21 int width, 20 int width,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 u_ptr, 61 u_ptr,
63 v_ptr, 62 v_ptr,
64 rgb_row, 63 rgb_row,
65 width); 64 width);
66 } 65 }
67 66
68 _mm_empty(); 67 _mm_empty();
69 } 68 }
70 69
71 } // namespace media 70 } // namespace media
OLDNEW
« no previous file with comments | « media/base/simd/convert_rgb_to_yuv_unittest.cc ('k') | media/base/yuv_convert.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698