summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-07 19:01:52 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-07 19:01:52 +0000
commitf2c5aad3acb3f1b2afaca4c98dd29ac1320b43dd (patch)
treef6286df470005fc883021df4d15387afadc38b2f /media
parent3b098bbef42fa93a2c17c96c888a65564191f767 (diff)
downloadchromium_src-f2c5aad3acb3f1b2afaca4c98dd29ac1320b43dd.zip
chromium_src-f2c5aad3acb3f1b2afaca4c98dd29ac1320b43dd.tar.gz
chromium_src-f2c5aad3acb3f1b2afaca4c98dd29ac1320b43dd.tar.bz2
Implement Gles2VideoDecoderContext
Allocate textures for video frames in Gles2VideoDecoderContext. BUG=53714 TEST=Tree is green. This doesn't work yet. Review URL: http://codereview.chromium.org/3391022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61825 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r--media/base/video_frame.cc3
-rw-r--r--media/base/video_frame.h3
2 files changed, 5 insertions, 1 deletions
diff --git a/media/base/video_frame.cc b/media/base/video_frame.cc
index 8e3b245..6d6b7f4 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -8,7 +8,8 @@
namespace media {
-static size_t GetNumberOfPlanes(VideoFrame::Format format) {
+// static
+size_t VideoFrame::GetNumberOfPlanes(VideoFrame::Format format) {
switch (format) {
case VideoFrame::RGB555:
case VideoFrame::RGB565:
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index 33d3779..04c7927 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -58,6 +58,9 @@ class VideoFrame : public StreamSample {
// don't need to bind to a specific version of D3D.
typedef void* D3dTexture;
+ // Get the number of planes for a video frame format.
+ static size_t GetNumberOfPlanes(VideoFrame::Format format);
+
// Creates a new frame in system memory with given parameters. Buffers for
// the frame are allocated but not initialized.
static void CreateFrame(Format format,