Chromium Code Reviews
|
| 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_YUV_CONVERT_H_ | |
| 6 #define MEDIA_BASE_SIMD_YUV_CONVERT_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "media/base/yuv_convert.h" | |
| 10 | |
| 11 namespace media { | |
| 12 namespace simd { | |
|
Alpha Left Google
2011/08/22 14:16:59
I'd put them in yuv_convert_internal.h and name th
| |
| 13 | |
| 14 void ConvertRGB32toYUV(const uint8* rgbframe, | |
|
Alpha Left Google
2011/08/22 14:16:59
Add a _SSE2 suffix.
| |
| 15 uint8* yplane, | |
| 16 uint8* uplane, | |
| 17 uint8* vplane, | |
| 18 int width, | |
| 19 int height, | |
| 20 int rgbstride, | |
| 21 int ystride, | |
| 22 int uvstride); | |
| 23 | |
| 24 void ConvertRGB24toYUV(const uint8* rgbframe, | |
|
Alpha Left Google
2011/08/22 14:16:59
Add a _SSE2 suffix.
| |
| 25 uint8* yplane, | |
| 26 uint8* uplane, | |
| 27 uint8* vplane, | |
| 28 int width, | |
| 29 int height, | |
| 30 int rgbstride, | |
| 31 int ystride, | |
| 32 int uvstride); | |
| 33 | |
| 34 void ConvertYUVtoRGB32(const uint8* y_buf, | |
|
Alpha Left Google
2011/08/22 14:16:59
Add a _SSE2 suffix.
| |
| 35 const uint8* u_buf, | |
| 36 const uint8* v_buf, | |
| 37 uint8* rgb_buf, | |
| 38 int width, | |
| 39 int height, | |
| 40 int y_pitch, | |
| 41 int uv_pitch, | |
| 42 int rgb_pitch, | |
| 43 YUVType yuv_type); | |
| 44 | |
| 45 void ConvertYUVtoRGB24(const uint8* y_buf, | |
|
Alpha Left Google
2011/08/22 14:16:59
Add a _SSE2 suffix.
| |
| 46 const uint8* u_buf, | |
| 47 const uint8* v_buf, | |
| 48 uint8* rgb_buf, | |
| 49 int width, | |
| 50 int height, | |
| 51 int y_pitch, | |
| 52 int uv_pitch, | |
| 53 int rgb_pitch, | |
| 54 YUVType yuv_type); | |
| 55 | |
| 56 } // namespace simd | |
| 57 } // namespace media | |
| 58 | |
| 59 #endif // MEDIA_BASE_SIMD_YUV_CONVERT_H_ | |
| OLD | NEW |