| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_COREMEDIA_GLUE_H_ | 5 #ifndef MEDIA_BASE_MAC_COREMEDIA_GLUE_H_ |
| 6 #define MEDIA_BASE_MAC_COREMEDIA_GLUE_H_ | 6 #define MEDIA_BASE_MAC_COREMEDIA_GLUE_H_ |
| 7 | 7 |
| 8 #include <CoreVideo/CoreVideo.h> | 8 #include <CoreVideo/CoreVideo.h> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // Originally from CMSampleBuffer.h. | 88 // Originally from CMSampleBuffer.h. |
| 89 static CMBlockBufferRef CMSampleBufferGetDataBuffer(CMSampleBufferRef sbuf); | 89 static CMBlockBufferRef CMSampleBufferGetDataBuffer(CMSampleBufferRef sbuf); |
| 90 static CMFormatDescriptionRef CMSampleBufferGetFormatDescription( | 90 static CMFormatDescriptionRef CMSampleBufferGetFormatDescription( |
| 91 CMSampleBufferRef sbuf); | 91 CMSampleBufferRef sbuf); |
| 92 static CVImageBufferRef CMSampleBufferGetImageBuffer( | 92 static CVImageBufferRef CMSampleBufferGetImageBuffer( |
| 93 CMSampleBufferRef buffer); | 93 CMSampleBufferRef buffer); |
| 94 static CFArrayRef CMSampleBufferGetSampleAttachmentsArray( | 94 static CFArrayRef CMSampleBufferGetSampleAttachmentsArray( |
| 95 CMSampleBufferRef sbuf, | 95 CMSampleBufferRef sbuf, |
| 96 Boolean createIfNecessary); | 96 Boolean createIfNecessary); |
| 97 static CFStringRef kCMSampleAttachmentKey_NotSync(); | 97 static CFStringRef kCMSampleAttachmentKey_NotSync(); |
| 98 static CMTime CMSampleBufferGetPresentationTimeStamp(CMSampleBufferRef sbuf); |
| 98 | 99 |
| 99 // Originally from CMFormatDescription.h. | 100 // Originally from CMFormatDescription.h. |
| 100 static FourCharCode CMFormatDescriptionGetMediaSubType( | 101 static FourCharCode CMFormatDescriptionGetMediaSubType( |
| 101 CMFormatDescriptionRef desc); | 102 CMFormatDescriptionRef desc); |
| 102 static CMVideoDimensions CMVideoFormatDescriptionGetDimensions( | 103 static CMVideoDimensions CMVideoFormatDescriptionGetDimensions( |
| 103 CMVideoFormatDescriptionRef videoDesc); | 104 CMVideoFormatDescriptionRef videoDesc); |
| 104 static OSStatus CMVideoFormatDescriptionGetH264ParameterSetAtIndex( | 105 static OSStatus CMVideoFormatDescriptionGetH264ParameterSetAtIndex( |
| 105 CMFormatDescriptionRef videoDesc, | 106 CMFormatDescriptionRef videoDesc, |
| 106 size_t parameterSetIndex, | 107 size_t parameterSetIndex, |
| 107 const uint8_t** parameterSetPointerOut, | 108 const uint8_t** parameterSetPointerOut, |
| 108 size_t* parameterSetSizeOut, | 109 size_t* parameterSetSizeOut, |
| 109 size_t* parameterSetCountOut, | 110 size_t* parameterSetCountOut, |
| 110 int* NALUnitHeaderLengthOut) | 111 int* NALUnitHeaderLengthOut) |
| 111 /*__OSX_AVAILABLE_STARTING(__MAC_10_9,__IPHONE_7_0)*/; | 112 /*__OSX_AVAILABLE_STARTING(__MAC_10_9,__IPHONE_7_0)*/; |
| 112 | 113 |
| 113 private: | 114 private: |
| 114 DISALLOW_IMPLICIT_CONSTRUCTORS(CoreMediaGlue); | 115 DISALLOW_IMPLICIT_CONSTRUCTORS(CoreMediaGlue); |
| 115 }; | 116 }; |
| 116 | 117 |
| 117 #endif // MEDIA_BASE_MAC_COREMEDIA_GLUE_H_ | 118 #endif // MEDIA_BASE_MAC_COREMEDIA_GLUE_H_ |
| OLD | NEW |