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

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

Issue 2694113002: Delete media/base/yuv_convert and dependents. Prefer libyuv. (Closed)
Patch Set: Fix media_unittests. Created 3 years, 10 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 | « media/base/simd/convert_yuv_to_rgb_sse.asm ('k') | media/base/simd/convert_yuva_to_argb_mmx.asm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/simd/convert_yuv_to_rgb_x86.cc
diff --git a/media/base/simd/convert_yuv_to_rgb_x86.cc b/media/base/simd/convert_yuv_to_rgb_x86.cc
deleted file mode 100644
index a06799bfdf6bf714a4da94f0ce0c10809b3d6997..0000000000000000000000000000000000000000
--- a/media/base/simd/convert_yuv_to_rgb_x86.cc
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <stdint.h>
-
-#if defined(_MSC_VER)
-#include <intrin.h>
-#else
-#include <mmintrin.h>
-#endif
-
-#include "media/base/simd/convert_yuv_to_rgb.h"
-#include "media/base/yuv_convert.h"
-
-namespace media {
-
-void ConvertYUVAToARGB_MMX(const uint8_t* yplane,
- const uint8_t* uplane,
- const uint8_t* vplane,
- const uint8_t* aplane,
- uint8_t* rgbframe,
- int width,
- int height,
- int ystride,
- int uvstride,
- int astride,
- int rgbstride,
- YUVType yuv_type) {
- unsigned int y_shift = GetVerticalShift(yuv_type);
- for (int y = 0; y < height; ++y) {
- uint8_t* rgb_row = rgbframe + y * rgbstride;
- const uint8_t* y_ptr = yplane + y * ystride;
- const uint8_t* u_ptr = uplane + (y >> y_shift) * uvstride;
- const uint8_t* v_ptr = vplane + (y >> y_shift) * uvstride;
- const uint8_t* a_ptr = aplane + y * astride;
-
- ConvertYUVAToARGBRow_MMX(y_ptr,
- u_ptr,
- v_ptr,
- a_ptr,
- rgb_row,
- width,
- GetLookupTable(yuv_type));
- }
-
- EmptyRegisterState();
-}
-
-void ConvertYUVToRGB32_SSE(const uint8_t* yplane,
- const uint8_t* uplane,
- const uint8_t* vplane,
- uint8_t* rgbframe,
- int width,
- int height,
- int ystride,
- int uvstride,
- int rgbstride,
- YUVType yuv_type) {
- unsigned int y_shift = GetVerticalShift(yuv_type);
- for (int y = 0; y < height; ++y) {
- uint8_t* rgb_row = rgbframe + y * rgbstride;
- const uint8_t* y_ptr = yplane + y * ystride;
- const uint8_t* u_ptr = uplane + (y >> y_shift) * uvstride;
- const uint8_t* v_ptr = vplane + (y >> y_shift) * uvstride;
-
- ConvertYUVToRGB32Row_SSE(y_ptr,
- u_ptr,
- v_ptr,
- rgb_row,
- width,
- GetLookupTable(yuv_type));
- }
-
- EmptyRegisterState();
-}
-
-} // namespace media
« no previous file with comments | « media/base/simd/convert_yuv_to_rgb_sse.asm ('k') | media/base/simd/convert_yuva_to_argb_mmx.asm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698