| 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 YV12 (aka YUV420) 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 // Convert a frame of YV16 (aka YUV422) to 32 bit ARGB. |
| 24 void ConvertYV16ToRGB32(const uint8* yplane, |
| 25 const uint8* uplane, |
| 26 const uint8* vplane, |
| 27 uint8* rgbframe, |
| 28 size_t frame_width, |
| 29 size_t frame_height, |
| 30 int ystride, |
| 31 int uvstride, |
| 32 int rgbstride); |
| 33 |
| 34 |
| 23 #endif // MEDIA_BASE_YUV_CONVERT_H_ | 35 #endif // MEDIA_BASE_YUV_CONVERT_H_ |
| 24 | 36 |
| 25 } // namespace media | 37 } // namespace media |
| OLD | NEW |