| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |