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

Side by Side Diff: media/base/video_frame.h

Issue 1254953004: Hacking ffvp9 decoder support for profiling. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Supress windows warning Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « media/base/media_switches.cc ('k') | media/base/video_frame_unittest.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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 16 matching lines...) Expand all
27 #if defined(OS_MACOSX) 27 #if defined(OS_MACOSX)
28 #include <CoreVideo/CVPixelBuffer.h> 28 #include <CoreVideo/CVPixelBuffer.h>
29 #include "base/mac/scoped_cftyperef.h" 29 #include "base/mac/scoped_cftyperef.h"
30 #endif 30 #endif
31 31
32 namespace media { 32 namespace media {
33 33
34 class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> { 34 class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
35 public: 35 public:
36 enum { 36 enum {
37 kFrameSizeAlignment = 16, 37 // These values are chosen according to like values in FFmpeg. See static
38 kFrameSizePadding = 16, 38 // asserts in ffmpeg_common.
39 kFrameSizeAlignment = 32,
40 kFrameSizePadding = 47,
39 kFrameAddressAlignment = 32 41 kFrameAddressAlignment = 32
40 }; 42 };
41 43
42 enum { 44 enum {
43 kMaxPlanes = 4, 45 kMaxPlanes = 4,
44 46
45 kYPlane = 0, 47 kYPlane = 0,
46 kARGBPlane = kYPlane, 48 kARGBPlane = kYPlane,
47 kUPlane = 1, 49 kUPlane = 1,
48 kUVPlane = kUPlane, 50 kUVPlane = kUPlane,
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 gpu::SyncToken release_sync_token_; 563 gpu::SyncToken release_sync_token_;
562 564
563 VideoFrameMetadata metadata_; 565 VideoFrameMetadata metadata_;
564 566
565 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame); 567 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame);
566 }; 568 };
567 569
568 } // namespace media 570 } // namespace media
569 571
570 #endif // MEDIA_BASE_VIDEO_FRAME_H_ 572 #endif // MEDIA_BASE_VIDEO_FRAME_H_
OLDNEW
« no previous file with comments | « media/base/media_switches.cc ('k') | media/base/video_frame_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698