| 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 // This file defines the YUV conversion functions for each specific | 5 // This file defines the YUV conversion functions for each specific |
| 6 // optimization. | 6 // optimization. |
| 7 | 7 |
| 8 #ifndef MEDIA_BASE_YUV_CONVERT_INTERNAL_H_ | 8 #ifndef MEDIA_BASE_YUV_CONVERT_INTERNAL_H_ |
| 9 #define MEDIA_BASE_YUV_CONVERT_INTERNAL_H_ | 9 #define MEDIA_BASE_YUV_CONVERT_INTERNAL_H_ |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 | 12 |
| 13 namespace media { | 13 namespace media { |
| 14 | 14 |
| 15 // SSE2 version of converting RGBA to YV12. | 15 // SSE2 version of converting RGBA to YV12. |
| 16 extern void ConvertRGB32ToYUV_SSE2(const uint8* rgbframe, | 16 void ConvertRGB32ToYUV_SSE2(const uint8* rgbframe, |
| 17 uint8* yplane, | 17 uint8* yplane, |
| 18 uint8* uplane, | 18 uint8* uplane, |
| 19 uint8* vplane, | 19 uint8* vplane, |
| 20 int width, | 20 int width, |
| 21 int height, | 21 int height, |
| 22 int rgbstride, | 22 int rgbstride, |
| 23 int ystride, | 23 int ystride, |
| 24 int uvstride); | 24 int uvstride); |
| 25 | 25 |
| 26 // This is a C reference implementation of the above routine. | 26 // This is a C reference implementation of the above routine. |
| 27 // This method should only be used in unit test. | 27 // This method should only be used in unit test. |
| 28 void ConvertRGB32ToYUV_SSE2_Reference(const uint8* rgbframe, | 28 void ConvertRGB32ToYUV_SSE2_Reference(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, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 61 void ConvertYUY2ToYUV_C(const uint8* src, | 61 void ConvertYUY2ToYUV_C(const uint8* src, |
| 62 uint8* yplane, | 62 uint8* yplane, |
| 63 uint8* uplane, | 63 uint8* uplane, |
| 64 uint8* vplane, | 64 uint8* vplane, |
| 65 int width, | 65 int width, |
| 66 int height); | 66 int height); |
| 67 | 67 |
| 68 } // namespace media | 68 } // namespace media |
| 69 | 69 |
| 70 #endif // MEDIA_BASE_YUV_CONVERT_INTERNAL_H_ | 70 #endif // MEDIA_BASE_YUV_CONVERT_INTERNAL_H_ |
| OLD | NEW |