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

Unified Diff: media/base/simd/convert_rgb_to_yuv_ssse3.cc

Issue 10837118: Dead code elimination: scythe.chrome_functions:segment.path %media% edition, round 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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
Index: media/base/simd/convert_rgb_to_yuv_ssse3.cc
diff --git a/media/base/simd/convert_rgb_to_yuv_ssse3.cc b/media/base/simd/convert_rgb_to_yuv_ssse3.cc
index 10eff358828e7fe25059216b4aa4c80dc0991948..e956926a1f5de6807d2378f8ad451880c17d3466 100644
--- a/media/base/simd/convert_rgb_to_yuv_ssse3.cc
+++ b/media/base/simd/convert_rgb_to_yuv_ssse3.cc
@@ -18,23 +18,6 @@ void ConvertRGB32ToYUV_SSSE3(const uint8* rgbframe,
int rgbstride,
int ystride,
int uvstride) {
-#ifdef ENABLE_SUBSAMPLING
- for (; height >= 2; height -= 2) {
- ConvertARGBToYUVEven_SSSE3(rgbframe, yplane, uplane, vplane, width);
- rgbframe += rgbstride;
- yplane += ystride;
-
- ConvertARGBToYUVOdd_SSSE3(rgbframe, yplane, uplane, vplane, width);
- rgbframe += rgbstride;
- yplane += ystride;
-
- uplane += uvstride;
- vplane += uvstride;
- }
-
- if (height)
- ConvertARGBToYUVEven_SSSE3(rgbframe, yplane, uplane, vplane, width);
-#else
for (; height >= 2; height -= 2) {
ConvertARGBToYUVRow_SSSE3(rgbframe, yplane, uplane, vplane, width);
rgbframe += rgbstride;
@@ -50,7 +33,6 @@ void ConvertRGB32ToYUV_SSSE3(const uint8* rgbframe,
if (height)
ConvertARGBToYUVRow_SSSE3(rgbframe, yplane, uplane, vplane, width);
-#endif
}
void ConvertRGB24ToYUV_SSSE3(const uint8* rgbframe,
@@ -62,23 +44,6 @@ void ConvertRGB24ToYUV_SSSE3(const uint8* rgbframe,
int rgbstride,
int ystride,
int uvstride) {
-#ifdef ENABLE_SUBSAMPLING
- for (; height >= 2; height -= 2) {
- ConvertRGBToYUVEven_SSSE3(rgbframe, yplane, uplane, vplane, width);
- rgbframe += rgbstride;
- yplane += ystride;
-
- ConvertRGBToYUVOdd_SSSE3(rgbframe, yplane, uplane, vplane, width);
- rgbframe += rgbstride;
- yplane += ystride;
-
- uplane += uvstride;
- vplane += uvstride;
- }
-
- if (height)
- ConvertRGBToYUVEven_SSSE3(rgbframe, yplane, uplane, vplane, width);
-#else
for (; height >= 2; height -= 2) {
ConvertRGBToYUVRow_SSSE3(rgbframe, yplane, uplane, vplane, width);
rgbframe += rgbstride;
@@ -94,7 +59,6 @@ void ConvertRGB24ToYUV_SSSE3(const uint8* rgbframe,
if (height)
ConvertRGBToYUVRow_SSSE3(rgbframe, yplane, uplane, vplane, width);
-#endif
}
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698