| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "media/base/buffers.h" | 8 #include "media/base/buffers.h" |
| 9 | 9 |
| 10 namespace media { | 10 namespace media { |
| 11 | 11 |
| 12 class MEDIA_EXPORT VideoFrame : public StreamSample { | 12 class VideoFrame : public StreamSample { |
| 13 public: | 13 public: |
| 14 static const size_t kMaxPlanes = 3; | 14 static const size_t kMaxPlanes = 3; |
| 15 | 15 |
| 16 static const size_t kNumRGBPlanes = 1; | 16 static const size_t kNumRGBPlanes = 1; |
| 17 static const size_t kRGBPlane = 0; | 17 static const size_t kRGBPlane = 0; |
| 18 | 18 |
| 19 static const size_t kNumYUVPlanes = 3; | 19 static const size_t kNumYUVPlanes = 3; |
| 20 static const size_t kNumNV12Planes = 2; | 20 static const size_t kNumNV12Planes = 2; |
| 21 static const size_t kYPlane = 0; | 21 static const size_t kYPlane = 0; |
| 22 static const size_t kUPlane = 1; | 22 static const size_t kUPlane = 1; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 // Array of data pointers to each plane. | 115 // Array of data pointers to each plane. |
| 116 uint8* data_[kMaxPlanes]; | 116 uint8* data_[kMaxPlanes]; |
| 117 | 117 |
| 118 DISALLOW_COPY_AND_ASSIGN(VideoFrame); | 118 DISALLOW_COPY_AND_ASSIGN(VideoFrame); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace media | 121 } // namespace media |
| 122 | 122 |
| 123 #endif // MEDIA_BASE_VIDEO_FRAME_H_ | 123 #endif // MEDIA_BASE_VIDEO_FRAME_H_ |
| OLD | NEW |