| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_RGB_TO_YUV_H_ | 5 #ifndef MEDIA_BASE_SIMD_CONVERT_RGB_TO_YUV_H_ |
| 6 #define MEDIA_BASE_SIMD_CONVERT_RGB_TO_YUV_H_ | 6 #define MEDIA_BASE_SIMD_CONVERT_RGB_TO_YUV_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 17 matching lines...) Expand all Loading... |
| 28 void ConvertRGB24ToYUV_SSSE3(const uint8* rgbframe, | 28 void ConvertRGB24ToYUV_SSSE3(const uint8* rgbframe, |
| 29 uint8* yplane, | 29 uint8* yplane, |
| 30 uint8* uplane, | 30 uint8* uplane, |
| 31 uint8* vplane, | 31 uint8* vplane, |
| 32 int width, | 32 int width, |
| 33 int height, | 33 int height, |
| 34 int rgbstride, | 34 int rgbstride, |
| 35 int ystride, | 35 int ystride, |
| 36 int uvstride); | 36 int uvstride); |
| 37 | 37 |
| 38 // SSE2 version of converting RGBA to YV12. |
| 39 void ConvertRGB32ToYUV_SSE2(const uint8* rgbframe, |
| 40 uint8* yplane, |
| 41 uint8* uplane, |
| 42 uint8* vplane, |
| 43 int width, |
| 44 int height, |
| 45 int rgbstride, |
| 46 int ystride, |
| 47 int uvstride); |
| 48 |
| 49 // This is a C reference implementation of the above routine. |
| 50 // This method should only be used in unit test. |
| 51 // TODO(hclam): Should use this as the C version of RGB to YUV. |
| 52 void ConvertRGB32ToYUV_SSE2_Reference(const uint8* rgbframe, |
| 53 uint8* yplane, |
| 54 uint8* uplane, |
| 55 uint8* vplane, |
| 56 int width, |
| 57 int height, |
| 58 int rgbstride, |
| 59 int ystride, |
| 60 int uvstride); |
| 61 |
| 62 // C version of converting RGBA to YV12. |
| 63 void ConvertRGB32ToYUV_C(const uint8* rgbframe, |
| 64 uint8* yplane, |
| 65 uint8* uplane, |
| 66 uint8* vplane, |
| 67 int width, |
| 68 int height, |
| 69 int rgbstride, |
| 70 int ystride, |
| 71 int uvstride); |
| 72 |
| 73 // C version of converting RGB24 to YV12. |
| 74 void ConvertRGB24ToYUV_C(const uint8* rgbframe, |
| 75 uint8* yplane, |
| 76 uint8* uplane, |
| 77 uint8* vplane, |
| 78 int width, |
| 79 int height, |
| 80 int rgbstride, |
| 81 int ystride, |
| 82 int uvstride); |
| 83 |
| 38 } // namespace media | 84 } // namespace media |
| 39 | 85 |
| 40 #endif // MEDIA_BASE_SIMD_CONVERT_RGB_TO_YUV_H_ | 86 #endif // MEDIA_BASE_SIMD_CONVERT_RGB_TO_YUV_H_ |
| OLD | NEW |