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

Unified Diff: media/base/video_frame.h

Issue 11308310: Replace av_malloc with AlignedAlloc for memory allocation in VideoFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index 09e6b43baae128792d8827c12e527b935815d28f..3483e9191a91307ebb9bb8253f8fb3becac3ed09 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -16,6 +16,12 @@ namespace media {
class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
public:
enum {
+ kFrameSizeAlignment = 16,
+ kFrameSizePadding = 16,
DaleCurtis 2012/12/07 19:11:15 I'm assuming there's nothing wrong with making thi
xhwang 2012/12/07 20:25:33 In ffmpeg code this is actually 16 (See video_get_
rbultje1 2012/12/07 20:48:40 Right, 15 or 16 will make no practical difference.
+ kFrameAddressAlignment = 32
+ };
+
+ enum {
kMaxPlanes = 3,
kRGBPlane = 0,
« 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