summaryrefslogtreecommitdiffstats
path: root/media/base/simd
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2014-08-26 22:23:43 -0700
committerCommit bot <commit-bot@chromium.org>2014-08-27 05:25:03 +0000
commit17e71b798adba6be1c3c96df6f891e730e8a89f9 (patch)
tree246433c611d6ce56485abda0ac6393179ab7fa55 /media/base/simd
parent77535977d457018848ddd946a9e31929908554c3 (diff)
downloadchromium_src-17e71b798adba6be1c3c96df6f891e730e8a89f9.zip
chromium_src-17e71b798adba6be1c3c96df6f891e730e8a89f9.tar.gz
chromium_src-17e71b798adba6be1c3c96df6f891e730e8a89f9.tar.bz2
Cleanup: Remove unneeded SSE2 checks and unused code.
BUG=349320 Review URL: https://codereview.chromium.org/459603003 Cr-Commit-Position: refs/heads/master@{#292100}
Diffstat (limited to 'media/base/simd')
-rw-r--r--media/base/simd/convert_yuv_to_rgb.h35
-rw-r--r--media/base/simd/convert_yuv_to_rgb_mmx.asm23
-rw-r--r--media/base/simd/convert_yuv_to_rgb_x86.cc28
3 files changed, 0 insertions, 86 deletions
diff --git a/media/base/simd/convert_yuv_to_rgb.h b/media/base/simd/convert_yuv_to_rgb.h
index 6c0a966..54337bc 100644
--- a/media/base/simd/convert_yuv_to_rgb.h
+++ b/media/base/simd/convert_yuv_to_rgb.h
@@ -63,17 +63,6 @@ MEDIA_EXPORT void ConvertYUVToRGB32_SSE(const uint8* yplane,
int rgbstride,
YUVType yuv_type);
-MEDIA_EXPORT void ConvertYUVToRGB32_MMX(const uint8* yplane,
- const uint8* uplane,
- const uint8* vplane,
- uint8* rgbframe,
- int width,
- int height,
- int ystride,
- int uvstride,
- int rgbstride,
- YUVType yuv_type);
-
MEDIA_EXPORT void ConvertYUVAToARGB_MMX(const uint8* yplane,
const uint8* uplane,
const uint8* vplane,
@@ -126,13 +115,6 @@ extern "C" {
// issue on at least Win64. The C-equivalent RowProc versions' prototypes
// include the same change to ptrdiff_t to reuse the typedefs.
-MEDIA_EXPORT void ConvertYUVToRGB32Row_MMX(const uint8* yplane,
- const uint8* uplane,
- const uint8* vplane,
- uint8* rgbframe,
- ptrdiff_t width,
- const int16 convert_table[1024][4]);
-
MEDIA_EXPORT void ConvertYUVAToARGBRow_MMX(const uint8* yplane,
const uint8* uplane,
const uint8* vplane,
@@ -148,14 +130,6 @@ MEDIA_EXPORT void ConvertYUVToRGB32Row_SSE(const uint8* yplane,
ptrdiff_t width,
const int16 convert_table[1024][4]);
-MEDIA_EXPORT void ScaleYUVToRGB32Row_MMX(const uint8* y_buf,
- const uint8* u_buf,
- const uint8* v_buf,
- uint8* rgb_buf,
- ptrdiff_t width,
- ptrdiff_t source_dx,
- const int16 convert_table[1024][4]);
-
MEDIA_EXPORT void ScaleYUVToRGB32Row_SSE(const uint8* y_buf,
const uint8* u_buf,
const uint8* v_buf,
@@ -173,15 +147,6 @@ MEDIA_EXPORT void ScaleYUVToRGB32Row_SSE2_X64(
ptrdiff_t source_dx,
const int16 convert_table[1024][4]);
-MEDIA_EXPORT void LinearScaleYUVToRGB32Row_MMX(
- const uint8* y_buf,
- const uint8* u_buf,
- const uint8* v_buf,
- uint8* rgb_buf,
- ptrdiff_t width,
- ptrdiff_t source_dx,
- const int16 convert_table[1024][4]);
-
MEDIA_EXPORT void LinearScaleYUVToRGB32Row_SSE(
const uint8* y_buf,
const uint8* u_buf,
diff --git a/media/base/simd/convert_yuv_to_rgb_mmx.asm b/media/base/simd/convert_yuv_to_rgb_mmx.asm
deleted file mode 100644
index 7395419..0000000
--- a/media/base/simd/convert_yuv_to_rgb_mmx.asm
+++ /dev/null
@@ -1,23 +0,0 @@
-; Copyright (c) 2011 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 "third_party/x86inc/x86inc.asm"
-
-;
-; This file uses MMX instructions.
-;
- SECTION_TEXT
- CPU MMX
-
-; Use movq to save the output.
-%define MOVQ movq
-
-; extern "C" void ConvertYUVToRGB32Row_MMX(const uint8* y_buf,
-; const uint8* u_buf,
-; const uint8* v_buf,
-; uint8* rgb_buf,
-; ptrdiff_t width,
-; const int16 convert_table[1024][4]);
-%define SYMBOL ConvertYUVToRGB32Row_MMX
-%include "convert_yuv_to_rgb_mmx.inc"
diff --git a/media/base/simd/convert_yuv_to_rgb_x86.cc b/media/base/simd/convert_yuv_to_rgb_x86.cc
index 969890d..2e6f5e3 100644
--- a/media/base/simd/convert_yuv_to_rgb_x86.cc
+++ b/media/base/simd/convert_yuv_to_rgb_x86.cc
@@ -14,34 +14,6 @@
namespace media {
-void ConvertYUVToRGB32_MMX(const uint8* yplane,
- const uint8* uplane,
- const uint8* vplane,
- uint8* 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* rgb_row = rgbframe + y * rgbstride;
- const uint8* y_ptr = yplane + y * ystride;
- const uint8* u_ptr = uplane + (y >> y_shift) * uvstride;
- const uint8* v_ptr = vplane + (y >> y_shift) * uvstride;
-
- ConvertYUVToRGB32Row_MMX(y_ptr,
- u_ptr,
- v_ptr,
- rgb_row,
- width,
- GetLookupTable(yuv_type));
- }
-
- EmptyRegisterState();
-}
-
void ConvertYUVAToARGB_MMX(const uint8* yplane,
const uint8* uplane,
const uint8* vplane,