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

Unified Diff: media/base/yuv_row.h

Issue 174442: mmx for linux yuv convert function.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/yuv_convert.cc ('k') | media/base/yuv_row_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/yuv_row.h
===================================================================
--- media/base/yuv_row.h (revision 24903)
+++ media/base/yuv_row.h (working copy)
@@ -5,13 +5,14 @@
// yuv_row internal functions to handle YUV conversion and scaling to RGB.
// These functions are used from both yuv_convert.cc and yuv_scale.cc.
+// TODO(fbarchard): Write function that can handle rotation and scaling.
+
#ifndef MEDIA_BASE_YUV_ROW_H_
#define MEDIA_BASE_YUV_ROW_H_
#include "base/basictypes.h"
-namespace media {
-
+extern "C" {
// Can only do 1x.
// This is the second fastest of the scalers.
void FastConvertYUVToRGB32Row(const uint8* y_buf,
@@ -59,11 +60,13 @@
uint8* rgb_buf,
int width,
int scaled_dx);
+} // extern "C"
-// MMX for Windows; C++ for other platforms.
-#ifndef USE_MMX
+#if !defined(USE_MMX)
#if defined(_MSC_VER)
#define USE_MMX 1
+#elif defined(OS_LINUX) && !defined(ARCH_CPU_X86_64)
+#define USE_MMX 1
#else
#define USE_MMX 0
#endif
@@ -79,7 +82,5 @@
#define EMMS()
#endif
-} // namespace media
-
#endif // MEDIA_BASE_YUV_ROW_H_
« no previous file with comments | « media/base/yuv_convert.cc ('k') | media/base/yuv_row_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698