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

Unified Diff: media/base/video_frame.h

Issue 10451051: Provide a Chrome-owned buffer to FFmpeg for video decoding, instead of (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/base/video_frame.cc » ('j') | media/base/video_frame.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame.h
===================================================================
--- media/base/video_frame.h (revision 139175)
+++ media/base/video_frame.h (working copy)
@@ -119,14 +119,15 @@
// context. Calls MD5Update with the context and the contents of the frame.
void HashFrameForTesting(base::MD5Context* context);
- private:
- friend class base::RefCountedThreadSafe<VideoFrame>;
- // Clients must use the static CreateFrame() method to create a new frame.
VideoFrame(Format format,
size_t video_width,
size_t video_height,
base::TimeDelta timestamp,
base::TimeDelta duration);
+ int AllocateAlignedWithStrides(int strides[], int aligned_h);
Ami GONE FROM CHROMIUM 2012/05/26 22:52:34 This change (ctor public, add public allocate meth
+
+private:
+ friend class base::RefCountedThreadSafe<VideoFrame>;
virtual ~VideoFrame();
// Used internally by CreateFrame().
@@ -150,6 +151,7 @@
// Array of data pointers to each plane.
uint8* data_[kMaxPlanes];
+ int is_aligned_alloc_;
// Native texture ID, if this is a NATIVE_TEXTURE frame.
uint32 texture_id_;
« no previous file with comments | « no previous file | media/base/video_frame.cc » ('j') | media/base/video_frame.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698