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

Side by Side Diff: media/base/simd/convert_yuv_to_rgb.h

Issue 459603003: Cleanup: Remove unneeded SSE2 checks and unused code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, fix win build Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/simd/convert_yuv_to_rgb_mmx.asm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_SIMD_CONVERT_YUV_TO_RGB_H_ 5 #ifndef MEDIA_BASE_SIMD_CONVERT_YUV_TO_RGB_H_
6 #define MEDIA_BASE_SIMD_CONVERT_YUV_TO_RGB_H_ 6 #define MEDIA_BASE_SIMD_CONVERT_YUV_TO_RGB_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "media/base/yuv_convert.h" 9 #include "media/base/yuv_convert.h"
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 const uint8* uplane, 56 const uint8* uplane,
57 const uint8* vplane, 57 const uint8* vplane,
58 uint8* rgbframe, 58 uint8* rgbframe,
59 int width, 59 int width,
60 int height, 60 int height,
61 int ystride, 61 int ystride,
62 int uvstride, 62 int uvstride,
63 int rgbstride, 63 int rgbstride,
64 YUVType yuv_type); 64 YUVType yuv_type);
65 65
66 MEDIA_EXPORT void ConvertYUVToRGB32_MMX(const uint8* yplane,
67 const uint8* uplane,
68 const uint8* vplane,
69 uint8* rgbframe,
70 int width,
71 int height,
72 int ystride,
73 int uvstride,
74 int rgbstride,
75 YUVType yuv_type);
76
77 MEDIA_EXPORT void ConvertYUVAToARGB_MMX(const uint8* yplane, 66 MEDIA_EXPORT void ConvertYUVAToARGB_MMX(const uint8* yplane,
78 const uint8* uplane, 67 const uint8* uplane,
79 const uint8* vplane, 68 const uint8* vplane,
80 const uint8* aplane, 69 const uint8* aplane,
81 uint8* rgbframe, 70 uint8* rgbframe,
82 int width, 71 int width,
83 int height, 72 int height,
84 int ystride, 73 int ystride,
85 int uvstride, 74 int uvstride,
86 int avstride, 75 int avstride,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // Assembly functions are declared without namespace. 108 // Assembly functions are declared without namespace.
120 extern "C" { 109 extern "C" {
121 110
122 // We use ptrdiff_t instead of int for yasm routine parameters to portably 111 // We use ptrdiff_t instead of int for yasm routine parameters to portably
123 // sign-extend int. On Win64, MSVC does not sign-extend the value in the stack 112 // sign-extend int. On Win64, MSVC does not sign-extend the value in the stack
124 // home of int function parameters, and yasm routines are unaware of this lack 113 // home of int function parameters, and yasm routines are unaware of this lack
125 // of extension and fault. ptrdiff_t is portably sign-extended and fixes this 114 // of extension and fault. ptrdiff_t is portably sign-extended and fixes this
126 // issue on at least Win64. The C-equivalent RowProc versions' prototypes 115 // issue on at least Win64. The C-equivalent RowProc versions' prototypes
127 // include the same change to ptrdiff_t to reuse the typedefs. 116 // include the same change to ptrdiff_t to reuse the typedefs.
128 117
129 MEDIA_EXPORT void ConvertYUVToRGB32Row_MMX(const uint8* yplane,
130 const uint8* uplane,
131 const uint8* vplane,
132 uint8* rgbframe,
133 ptrdiff_t width,
134 const int16 convert_table[1024][4]);
135
136 MEDIA_EXPORT void ConvertYUVAToARGBRow_MMX(const uint8* yplane, 118 MEDIA_EXPORT void ConvertYUVAToARGBRow_MMX(const uint8* yplane,
137 const uint8* uplane, 119 const uint8* uplane,
138 const uint8* vplane, 120 const uint8* vplane,
139 const uint8* aplane, 121 const uint8* aplane,
140 uint8* rgbframe, 122 uint8* rgbframe,
141 ptrdiff_t width, 123 ptrdiff_t width,
142 const int16 convert_table[1024][4]); 124 const int16 convert_table[1024][4]);
143 125
144 MEDIA_EXPORT void ConvertYUVToRGB32Row_SSE(const uint8* yplane, 126 MEDIA_EXPORT void ConvertYUVToRGB32Row_SSE(const uint8* yplane,
145 const uint8* uplane, 127 const uint8* uplane,
146 const uint8* vplane, 128 const uint8* vplane,
147 uint8* rgbframe, 129 uint8* rgbframe,
148 ptrdiff_t width, 130 ptrdiff_t width,
149 const int16 convert_table[1024][4]); 131 const int16 convert_table[1024][4]);
150 132
151 MEDIA_EXPORT void ScaleYUVToRGB32Row_MMX(const uint8* y_buf,
152 const uint8* u_buf,
153 const uint8* v_buf,
154 uint8* rgb_buf,
155 ptrdiff_t width,
156 ptrdiff_t source_dx,
157 const int16 convert_table[1024][4]);
158
159 MEDIA_EXPORT void ScaleYUVToRGB32Row_SSE(const uint8* y_buf, 133 MEDIA_EXPORT void ScaleYUVToRGB32Row_SSE(const uint8* y_buf,
160 const uint8* u_buf, 134 const uint8* u_buf,
161 const uint8* v_buf, 135 const uint8* v_buf,
162 uint8* rgb_buf, 136 uint8* rgb_buf,
163 ptrdiff_t width, 137 ptrdiff_t width,
164 ptrdiff_t source_dx, 138 ptrdiff_t source_dx,
165 const int16 convert_table[1024][4]); 139 const int16 convert_table[1024][4]);
166 140
167 MEDIA_EXPORT void ScaleYUVToRGB32Row_SSE2_X64( 141 MEDIA_EXPORT void ScaleYUVToRGB32Row_SSE2_X64(
168 const uint8* y_buf, 142 const uint8* y_buf,
169 const uint8* u_buf, 143 const uint8* u_buf,
170 const uint8* v_buf, 144 const uint8* v_buf,
171 uint8* rgb_buf, 145 uint8* rgb_buf,
172 ptrdiff_t width, 146 ptrdiff_t width,
173 ptrdiff_t source_dx, 147 ptrdiff_t source_dx,
174 const int16 convert_table[1024][4]); 148 const int16 convert_table[1024][4]);
175 149
176 MEDIA_EXPORT void LinearScaleYUVToRGB32Row_MMX(
177 const uint8* y_buf,
178 const uint8* u_buf,
179 const uint8* v_buf,
180 uint8* rgb_buf,
181 ptrdiff_t width,
182 ptrdiff_t source_dx,
183 const int16 convert_table[1024][4]);
184
185 MEDIA_EXPORT void LinearScaleYUVToRGB32Row_SSE( 150 MEDIA_EXPORT void LinearScaleYUVToRGB32Row_SSE(
186 const uint8* y_buf, 151 const uint8* y_buf,
187 const uint8* u_buf, 152 const uint8* u_buf,
188 const uint8* v_buf, 153 const uint8* v_buf,
189 uint8* rgb_buf, 154 uint8* rgb_buf,
190 ptrdiff_t width, 155 ptrdiff_t width,
191 ptrdiff_t source_dx, 156 ptrdiff_t source_dx,
192 const int16 convert_table[1024][4]); 157 const int16 convert_table[1024][4]);
193 158
194 MEDIA_EXPORT void LinearScaleYUVToRGB32Row_MMX_X64( 159 MEDIA_EXPORT void LinearScaleYUVToRGB32Row_MMX_X64(
195 const uint8* y_buf, 160 const uint8* y_buf,
196 const uint8* u_buf, 161 const uint8* u_buf,
197 const uint8* v_buf, 162 const uint8* v_buf,
198 uint8* rgb_buf, 163 uint8* rgb_buf,
199 ptrdiff_t width, 164 ptrdiff_t width,
200 ptrdiff_t source_dx, 165 ptrdiff_t source_dx,
201 const int16 convert_table[1024][4]); 166 const int16 convert_table[1024][4]);
202 167
203 } // extern "C" 168 } // extern "C"
204 169
205 #endif // MEDIA_BASE_SIMD_CONVERT_YUV_TO_RGB_H_ 170 #endif // MEDIA_BASE_SIMD_CONVERT_YUV_TO_RGB_H_
OLDNEW
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/simd/convert_yuv_to_rgb_mmx.asm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698