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

Unified Diff: media/base/simd/convert_rgb_to_yuv.h

Issue 7888012: Reorganize YUV scalers (Continued) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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/base/simd/convert_rgb_to_yuv.cc » ('j') | media/media.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/simd/convert_rgb_to_yuv.h
diff --git a/media/base/simd/convert_rgb_to_yuv.h b/media/base/simd/convert_rgb_to_yuv.h
index e16fa51526ef9b7a3f88f3dfb608a53dd5377351..03fe1140c47990cc65f20eeb2b867d191cbd77a8 100644
--- a/media/base/simd/convert_rgb_to_yuv.h
+++ b/media/base/simd/convert_rgb_to_yuv.h
@@ -35,6 +35,52 @@ void ConvertRGB24ToYUV_SSSE3(const uint8* rgbframe,
int ystride,
int uvstride);
+// SSE2 version of converting RGBA to YV12.
+void ConvertRGB32ToYUV_SSE2(const uint8* rgbframe,
+ uint8* yplane,
+ uint8* uplane,
+ uint8* vplane,
+ int width,
+ int height,
+ int rgbstride,
+ int ystride,
+ int uvstride);
+
+// This is a C reference implementation of the above routine.
+// This method should only be used in unit test.
+// TODO(hclam): Should use this as the C version of RGB to YUV.
+void ConvertRGB32ToYUV_SSE2_Reference(const uint8* rgbframe,
+ uint8* yplane,
+ uint8* uplane,
+ uint8* vplane,
+ int width,
+ int height,
+ int rgbstride,
+ int ystride,
+ int uvstride);
+
+// C version of converting RGBA to YV12.
+void ConvertRGB32ToYUV_C(const uint8* rgbframe,
+ uint8* yplane,
+ uint8* uplane,
+ uint8* vplane,
+ int width,
+ int height,
+ int rgbstride,
+ int ystride,
+ int uvstride);
+
+// C version of converting RGB24 to YV12.
+void ConvertRGB24ToYUV_C(const uint8* rgbframe,
+ uint8* yplane,
+ uint8* uplane,
+ uint8* vplane,
+ int width,
+ int height,
+ int rgbstride,
+ int ystride,
+ int uvstride);
+
} // namespace media
#endif // MEDIA_BASE_SIMD_CONVERT_RGB_TO_YUV_H_
« no previous file with comments | « no previous file | media/base/simd/convert_rgb_to_yuv.cc » ('j') | media/media.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698