diff options
author | fbarchard@chromium.org <fbarchard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-06 02:13:05 +0000 |
---|---|---|
committer | fbarchard@chromium.org <fbarchard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-06 02:13:05 +0000 |
commit | 2f9d1c51c1b179c783631d63301c239e797ff0c8 (patch) | |
tree | 45cdc54db1dbb618b5770b767882da51fe8ebf51 /media/base/yuv_convert.h | |
parent | cfb8c047aae384eb1e6c27c047832ff41a8764b3 (diff) | |
download | chromium_src-2f9d1c51c1b179c783631d63301c239e797ff0c8.zip chromium_src-2f9d1c51c1b179c783631d63301c239e797ff0c8.tar.gz chromium_src-2f9d1c51c1b179c783631d63301c239e797ff0c8.tar.bz2 |
YUV conversion code.
This will be used for reference. Its reasonably simple, fast and high quality. Future versions will be optimized and should try to maintain similar quality. Longer term we may move this to Skia or attempt a hardware version.
Review URL: http://codereview.chromium.org/40029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11089 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/yuv_convert.h')
-rw-r--r-- | media/base/yuv_convert.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/media/base/yuv_convert.h b/media/base/yuv_convert.h new file mode 100644 index 0000000..6b6ea24 --- /dev/null +++ b/media/base/yuv_convert.h @@ -0,0 +1,26 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef MEDIA_BASE_YUV_CONVERT_H_ +#define MEDIA_BASE_YUV_CONVERT_H_ + +#include "base/basictypes.h" + +namespace media { + +// Convert a frame of YUV to 32 bit ARGB. +void ConvertYV12ToRGB32(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 + |