summaryrefslogtreecommitdiffstats
path: root/media/base/buffers.h
diff options
context:
space:
mode:
authorralphl@chromium.org <ralphl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-11 01:06:36 +0000
committerralphl@chromium.org <ralphl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-11 01:06:36 +0000
commit193e1cdbcaac17d0fac6093f9bd63cd5477e4325 (patch)
tree12a1a18a0ceca1084c86d436c215b92ff6620597 /media/base/buffers.h
parent0b0fe3b6803ba1ed2d6b565474d93ccec34fedb9 (diff)
downloadchromium_src-193e1cdbcaac17d0fac6093f9bd63cd5477e4325.zip
chromium_src-193e1cdbcaac17d0fac6093f9bd63cd5477e4325.tar.gz
chromium_src-193e1cdbcaac17d0fac6093f9bd63cd5477e4325.tar.bz2
Implementaion of the VideoFrame interaface plus unit tests. Modified the mock video decoder to use the new frame implementation.
Review URL: http://codereview.chromium.org/42038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11410 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/buffers.h')
-rw-r--r--media/base/buffers.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/media/base/buffers.h b/media/base/buffers.h
index 972a124..dddc5d3 100644
--- a/media/base/buffers.h
+++ b/media/base/buffers.h
@@ -121,6 +121,14 @@ class WritableBuffer : public Buffer {
struct VideoSurface {
static const size_t kMaxPlanes = 3;
+ static const size_t kNumRGBPlanes = 1;
+ static const size_t kRGBPlane = 0;
+
+ static const size_t kNumYUVPlanes = 3;
+ static const size_t kYPlane = 0;
+ static const size_t kUPlane = 1;
+ static const size_t kVPlane = 2;
+
// Surface formats roughly based on FOURCC labels, see:
// http://www.fourcc.org/rgb.php
// http://www.fourcc.org/yuv.php