OLD | NEW |
| (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_H_ | |
6 #define MEDIA_BASE_SIMD_CONVERT_RGB_TO_YUV_H_ | |
7 | |
8 #include <stdint.h> | |
9 | |
10 #include "media/base/yuv_convert.h" | |
11 | |
12 namespace media { | |
13 | |
14 // These methods are exported for testing purposes only. Library users should | |
15 // only call the methods listed in yuv_convert.h. | |
16 | |
17 MEDIA_EXPORT void ConvertRGB32ToYUV_SSSE3(const uint8_t* rgbframe, | |
18 uint8_t* yplane, | |
19 uint8_t* uplane, | |
20 uint8_t* vplane, | |
21 int width, | |
22 int height, | |
23 int rgbstride, | |
24 int ystride, | |
25 int uvstride); | |
26 | |
27 MEDIA_EXPORT void ConvertRGB24ToYUV_SSSE3(const uint8_t* rgbframe, | |
28 uint8_t* yplane, | |
29 uint8_t* uplane, | |
30 uint8_t* vplane, | |
31 int width, | |
32 int height, | |
33 int rgbstride, | |
34 int ystride, | |
35 int uvstride); | |
36 | |
37 MEDIA_EXPORT void ConvertRGB32ToYUV_SSE2(const uint8_t* rgbframe, | |
38 uint8_t* yplane, | |
39 uint8_t* uplane, | |
40 uint8_t* vplane, | |
41 int width, | |
42 int height, | |
43 int rgbstride, | |
44 int ystride, | |
45 int uvstride); | |
46 | |
47 MEDIA_EXPORT void ConvertRGB32ToYUV_SSE2_Reference(const uint8_t* rgbframe, | |
48 uint8_t* yplane, | |
49 uint8_t* uplane, | |
50 uint8_t* vplane, | |
51 int width, | |
52 int height, | |
53 int rgbstride, | |
54 int ystride, | |
55 int uvstride); | |
56 | |
57 MEDIA_EXPORT void ConvertRGB32ToYUV_C(const uint8_t* rgbframe, | |
58 uint8_t* yplane, | |
59 uint8_t* uplane, | |
60 uint8_t* vplane, | |
61 int width, | |
62 int height, | |
63 int rgbstride, | |
64 int ystride, | |
65 int uvstride); | |
66 | |
67 MEDIA_EXPORT void ConvertRGB24ToYUV_C(const uint8_t* rgbframe, | |
68 uint8_t* yplane, | |
69 uint8_t* uplane, | |
70 uint8_t* vplane, | |
71 int width, | |
72 int height, | |
73 int rgbstride, | |
74 int ystride, | |
75 int uvstride); | |
76 | |
77 } // namespace media | |
78 | |
79 #endif // MEDIA_BASE_SIMD_CONVERT_RGB_TO_YUV_H_ | |
OLD | NEW |