diff options
author | fbarchard@chromium.org <fbarchard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-06 15:37:59 +0000 |
---|---|---|
committer | fbarchard@chromium.org <fbarchard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-06 15:37:59 +0000 |
commit | 07ecd35ee99706bf7eb834c30928aac4cad23710 (patch) | |
tree | 2644e61ed76a3d1199ad671db064d9a691d69ed1 /media/base/yuv_convert.h | |
parent | 449be361bb402d93a2bfa59dc61c72beafac6959 (diff) | |
download | chromium_src-07ecd35ee99706bf7eb834c30928aac4cad23710.zip chromium_src-07ecd35ee99706bf7eb834c30928aac4cad23710.tar.gz chromium_src-07ecd35ee99706bf7eb834c30928aac4cad23710.tar.bz2 |
Add YV16 convert
Review URL: http://codereview.chromium.org/62015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13155 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/yuv_convert.h')
-rw-r--r-- | media/base/yuv_convert.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/media/base/yuv_convert.h b/media/base/yuv_convert.h index bd2175d..5f3c5c2 100644 --- a/media/base/yuv_convert.h +++ b/media/base/yuv_convert.h @@ -9,7 +9,7 @@ namespace media { -// Convert a frame of YUV to 32 bit ARGB. +// Convert a frame of YV12 (aka YUV420) to 32 bit ARGB. void ConvertYV12ToRGB32(const uint8* yplane, const uint8* uplane, const uint8* vplane, @@ -20,6 +20,18 @@ void ConvertYV12ToRGB32(const uint8* yplane, int uvstride, int rgbstride); +// Convert a frame of YV16 (aka YUV422) to 32 bit ARGB. +void ConvertYV16ToRGB32(const uint8* yplane, + const uint8* uplane, + const uint8* vplane, + uint8* rgbframe, + size_t frame_width, + size_t frame_height, + int ystride, + int uvstride, + int rgbstride); + + #endif // MEDIA_BASE_YUV_CONVERT_H_ } // namespace media |