[coreimage] Add missing API found by xtro

This commit is contained in:
Sebastien Pouliot 2018-08-23 09:47:05 -04:00
Родитель 216966ee87
Коммит 5adbf19400
5 изменённых файлов: 18 добавлений и 23 удалений

Просмотреть файл

@ -202,7 +202,6 @@ namespace CoreImage {
} }
[BaseType (typeof (NSObject))] [BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface CIContext { interface CIContext {
#if !MONOMAC || XAMCORE_2_0 #if !MONOMAC || XAMCORE_2_0
[iOS (9,0)][Mac (10,11)] [iOS (9,0)][Mac (10,11)]
@ -238,11 +237,11 @@ namespace CoreImage {
[Export ("initWithOptions:")] [Export ("initWithOptions:")]
IntPtr Constructor ([NullAllowed] NSDictionary options); IntPtr Constructor ([NullAllowed] NSDictionary options);
#if !MONOMAC
[Static] [Static]
[Wrap ("FromOptions ((NSDictionary) null)")] [Export ("context")]
CIContext Create (); CIContext Create ();
#if !MONOMAC
[Static] [Static]
[Export ("contextWithEAGLContext:")] [Export ("contextWithEAGLContext:")]
CIContext FromContext (EAGLContext eaglContext); CIContext FromContext (EAGLContext eaglContext);
@ -1736,11 +1735,6 @@ namespace CoreImage {
[Field ("kCIImageAutoAdjustEnhance"), Internal] [Field ("kCIImageAutoAdjustEnhance"), Internal]
NSString AutoAdjustEnhanceKey { get; } NSString AutoAdjustEnhanceKey { get; }
// [Availability (Deprecated = Platform.iOS_9_0)]
// [Availability (Deprecated = Platform.Mac_10_11)]
// [Export ("autoAdjustmentFilters"), Internal]
// NSArray _GetAutoAdjustmentFilters ();
[Export ("autoAdjustmentFiltersWithOptions:"), Internal] [Export ("autoAdjustmentFiltersWithOptions:"), Internal]
NSArray _GetAutoAdjustmentFilters ([NullAllowed] NSDictionary opts); NSArray _GetAutoAdjustmentFilters ([NullAllowed] NSDictionary opts);
@ -1778,6 +1772,18 @@ namespace CoreImage {
[Export ("imageByApplyingFilter:")] [Export ("imageByApplyingFilter:")]
CIImage CreateByFiltering (string filterName); CIImage CreateByFiltering (string filterName);
[iOS (11, 0)]
[TV (11,0)]
[Mac (10,13)]
[Export ("imageBySamplingLinear")]
CIImage CreateBySamplingLinear ();
[iOS (11, 0)]
[TV (11,0)]
[Mac (10,13)]
[Export ("imageBySamplingNearest")]
CIImage CreateBySamplingNearest ();
[iOS (8,0), Mac (10,10)] [iOS (8,0), Mac (10,10)]
[Field ("kCIImageAutoAdjustCrop"), Internal] [Field ("kCIImageAutoAdjustCrop"), Internal]
NSString AutoAdjustCrop { get; } NSString AutoAdjustCrop { get; }

Просмотреть файл

@ -11,3 +11,7 @@
## bound in informal protocol CIImageProvider ## bound in informal protocol CIImageProvider
!missing-selector! NSObject::provideImageData:bytesPerRow:origin::size::userInfo: not bound !missing-selector! NSObject::provideImageData:bytesPerRow:origin::size::userInfo: not bound
## at some point in time (iOS11/macOS 10.11) this API was removed/deprecated and we added a compatibility
## stub using 'autoAdjustmentFiltersWithOptions:'. Now it's back (in headers but can be ignored)
!missing-selector! CIImage::autoAdjustmentFilters not bound

Просмотреть файл

@ -1,5 +0,0 @@
!missing-selector! +CIContext::context not bound
!missing-selector! CIContext::init not bound
!missing-selector! CIImage::autoAdjustmentFilters not bound
!missing-selector! CIImage::imageBySamplingLinear not bound
!missing-selector! CIImage::imageBySamplingNearest not bound

Просмотреть файл

@ -1,5 +0,0 @@
!missing-selector! +CIContext::context not bound
!missing-selector! CIContext::init not bound
!missing-selector! CIImage::autoAdjustmentFilters not bound
!missing-selector! CIImage::imageBySamplingLinear not bound
!missing-selector! CIImage::imageBySamplingNearest not bound

Просмотреть файл

@ -1,5 +0,0 @@
!missing-selector! +CIContext::context not bound
!missing-selector! CIContext::init not bound
!missing-selector! CIImage::autoAdjustmentFilters not bound
!missing-selector! CIImage::imageBySamplingLinear not bound
!missing-selector! CIImage::imageBySamplingNearest not bound