| 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_VIDEOTOOLBOX_GLUE_H_ | 5 #ifndef MEDIA_BASE_MAC_VIDEOTOOLBOX_GLUE_H_ |
| 6 #define MEDIA_BASE_MAC_VIDEOTOOLBOX_GLUE_H_ | 6 #define MEDIA_BASE_MAC_VIDEOTOOLBOX_GLUE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "media/base/mac/coremedia_glue.h" | 9 #include "media/base/mac/coremedia_glue.h" |
| 10 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 CoreMediaGlue::CMSampleBufferRef sampleBuffer); | 41 CoreMediaGlue::CMSampleBufferRef sampleBuffer); |
| 42 | 42 |
| 43 // Originally from VTSession.h | 43 // Originally from VTSession.h |
| 44 typedef CFTypeRef VTSessionRef; | 44 typedef CFTypeRef VTSessionRef; |
| 45 | 45 |
| 46 // Originally from VTCompressionProperties.h | 46 // Originally from VTCompressionProperties.h |
| 47 CFStringRef kVTCompressionPropertyKey_AllowFrameReordering() const; | 47 CFStringRef kVTCompressionPropertyKey_AllowFrameReordering() const; |
| 48 CFStringRef kVTCompressionPropertyKey_AverageBitRate() const; | 48 CFStringRef kVTCompressionPropertyKey_AverageBitRate() const; |
| 49 CFStringRef kVTCompressionPropertyKey_ColorPrimaries() const; | 49 CFStringRef kVTCompressionPropertyKey_ColorPrimaries() const; |
| 50 CFStringRef kVTCompressionPropertyKey_ExpectedFrameRate() const; | 50 CFStringRef kVTCompressionPropertyKey_ExpectedFrameRate() const; |
| 51 CFStringRef kVTCompressionPropertyKey_MaxFrameDelayCount() const; |
| 51 CFStringRef kVTCompressionPropertyKey_MaxKeyFrameInterval() const; | 52 CFStringRef kVTCompressionPropertyKey_MaxKeyFrameInterval() const; |
| 52 CFStringRef kVTCompressionPropertyKey_MaxKeyFrameIntervalDuration() const; | 53 CFStringRef kVTCompressionPropertyKey_MaxKeyFrameIntervalDuration() const; |
| 53 CFStringRef kVTCompressionPropertyKey_ProfileLevel() const; | 54 CFStringRef kVTCompressionPropertyKey_ProfileLevel() const; |
| 54 CFStringRef kVTCompressionPropertyKey_RealTime() const; | 55 CFStringRef kVTCompressionPropertyKey_RealTime() const; |
| 55 CFStringRef kVTCompressionPropertyKey_TransferFunction() const; | 56 CFStringRef kVTCompressionPropertyKey_TransferFunction() const; |
| 56 CFStringRef kVTCompressionPropertyKey_YCbCrMatrix() const; | 57 CFStringRef kVTCompressionPropertyKey_YCbCrMatrix() const; |
| 57 | 58 |
| 58 CFStringRef kVTEncodeFrameOptionKey_ForceKeyFrame() const; | 59 CFStringRef kVTEncodeFrameOptionKey_ForceKeyFrame() const; |
| 59 | 60 |
| 60 CFStringRef kVTProfileLevel_H264_Baseline_AutoLevel() const; | 61 CFStringRef kVTProfileLevel_H264_Baseline_AutoLevel() const; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 82 VTCompressionSessionRef session, | 83 VTCompressionSessionRef session, |
| 83 CVImageBufferRef imageBuffer, | 84 CVImageBufferRef imageBuffer, |
| 84 CoreMediaGlue::CMTime presentationTimeStamp, | 85 CoreMediaGlue::CMTime presentationTimeStamp, |
| 85 CoreMediaGlue::CMTime duration, | 86 CoreMediaGlue::CMTime duration, |
| 86 CFDictionaryRef frameProperties, | 87 CFDictionaryRef frameProperties, |
| 87 void* sourceFrameRefCon, | 88 void* sourceFrameRefCon, |
| 88 VTEncodeInfoFlags* infoFlagsOut) const; | 89 VTEncodeInfoFlags* infoFlagsOut) const; |
| 89 CVPixelBufferPoolRef VTCompressionSessionGetPixelBufferPool( | 90 CVPixelBufferPoolRef VTCompressionSessionGetPixelBufferPool( |
| 90 VTCompressionSessionRef session) const; | 91 VTCompressionSessionRef session) const; |
| 91 void VTCompressionSessionInvalidate(VTCompressionSessionRef session) const; | 92 void VTCompressionSessionInvalidate(VTCompressionSessionRef session) const; |
| 93 OSStatus VTCompressionSessionCompleteFrames( |
| 94 VTCompressionSessionRef session, |
| 95 CoreMediaGlue::CMTime completeUntilPresentationTimeStamp) const; |
| 92 | 96 |
| 93 // Originally from VTSession.h | 97 // Originally from VTSession.h |
| 94 OSStatus VTSessionSetProperty(VTSessionRef session, | 98 OSStatus VTSessionSetProperty(VTSessionRef session, |
| 95 CFStringRef propertyKey, | 99 CFStringRef propertyKey, |
| 96 CFTypeRef propertyValue) const; | 100 CFTypeRef propertyValue) const; |
| 97 | 101 |
| 98 private: | 102 private: |
| 99 struct Library; | 103 struct Library; |
| 100 VideoToolboxGlue(); | 104 VideoToolboxGlue(); |
| 101 Library* library_; | 105 Library* library_; |
| 102 DISALLOW_COPY_AND_ASSIGN(VideoToolboxGlue); | 106 DISALLOW_COPY_AND_ASSIGN(VideoToolboxGlue); |
| 103 }; | 107 }; |
| 104 | 108 |
| 105 #endif // MEDIA_BASE_MAC_VIDEOTOOLBOX_GLUE_H_ | 109 #endif // MEDIA_BASE_MAC_VIDEOTOOLBOX_GLUE_H_ |
| OLD | NEW |