| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_YUV_TO_RGB_H_ | 5 #ifndef MEDIA_BASE_SIMD_CONVERT_YUV_TO_RGB_H_ |
| 6 #define MEDIA_BASE_SIMD_CONVERT_YUV_TO_RGB_H_ | 6 #define MEDIA_BASE_SIMD_CONVERT_YUV_TO_RGB_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 |
| 11 namespace media { | 11 namespace media { |
| 12 | 12 |
| 13 // These methods are exported for testing purposes only. Library users should | 13 // These methods are exported for testing purposes only. Library users should |
| 14 // only call the methods listed in yuv_convert.h. | 14 // only call the methods listed in yuv_convert.h. |
| 15 | 15 |
| 16 MEDIA_EXPORT void ConvertYUVToRGB32_C(const uint8* yplane, | 16 MEDIA_EXPORT void ConvertYUVToRGB32_C(const uint8* yplane, |
| 17 const uint8* uplane, | 17 const uint8* uplane, |
| 18 const uint8* vplane, | 18 const uint8* vplane, |
| 19 uint8* rgbframe, | 19 uint8* rgbframe, |
| 20 int width, | 20 int width, |
| 21 int height, | 21 int height, |
| 22 int ystride, | 22 int ystride, |
| 23 int uvstride, | 23 int uvstride, |
| 24 int rgbstride, | 24 int rgbstride, |
| 25 YUVType yuv_type); | 25 YUVType yuv_type, |
| 26 YUVRange yuv_range); |
| 26 | 27 |
| 27 MEDIA_EXPORT void ConvertYUVToRGB32Row_C(const uint8* yplane, | 28 MEDIA_EXPORT void ConvertYUVToRGB32Row_C(const uint8* yplane, |
| 28 const uint8* uplane, | 29 const uint8* uplane, |
| 29 const uint8* vplane, | 30 const uint8* vplane, |
| 30 uint8* rgbframe, | 31 uint8* rgbframe, |
| 31 ptrdiff_t width); | 32 ptrdiff_t width); |
| 32 | 33 |
| 33 MEDIA_EXPORT void ConvertYUVAToARGB_C(const uint8* yplane, | 34 MEDIA_EXPORT void ConvertYUVAToARGB_C(const uint8* yplane, |
| 34 const uint8* uplane, | 35 const uint8* uplane, |
| 35 const uint8* vplane, | 36 const uint8* vplane, |
| 36 const uint8* aplane, | 37 const uint8* aplane, |
| 37 uint8* rgbframe, | 38 uint8* rgbframe, |
| 38 int width, | 39 int width, |
| 39 int height, | 40 int height, |
| 40 int ystride, | 41 int ystride, |
| 41 int uvstride, | 42 int uvstride, |
| 42 int avstride, | 43 int avstride, |
| 43 int rgbstride, | 44 int rgbstride, |
| 44 YUVType yuv_type); | 45 YUVType yuv_type, |
| 46 YUVRange yuv_range); |
| 45 | 47 |
| 46 MEDIA_EXPORT void ConvertYUVAToARGBRow_C(const uint8* yplane, | 48 MEDIA_EXPORT void ConvertYUVAToARGBRow_C(const uint8* yplane, |
| 47 const uint8* uplane, | 49 const uint8* uplane, |
| 48 const uint8* vplane, | 50 const uint8* vplane, |
| 49 const uint8* aplane, | 51 const uint8* aplane, |
| 50 uint8* rgbframe, | 52 uint8* rgbframe, |
| 51 ptrdiff_t width); | 53 ptrdiff_t width); |
| 52 | 54 |
| 53 MEDIA_EXPORT void ConvertYUVToRGB32_SSE(const uint8* yplane, | 55 MEDIA_EXPORT void ConvertYUVToRGB32_SSE(const uint8* yplane, |
| 54 const uint8* uplane, | 56 const uint8* uplane, |
| 55 const uint8* vplane, | 57 const uint8* vplane, |
| 56 uint8* rgbframe, | 58 uint8* rgbframe, |
| 57 int width, | 59 int width, |
| 58 int height, | 60 int height, |
| 59 int ystride, | 61 int ystride, |
| 60 int uvstride, | 62 int uvstride, |
| 61 int rgbstride, | 63 int rgbstride, |
| 62 YUVType yuv_type); | 64 YUVType yuv_type, |
| 65 YUVRange yuv_range); |
| 63 | 66 |
| 64 MEDIA_EXPORT void ConvertYUVToRGB32_MMX(const uint8* yplane, | 67 MEDIA_EXPORT void ConvertYUVToRGB32_MMX(const uint8* yplane, |
| 65 const uint8* uplane, | 68 const uint8* uplane, |
| 66 const uint8* vplane, | 69 const uint8* vplane, |
| 67 uint8* rgbframe, | 70 uint8* rgbframe, |
| 68 int width, | 71 int width, |
| 69 int height, | 72 int height, |
| 70 int ystride, | 73 int ystride, |
| 71 int uvstride, | 74 int uvstride, |
| 72 int rgbstride, | 75 int rgbstride, |
| 73 YUVType yuv_type); | 76 YUVType yuv_type, |
| 77 YUVRange yuv_range); |
| 74 | 78 |
| 75 MEDIA_EXPORT void ConvertYUVAToARGB_MMX(const uint8* yplane, | 79 MEDIA_EXPORT void ConvertYUVAToARGB_MMX(const uint8* yplane, |
| 76 const uint8* uplane, | 80 const uint8* uplane, |
| 77 const uint8* vplane, | 81 const uint8* vplane, |
| 78 const uint8* aplane, | 82 const uint8* aplane, |
| 79 uint8* rgbframe, | 83 uint8* rgbframe, |
| 80 int width, | 84 int width, |
| 81 int height, | 85 int height, |
| 82 int ystride, | 86 int ystride, |
| 83 int uvstride, | 87 int uvstride, |
| 84 int avstride, | 88 int avstride, |
| 85 int rgbstride, | 89 int rgbstride, |
| 86 YUVType yuv_type); | 90 YUVType yuv_type, |
| 91 YUVRange yuv_range); |
| 87 | 92 |
| 88 MEDIA_EXPORT void ScaleYUVToRGB32Row_C(const uint8* y_buf, | 93 MEDIA_EXPORT void ScaleYUVToRGB32Row_C(const uint8* y_buf, |
| 89 const uint8* u_buf, | 94 const uint8* u_buf, |
| 90 const uint8* v_buf, | 95 const uint8* v_buf, |
| 91 uint8* rgb_buf, | 96 uint8* rgb_buf, |
| 92 ptrdiff_t width, | 97 ptrdiff_t width, |
| 93 ptrdiff_t source_dx); | 98 ptrdiff_t source_dx); |
| 94 | 99 |
| 95 MEDIA_EXPORT void LinearScaleYUVToRGB32Row_C(const uint8* y_buf, | 100 MEDIA_EXPORT void LinearScaleYUVToRGB32Row_C(const uint8* y_buf, |
| 96 const uint8* u_buf, | 101 const uint8* u_buf, |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 MEDIA_EXPORT void LinearScaleYUVToRGB32Row_MMX_X64(const uint8* y_buf, | 181 MEDIA_EXPORT void LinearScaleYUVToRGB32Row_MMX_X64(const uint8* y_buf, |
| 177 const uint8* u_buf, | 182 const uint8* u_buf, |
| 178 const uint8* v_buf, | 183 const uint8* v_buf, |
| 179 uint8* rgb_buf, | 184 uint8* rgb_buf, |
| 180 ptrdiff_t width, | 185 ptrdiff_t width, |
| 181 ptrdiff_t source_dx); | 186 ptrdiff_t source_dx); |
| 182 | 187 |
| 183 } // extern "C" | 188 } // extern "C" |
| 184 | 189 |
| 185 #endif // MEDIA_BASE_SIMD_CONVERT_YUV_TO_RGB_H_ | 190 #endif // MEDIA_BASE_SIMD_CONVERT_YUV_TO_RGB_H_ |
| OLD | NEW |