| 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_YUV_CONVERT_H_ | 5 #ifndef MEDIA_BASE_YUV_CONVERT_H_ |
| 6 #define MEDIA_BASE_YUV_CONVERT_H_ | 6 #define MEDIA_BASE_YUV_CONVERT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 namespace media { | 10 namespace media { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 const uint8* uplane, | 43 const uint8* uplane, |
| 44 const uint8* vplane, | 44 const uint8* vplane, |
| 45 uint8* rgbframe, | 45 uint8* rgbframe, |
| 46 int width, | 46 int width, |
| 47 int height, | 47 int height, |
| 48 int ystride, | 48 int ystride, |
| 49 int uvstride, | 49 int uvstride, |
| 50 int rgbstride, | 50 int rgbstride, |
| 51 YUVType yuv_type); | 51 YUVType yuv_type); |
| 52 | 52 |
| 53 // Convert a frame of YUVA to 32 bit ARGB. |
| 54 // Pass in YV12A |
| 55 void ConvertYUVAToARGB(const uint8* yplane, |
| 56 const uint8* uplane, |
| 57 const uint8* vplane, |
| 58 const uint8* aplane, |
| 59 uint8* rgbframe, |
| 60 int width, |
| 61 int height, |
| 62 int ystride, |
| 63 int uvstride, |
| 64 int astride, |
| 65 int rgbstride, |
| 66 YUVType yuv_type); |
| 67 |
| 53 // Scale a frame of YUV to 32 bit ARGB. | 68 // Scale a frame of YUV to 32 bit ARGB. |
| 54 // Supports rotation and mirroring. | 69 // Supports rotation and mirroring. |
| 55 void ScaleYUVToRGB32(const uint8* yplane, | 70 void ScaleYUVToRGB32(const uint8* yplane, |
| 56 const uint8* uplane, | 71 const uint8* uplane, |
| 57 const uint8* vplane, | 72 const uint8* vplane, |
| 58 uint8* rgbframe, | 73 uint8* rgbframe, |
| 59 int source_width, | 74 int source_width, |
| 60 int source_height, | 75 int source_height, |
| 61 int width, | 76 int width, |
| 62 int height, | 77 int height, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 int width, | 135 int width, |
| 121 int height); | 136 int height); |
| 122 | 137 |
| 123 // Empty SIMD register state after calling optimized scaler functions. | 138 // Empty SIMD register state after calling optimized scaler functions. |
| 124 // This method is only used in unit test after calling SIMD functions. | 139 // This method is only used in unit test after calling SIMD functions. |
| 125 void EmptyRegisterState(); | 140 void EmptyRegisterState(); |
| 126 | 141 |
| 127 } // namespace media | 142 } // namespace media |
| 128 | 143 |
| 129 #endif // MEDIA_BASE_YUV_CONVERT_H_ | 144 #endif // MEDIA_BASE_YUV_CONVERT_H_ |
| OLD | NEW |