Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(659)

Side by Side Diff: media/base/video_util.h

Issue 12263013: media: Add support for playback of VP8 Alpha video streams (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressing comments on patchset 2 Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_VIDEO_UTIL_H_ 5 #ifndef MEDIA_BASE_VIDEO_UTIL_H_
6 #define MEDIA_BASE_VIDEO_UTIL_H_ 6 #define MEDIA_BASE_VIDEO_UTIL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "media/base/media_export.h" 9 #include "media/base/media_export.h"
10 #include "ui/gfx/size.h" 10 #include "ui/gfx/size.h"
(...skipping 10 matching lines...) Expand all
21 // Copies a plane of YUV source into a VideoFrame object, taking into account 21 // Copies a plane of YUV source into a VideoFrame object, taking into account
22 // source and destinations dimensions. 22 // source and destinations dimensions.
23 // 23 //
24 // NOTE: rows is *not* the same as height! 24 // NOTE: rows is *not* the same as height!
25 MEDIA_EXPORT void CopyYPlane(const uint8* source, int stride, int rows, 25 MEDIA_EXPORT void CopyYPlane(const uint8* source, int stride, int rows,
26 VideoFrame* frame); 26 VideoFrame* frame);
27 MEDIA_EXPORT void CopyUPlane(const uint8* source, int stride, int rows, 27 MEDIA_EXPORT void CopyUPlane(const uint8* source, int stride, int rows,
28 VideoFrame* frame); 28 VideoFrame* frame);
29 MEDIA_EXPORT void CopyVPlane(const uint8* source, int stride, int rows, 29 MEDIA_EXPORT void CopyVPlane(const uint8* source, int stride, int rows,
30 VideoFrame* frame); 30 VideoFrame* frame);
31 MEDIA_EXPORT void CopyAPlane(const uint8* source, int stride, int rows,
32 VideoFrame* frame);
33
34 // Sets A Plane values to be completely opaque (all 255's)
35 MEDIA_EXPORT void ClearAPlane(int stride, int rows, VideoFrame* frame);
Tom Finegan 2013/02/25 22:56:06 Hmm... s/ClearAPlane/x/ ? Where x is: OpaqueAP
vignesh 2013/02/25 23:33:14 I prefer MakeOpaqueAPlane as it seems consistent w
31 36
32 // Fills |frame| containing YUV data to the given color values. 37 // Fills |frame| containing YUV data to the given color values.
33 MEDIA_EXPORT void FillYUV(VideoFrame* frame, uint8 y, uint8 u, uint8 v); 38 MEDIA_EXPORT void FillYUV(VideoFrame* frame, uint8 y, uint8 u, uint8 v);
34 39
35 } // namespace media 40 } // namespace media
36 41
37 #endif // MEDIA_BASE_VIDEO_UTIL_H_ 42 #endif // MEDIA_BASE_VIDEO_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698