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 // Visual Studio 2010 does not support MMX intrinsics on x64. | 10 // Visual Studio 2010 does not support MMX intrinsics on x64. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 const uint8* uplane, | 53 const uint8* uplane, |
54 const uint8* vplane, | 54 const uint8* vplane, |
55 uint8* rgbframe, | 55 uint8* rgbframe, |
56 int width, | 56 int width, |
57 int height, | 57 int height, |
58 int ystride, | 58 int ystride, |
59 int uvstride, | 59 int uvstride, |
60 int rgbstride, | 60 int rgbstride, |
61 YUVType yuv_type); | 61 YUVType yuv_type); |
62 | 62 |
| 63 // Convert a frame of YUVA to 32 bit ARGB. |
| 64 // Pass in YV12A |
| 65 void ConvertYUVAToARGB(const uint8* yplane, |
| 66 const uint8* uplane, |
| 67 const uint8* vplane, |
| 68 const uint8* aplane, |
| 69 uint8* rgbframe, |
| 70 int width, |
| 71 int height, |
| 72 int ystride, |
| 73 int uvstride, |
| 74 int astride, |
| 75 int rgbstride, |
| 76 YUVType yuv_type); |
| 77 |
63 // Scale a frame of YUV to 32 bit ARGB. | 78 // Scale a frame of YUV to 32 bit ARGB. |
64 // Supports rotation and mirroring. | 79 // Supports rotation and mirroring. |
65 void ScaleYUVToRGB32(const uint8* yplane, | 80 void ScaleYUVToRGB32(const uint8* yplane, |
66 const uint8* uplane, | 81 const uint8* uplane, |
67 const uint8* vplane, | 82 const uint8* vplane, |
68 uint8* rgbframe, | 83 uint8* rgbframe, |
69 int source_width, | 84 int source_width, |
70 int source_height, | 85 int source_height, |
71 int width, | 86 int width, |
72 int height, | 87 int height, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 uint8* vplane, | 144 uint8* vplane, |
130 int width, | 145 int width, |
131 int height); | 146 int height); |
132 | 147 |
133 // Empty SIMD register state after calling optimized scaler functions. | 148 // Empty SIMD register state after calling optimized scaler functions. |
134 void EmptyRegisterState(); | 149 void EmptyRegisterState(); |
135 | 150 |
136 } // namespace media | 151 } // namespace media |
137 | 152 |
138 #endif // MEDIA_BASE_YUV_CONVERT_H_ | 153 #endif // MEDIA_BASE_YUV_CONVERT_H_ |
OLD | NEW |