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 | |
78 // Scale a frame of YUV to 32 bit ARGB. | 63 // Scale a frame of YUV to 32 bit ARGB. |
79 // Supports rotation and mirroring. | 64 // Supports rotation and mirroring. |
80 void ScaleYUVToRGB32(const uint8* yplane, | 65 void ScaleYUVToRGB32(const uint8* yplane, |
81 const uint8* uplane, | 66 const uint8* uplane, |
82 const uint8* vplane, | 67 const uint8* vplane, |
83 uint8* rgbframe, | 68 uint8* rgbframe, |
84 int source_width, | 69 int source_width, |
85 int source_height, | 70 int source_height, |
86 int width, | 71 int width, |
87 int height, | 72 int height, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 uint8* vplane, | 129 uint8* vplane, |
145 int width, | 130 int width, |
146 int height); | 131 int height); |
147 | 132 |
148 // Empty SIMD register state after calling optimized scaler functions. | 133 // Empty SIMD register state after calling optimized scaler functions. |
149 void EmptyRegisterState(); | 134 void EmptyRegisterState(); |
150 | 135 |
151 } // namespace media | 136 } // namespace media |
152 | 137 |
153 #endif // MEDIA_BASE_YUV_CONVERT_H_ | 138 #endif // MEDIA_BASE_YUV_CONVERT_H_ |
OLD | NEW |