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

Side by Side Diff: media/base/yuv_convert.h

Issue 12213029: Lift MEDIA_MMX_INTRINSICS_AVAILABLE definition to header and use it to condition media_unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Completely exclude FilterYUVRows_MMX tests on win64 Created 7 years, 10 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 | « no previous file | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef MEDIA_BASE_YUV_CONVERT_H_ 5 #ifndef MEDIA_BASE_YUV_CONVERT_H_
6 #define MEDIA_BASE_YUV_CONVERT_H_ 6 #define MEDIA_BASE_YUV_CONVERT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 // Visual Studio 2010 does not support MMX intrinsics on x64.
11 // Some win64 yuv_convert code paths use SSE+MMX yasm, so without rewriting
12 // them, we use yasm EmptyRegisterState_MMX in place of _mm_empty() or
13 // hide the versions implemented with heavy use of MMX intrinsics.
14 // TODO(wolenetz): Use MMX intrinsics when compiling win64 with Visual
15 // Studio 2012? http://crbug.com/173450
16 #if !(defined(ARCH_CPU_X86_64) && defined(COMPILER_MSVC))
17 #define MEDIA_MMX_INTRINSICS_AVAILABLE
18 #endif
19
10 namespace media { 20 namespace media {
11 21
12 // Type of YUV surface. 22 // Type of YUV surface.
13 // The value of these enums matter as they are used to shift vertical indices. 23 // The value of these enums matter as they are used to shift vertical indices.
14 enum YUVType { 24 enum YUVType {
15 YV16 = 0, // YV16 is half width and full height chroma channels. 25 YV16 = 0, // YV16 is half width and full height chroma channels.
16 YV12 = 1, // YV12 is half width and half height chroma channels. 26 YV12 = 1, // YV12 is half width and half height chroma channels.
17 }; 27 };
18 28
19 // Mirror means flip the image horizontally, as in looking in a mirror. 29 // Mirror means flip the image horizontally, as in looking in a mirror.
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 uint8* vplane, 129 uint8* vplane,
120 int width, 130 int width,
121 int height); 131 int height);
122 132
123 // Empty SIMD register state after calling optimized scaler functions. 133 // Empty SIMD register state after calling optimized scaler functions.
124 void EmptyRegisterState(); 134 void EmptyRegisterState();
125 135
126 } // namespace media 136 } // namespace media
127 137
128 #endif // MEDIA_BASE_YUV_CONVERT_H_ 138 #endif // MEDIA_BASE_YUV_CONVERT_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/yuv_convert.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698