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

Unified Diff: media/base/yuv_convert.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/yuv_convert.cc
diff --git a/media/base/yuv_convert.cc b/media/base/yuv_convert.cc
index 22f1a2409bc2f3d36bbc74d5bfe6cb3cbed6c90a..fe8d5bebed3fcacdeec4e73e5536761458833998 100644
--- a/media/base/yuv_convert.cc
+++ b/media/base/yuv_convert.cc
@@ -23,8 +23,6 @@
#include "media/base/simd/convert_rgb_to_yuv.h"
#include "media/base/simd/convert_yuv_to_rgb.h"
#include "media/base/simd/filter_yuv.h"
-#include "media/base/yuv_convert_internal.h"
-#include "media/base/yuv_row.h"
#if defined(ARCH_CPU_X86_FAMILY)
#if defined(_MSC_VER)
@@ -343,7 +341,24 @@ void ConvertYUY2ToYUV(const uint8* src,
uint8* vplane,
int width,
int height) {
- ConvertYUY2ToYUV_C(src, yplane, uplane, vplane, width, 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;
+ }
+ }
}
void ConvertYUVToRGB32(const uint8* yplane,

Powered by Google App Engine
This is Rietveld 408576698