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

Unified Diff: media/base/yuv_convert.cc

Issue 10952006: [MIPS] Add support in media.gyp for building on MIPS architecture. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/media.gyp » ('j') | media/media.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/yuv_convert.cc
diff --git a/media/base/yuv_convert.cc b/media/base/yuv_convert.cc
index 094fe79410cd834ffb2b078cd99b0098e2d8814e..06631fdbd46bbd93b9748b481bdff17f855a1202 100644
--- a/media/base/yuv_convert.cc
+++ b/media/base/yuv_convert.cc
@@ -447,6 +447,9 @@ void ConvertRGB32ToYUV(const uint8* rgbframe,
// For ARM processors, always use C version.
// TODO(hclam): Implement a NEON version.
convert_proc = &ConvertRGB32ToYUV_C;
+#elif defined(ARCH_CPU_MIPS_FAMILY)
+ // For MIPS processors, always use C version.
+ convert_proc = &ConvertRGB32ToYUV_C;
#else
// TODO(hclam): Switch to SSSE3 version when the cyan problem is solved.
// See: crbug.com/100462
@@ -474,6 +477,9 @@ void ConvertRGB24ToYUV(const uint8* rgbframe,
#if defined(ARCH_CPU_ARM_FAMILY)
ConvertRGB24ToYUV_C(rgbframe, yplane, uplane, vplane, width, height,
scherkus (not reviewing) 2012/09/19 16:57:54 ditto
petarj 2012/09/20 00:18:25 Done.
rgbstride, ystride, uvstride);
+#elif defined(ARCH_CPU_MIPS_FAMILY)
+ ConvertRGB24ToYUV_C(rgbframe, yplane, uplane, vplane, width, height,
+ rgbstride, ystride, uvstride);
#else
static void (*convert_proc)(const uint8*, uint8*, uint8*, uint8*,
int, int, int, int, int) = NULL;
@@ -545,6 +551,9 @@ void ConvertYUVToRGB32(const uint8* yplane,
#if defined(ARCH_CPU_ARM_FAMILY)
ConvertYUVToRGB32_C(yplane, uplane, vplane, rgbframe,
scherkus (not reviewing) 2012/09/19 16:57:54 ditto
petarj 2012/09/20 00:18:25 Done.
width, height, ystride, uvstride, rgbstride, yuv_type);
+#elif defined(ARCH_CPU_MIPS_FAMILY)
+ ConvertYUVToRGB32_C(yplane, uplane, vplane, rgbframe,
+ width, height, ystride, uvstride, rgbstride, yuv_type);
#else
static ConvertYUVToRGB32Proc convert_proc = NULL;
if (!convert_proc) {
« no previous file with comments | « no previous file | media/media.gyp » ('j') | media/media.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698