| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_MAC_COREVIDEO_GLUE_H_ | 5 #ifndef MEDIA_BASE_MAC_COREVIDEO_GLUE_H_ |
| 6 #define MEDIA_BASE_MAC_COREVIDEO_GLUE_H_ | 6 #define MEDIA_BASE_MAC_COREVIDEO_GLUE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | |
| 9 #include "media/base/media_export.h" | 8 #include "media/base/media_export.h" |
| 10 | 9 |
| 11 // Although CoreVideo exists in 10.6, not all of its types and functions were | 10 // Although CoreVideo exists in 10.6, not all of its types and functions were |
| 12 // introduced in that release. Clients can use this class to access types, | 11 // introduced in that release. Clients can use this class to access types, |
| 13 // constants and functions not available in 10.6. | 12 // constants and functions not available in 10.6. |
| 14 class MEDIA_EXPORT CoreVideoGlue { | 13 class MEDIA_EXPORT CoreVideoGlue { |
| 15 public: | 14 public: |
| 16 // Originally from CVPixelBuffer.h | 15 // Originally from CVPixelBuffer.h |
| 17 enum { | 16 enum { |
| 18 kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange = '420v', | 17 kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange = '420v', |
| 19 }; | 18 }; |
| 20 typedef struct CVPlanarPixelBufferInfo_YCbCrPlanar | 19 typedef struct CVPlanarPixelBufferInfo_YCbCrPlanar |
| 21 CVPlanarPixelBufferInfo_YCbCrPlanar; | 20 CVPlanarPixelBufferInfo_YCbCrPlanar; |
| 22 struct CVPlanarPixelBufferInfo_YCbCrBiPlanar { | 21 struct CVPlanarPixelBufferInfo_YCbCrBiPlanar { |
| 23 CVPlanarComponentInfo componentInfoY; | 22 CVPlanarComponentInfo componentInfoY; |
| 24 CVPlanarComponentInfo componentInfoCbCr; | 23 CVPlanarComponentInfo componentInfoCbCr; |
| 25 }; | 24 }; |
| 26 typedef struct CVPlanarPixelBufferInfo_YCbCrBiPlanar | 25 typedef struct CVPlanarPixelBufferInfo_YCbCrBiPlanar |
| 27 CVPlanarPixelBufferInfo_YCbCrBiPlanar; | 26 CVPlanarPixelBufferInfo_YCbCrBiPlanar; |
| 28 | 27 |
| 29 private: | 28 private: |
| 30 DISALLOW_IMPLICIT_CONSTRUCTORS(CoreVideoGlue); | 29 DISALLOW_IMPLICIT_CONSTRUCTORS(CoreVideoGlue); |
| 31 }; | 30 }; |
| 32 | 31 |
| 33 #endif // MEDIA_BASE_MAC_COREVIDEO_GLUE_H_ | 32 #endif // MEDIA_BASE_MAC_COREVIDEO_GLUE_H_ |
| OLD | NEW |