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

Side by Side 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: nits 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | media/base/video_frame.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_VIDEO_FRAME_H_ 5 #ifndef MEDIA_BASE_VIDEO_FRAME_H_
6 #define MEDIA_BASE_VIDEO_FRAME_H_ 6 #define MEDIA_BASE_VIDEO_FRAME_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/md5.h" 9 #include "base/md5.h"
10 #include "media/base/buffers.h" 10 #include "media/base/buffers.h"
11 #include "ui/gfx/rect.h" 11 #include "ui/gfx/rect.h"
12 #include "ui/gfx/size.h" 12 #include "ui/gfx/size.h"
13 13
14 namespace media { 14 namespace media {
15 15
16 class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> { 16 class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
17 public: 17 public:
18 enum { 18 enum {
19 kFrameSizeAlignment = 16,
20 kFrameSizePadding = 16,
21 kFrameAddressAlignment = 32
22 };
23
24 enum {
19 kMaxPlanes = 3, 25 kMaxPlanes = 3,
20 26
21 kRGBPlane = 0, 27 kRGBPlane = 0,
22 28
23 kYPlane = 0, 29 kYPlane = 0,
24 kUPlane = 1, 30 kUPlane = 1,
25 kVPlane = 2, 31 kVPlane = 2,
26 }; 32 };
27 33
28 // Surface formats roughly based on FOURCC labels, see: 34 // Surface formats roughly based on FOURCC labels, see:
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 base::Closure no_longer_needed_cb_; 211 base::Closure no_longer_needed_cb_;
206 212
207 base::TimeDelta timestamp_; 213 base::TimeDelta timestamp_;
208 214
209 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame); 215 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame);
210 }; 216 };
211 217
212 } // namespace media 218 } // namespace media
213 219
214 #endif // MEDIA_BASE_VIDEO_FRAME_H_ 220 #endif // MEDIA_BASE_VIDEO_FRAME_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/video_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698