| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |