summaryrefslogtreecommitdiffstats
path: root/media/base/video_frame.h
diff options
context:
space:
mode:
authorjiesun@google.com <jiesun@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-22 23:27:37 +0000
committerjiesun@google.com <jiesun@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-22 23:27:37 +0000
commitdf70364cb18dfc663b5c155adb7892681669f7ea (patch)
treed34cca58dc53c18f740522e78bc6fa034dc1b7b5 /media/base/video_frame.h
parentd19d94eb576de668661b2fedf7a681b2a90e55e1 (diff)
downloadchromium_src-df70364cb18dfc663b5c155adb7892681669f7ea.zip
chromium_src-df70364cb18dfc663b5c155adb7892681669f7ea.tar.gz
chromium_src-df70364cb18dfc663b5c155adb7892681669f7ea.tar.bz2
media: preparation for recycle buffer.
1. add ffmpeg_video_allocator.cc/h 2. add omx_bufferheader type and av_frame type of video_frame. please see http://codereview.chromium.org/2992002/show for full commit. this is used to split that change to reviewable size of changelist. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=53348 Review URL: http://codereview.chromium.org/3006001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53418 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/video_frame.h')
-rw-r--r--media/base/video_frame.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index ddf6644..a135bdf 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -39,7 +39,7 @@ class VideoFrame : public StreamSample {
enum SurfaceType {
TYPE_SYSTEM_MEMORY,
- TYPE_OMX_BUFFER_HEAD,
+ TYPE_OMXBUFFERHEAD,
TYPE_EGL_IMAGE,
};
@@ -56,13 +56,16 @@ class VideoFrame : public StreamSample {
// Creates a new frame with given parameters. Buffers for the frame are
// provided externally. Reference to the buffers and strides are copied
// from |data| and |strides| respectively.
- static void CreateFrameExternal(Format format,
+ static void CreateFrameExternal(SurfaceType type,
+ Format format,
size_t width,
size_t height,
+ size_t planes,
uint8* const data[kMaxPlanes],
const int32 strides[kMaxPlanes],
base::TimeDelta timestamp,
base::TimeDelta duration,
+ void* private_buffer,
scoped_refptr<VideoFrame>* frame_out);
// Creates a frame with format equals to VideoFrame::EMPTY, width, height
@@ -74,16 +77,6 @@ class VideoFrame : public StreamSample {
static void CreateBlackFrame(int width, int height,
scoped_refptr<VideoFrame>* frame_out);
- // Creates a new frame of |type| with given parameters.
- static void CreatePrivateFrame(VideoFrame::SurfaceType type,
- VideoFrame::Format format,
- size_t width,
- size_t height,
- base::TimeDelta timestamp,
- base::TimeDelta duration,
- void* private_buffer,
- scoped_refptr<VideoFrame>* frame_out);
-
virtual SurfaceType type() const { return type_; }
Format format() const { return format_; }