summaryrefslogtreecommitdiffstats
path: root/media/base/buffers.h
diff options
context:
space:
mode:
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