OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 { |
11 | 11 |
12 // Convert a frame of YUV to 32 bit ARGB. | 12 // Convert a frame of YUV to 32 bit ARGB. |
13 void ConvertYV12ToRGB32(const uint8* yplane, | 13 void ConvertYV12ToRGB32(const uint8* yplane, |
14 const uint8* uplane, | 14 const uint8* uplane, |
15 const uint8* vplane, | 15 const uint8* vplane, |
16 uint8* rgbframe, | 16 uint8* rgbframe, |
17 size_t frame_width, | 17 size_t frame_width, |
18 size_t frame_height, | 18 size_t frame_height, |
19 int ystride, | 19 int ystride, |
20 int uvstride, | 20 int uvstride, |
21 int rgbstride); | 21 int rgbstride); |
22 | 22 |
23 #endif // MEDIA_BASE_YUV_CONVERT_H_ | 23 #endif // MEDIA_BASE_YUV_CONVERT_H_ |
24 | 24 |
25 } // namespace media | 25 } // namespace media |
26 | |
OLD | NEW |