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

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

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
Index: media/base/simd/convert_rgb_to_yuv_c.cc
diff --git a/media/base/yuv_convert_c.cc b/media/base/simd/convert_rgb_to_yuv_c.cc
similarity index 78%
rename from media/base/yuv_convert_c.cc
rename to media/base/simd/convert_rgb_to_yuv_c.cc
index 39ec3cf23ce20dee4efc9b561c75bd0ade009555..ae4c7313cd701cafcdf97286c2242e52e40d070d 100644
--- a/media/base/yuv_convert_c.cc
+++ b/media/base/simd/convert_rgb_to_yuv_c.cc
@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "media/base/yuv_convert.h"
-#include "media/base/yuv_convert_internal.h"
+#include "media/base/simd/convert_rgb_to_yuv.h"
namespace media {
@@ -80,30 +79,4 @@ void ConvertRGB24ToYUV_C(const uint8* rgbframe,
}
}
-void ConvertYUY2ToYUV_C(const uint8* src,
- uint8* yplane,
- uint8* uplane,
- uint8* vplane,
- int width,
- int height) {
- for (int i = 0; i < height / 2; ++i) {
- for (int j = 0; j < (width / 2); ++j) {
- yplane[0] = src[0];
- *uplane = src[1];
- yplane[1] = src[2];
- *vplane = src[3];
- src += 4;
- yplane += 2;
- uplane++;
- vplane++;
- }
- for (int j = 0; j < (width / 2); ++j) {
- yplane[0] = src[0];
- yplane[1] = src[2];
- src += 4;
- yplane += 2;
- }
- }
-}
-
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698