1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MEDIA_BASE_VIDEO_UTIL_H_
6 #define MEDIA_BASE_VIDEO_UTIL_H_
8 #include "base/basictypes.h"
9 #include "media/base/media_export.h"
15 // Copies a plane of YUV source into a VideoFrame object, taking into account
16 // source and destinations dimensions.
18 // NOTE: rows is *not* the same as height!
19 MEDIA_EXPORT
void CopyYPlane(const uint8
* source
, int stride
, int rows
,
21 MEDIA_EXPORT
void CopyUPlane(const uint8
* source
, int stride
, int rows
,
23 MEDIA_EXPORT
void CopyVPlane(const uint8
* source
, int stride
, int rows
,
26 // Fills |frame| containing YUV data to the given color values.
27 MEDIA_EXPORT
void FillYUV(VideoFrame
* frame
, uint8 y
, uint8 u
, uint8 v
);
31 #endif // MEDIA_BASE_VIDEO_UTIL_H_