diff options
Diffstat (limited to 'media/base/yuv_scale.h')
-rw-r--r-- | media/base/yuv_scale.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/media/base/yuv_scale.h b/media/base/yuv_scale.h new file mode 100644 index 0000000..f354942 --- /dev/null +++ b/media/base/yuv_scale.h @@ -0,0 +1,41 @@ +// 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_SCALE_H_ +#define MEDIA_BASE_YUV_SCALE_H_ + +#include "base/basictypes.h" + +namespace media { + +// Scale a frame of YV12 (aka YUV420) to 32 bit ARGB. +void ScaleYV12ToRGB32(const uint8* yplane, + const uint8* uplane, + const uint8* vplane, + uint8* rgbframe, + size_t frame_width, + size_t frame_height, + size_t scaled_width, + size_t scaled_height, + int ystride, + int uvstride, + int rgbstride); + +// Scale a frame of YV16 (aka YUV422) to 32 bit ARGB. +void ScaleYV16ToRGB32(const uint8* yplane, + const uint8* uplane, + const uint8* vplane, + uint8* rgbframe, + size_t frame_width, + size_t frame_height, + size_t scaled_width, + size_t scaled_height, + int ystride, + int uvstride, + int rgbstride); + +#endif // MEDIA_BASE_YUV_SCALE_H_ + +} // namespace media + |