diff options
Diffstat (limited to 'media/base/video_util.h')
-rw-r--r-- | media/base/video_util.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/media/base/video_util.h b/media/base/video_util.h new file mode 100644 index 0000000..fa40984 --- /dev/null +++ b/media/base/video_util.h @@ -0,0 +1,24 @@ +// Copyright (c) 2011 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_VIDEO_UTIL_H_ +#define MEDIA_BASE_VIDEO_UTIL_H_ + +#include "base/basictypes.h" + +namespace media { + +class VideoFrame; + +// Copies a plane of YUV source into a VideoFrame object, taking into account +// source and destinations dimensions. +// +// NOTE: rows is *not* the same as height! +void CopyYPlane(const uint8* source, int stride, int rows, VideoFrame* frame); +void CopyUPlane(const uint8* source, int stride, int rows, VideoFrame* frame); +void CopyVPlane(const uint8* source, int stride, int rows, VideoFrame* frame); + +} // namespace media + +#endif // MEDIA_BASE_VIDEO_UTIL_H_ |