| 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
|
|
|