Chromium Code Reviews| 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 "build/build_config.h" | |
| 10 #include "media/base/buffers.h" | 11 #include "media/base/buffers.h" |
| 11 #include "ui/gfx/rect.h" | 12 #include "ui/gfx/rect.h" |
| 12 #include "ui/gfx/size.h" | 13 #include "ui/gfx/size.h" |
| 13 | 14 |
| 14 namespace media { | 15 namespace media { |
| 15 | 16 |
| 16 class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> { | 17 class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> { |
| 17 public: | 18 public: |
| 18 enum { | 19 enum { |
| 20 #if defined(ARCH_CPU_ARM_FAMILY) | |
| 21 kAlignmentSize = 16 | |
| 22 #else | |
| 23 kAlignmentSize = 32 | |
|
xhwang
2012/12/02 02:13:13
This is copied from DecoderBuffer. For VideoFrame,
| |
| 24 #endif | |
| 25 }; | |
| 26 | |
| 27 enum { | |
| 19 kMaxPlanes = 3, | 28 kMaxPlanes = 3, |
| 20 | 29 |
| 21 kRGBPlane = 0, | 30 kRGBPlane = 0, |
| 22 | 31 |
| 23 kYPlane = 0, | 32 kYPlane = 0, |
| 24 kUPlane = 1, | 33 kUPlane = 1, |
| 25 kVPlane = 2, | 34 kVPlane = 2, |
| 26 }; | 35 }; |
| 27 | 36 |
| 28 // Surface formats roughly based on FOURCC labels, see: | 37 // 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_; | 214 base::Closure no_longer_needed_cb_; |
| 206 | 215 |
| 207 base::TimeDelta timestamp_; | 216 base::TimeDelta timestamp_; |
| 208 | 217 |
| 209 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame); | 218 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoFrame); |
| 210 }; | 219 }; |
| 211 | 220 |
| 212 } // namespace media | 221 } // namespace media |
| 213 | 222 |
| 214 #endif // MEDIA_BASE_VIDEO_FRAME_H_ | 223 #endif // MEDIA_BASE_VIDEO_FRAME_H_ |
| OLD | NEW |