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

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

Issue 7003082: Implements RGB to YV12 conversion in YASM. (Closed) Base URL: svn://chrome-svn/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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_BASE_SIMD_CONVERT_RGB_TO_YUV_SSSE3_H_
6 #define MEDIA_BASE_SIMD_CONVERT_RGB_TO_YUV_SSSE3_H_
7
8 namespace media {
Alpha Left Google 2011/09/06 17:08:32 Please remove namespace for assembly functions, it
9 namespace simd {
10
11 // The header file for ASM functions that convert a row of pixels with SSSE3
12 // instructions so we can call them from C++ code. These functions are
13 // implemented in "convert_rgb_to_yuv_ssse3.asm".
14
15 #ifdef ENABLE_SUBSAMPLING
Alpha Left Google 2011/09/06 17:08:32 Actually we don't need to have ifdef, we can alway
16 // Convert a row of 24-bit RGB pixels to YV12 pixels.
17 void ConvertRGBToYUVEven_SSSE3(const uint8* rgb,
18 uint8* y,
19 uint8* u,
20 uint8* v,
21 int width);
22 void ConvertRGBToYUVOdd_SSSE3(const uint8* rgb,
23 uint8* y,
24 uint8* u,
25 uint8* v,
26 int width);
27
28 // Convert a row of 32-bit RGB pixels to YV12 pixels.
29 void ConvertARGBToYUVEven_SSSE3(const uint8* argb,
30 uint8* y,
31 uint8* u,
32 uint8* v,
33 int width);
34 void ConvertARGBToYUVOdd_SSSE3(const uint8* argb,
35 uint8* y,
36 uint8* u,
37 uint8* v,
38 int width);
39 #else
40 // Convert a row of 24-bit RGB pixels to YV12 pixels.
41 void ConvertRGBToYUVRow_SSSE3(const uint8* rgb,
42 uint8* y,
43 uint8* u,
44 uint8* v,
45 int width);
46
47 // Convert a row of 32-bit RGB pixels to YV12 pixels.
48 void ConvertARGBToYUVRow_SSSE3(const uint8* argb,
49 uint8* y,
50 uint8* u,
51 uint8* v,
52 int width);
53 #endif
54
55 } // namespace simd
56 } // namespace media
57
58 #endif // MEDIA_BASE_SIMD_CONVERT_RGB_TO_YUV_SSSE3_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698