diff --git a/src/CoreVideo/CVPixelFormatDescription.cs b/src/CoreVideo/CVPixelFormatDescription.cs index d9ae13d078ca..e224889bcbee 100644 --- a/src/CoreVideo/CVPixelFormatDescription.cs +++ b/src/CoreVideo/CVPixelFormatDescription.cs @@ -147,6 +147,16 @@ public static class CVPixelFormatDescription { #endif public static readonly NSString ContainsGrayscaleKey; +#if NET + [SupportedOSPlatform ("ios16.0")] + [SupportedOSPlatform ("maccatalyst16.0")] + [SupportedOSPlatform ("macos13.0")] + [SupportedOSPlatform ("tvos16.0")] +#else + [Mac (13,0), iOS (16,0), TV (16,0), MacCatalyst (16,0)] +#endif + public static readonly NSString ContainsSenselArray; + static CVPixelFormatDescription () { var handle = Libraries.CoreVideo.Handle; @@ -185,6 +195,9 @@ static CVPixelFormatDescription () // Xcode 10 ContainsGrayscaleKey = Dlfcn.GetStringConstant (handle, "kCVPixelFormatContainsGrayscale")!; + + // Xcode 14 + ContainsSenselArray = Dlfcn.GetStringConstant (handle, "kCVPixelFormatContainsSenselArray")!; } // note: bad documentation, ref: https://bugzilla.xamarin.com/show_bug.cgi?id=13917 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreVideo.todo b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreVideo.todo index 57eb54970192..4816df6f9cf8 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreVideo.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-CoreVideo.todo @@ -1,4 +1,3 @@ -!missing-field! kCVPixelFormatContainsSenselArray not bound !missing-pinvoke! CVDisplayLinkCreateWithActiveCGDisplays is not bound !missing-pinvoke! CVDisplayLinkCreateWithCGDisplay is not bound !missing-pinvoke! CVDisplayLinkCreateWithCGDisplays is not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-CoreVideo.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-CoreVideo.ignore index 606a6ecd90c0..ba0325c4422e 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-CoreVideo.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-CoreVideo.ignore @@ -34,6 +34,7 @@ !missing-field! kCVPixelFormatPlanes not bound !missing-field! kCVPixelFormatQDCompatibility not bound !missing-field! kCVPixelFormatVerticalSubsampling not bound +!missing-field! kCVPixelFormatContainsSenselArray not bound !missing-field! kCVZeroTime not bound !missing-pinvoke! CVImageBufferCreateColorSpaceFromAttachments is not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreVideo.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreVideo.todo deleted file mode 100644 index 5932e04da8c0..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreVideo.todo +++ /dev/null @@ -1 +0,0 @@ -!missing-field! kCVPixelFormatContainsSenselArray not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreVideo.todo b/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreVideo.todo deleted file mode 100644 index 5932e04da8c0..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreVideo.todo +++ /dev/null @@ -1 +0,0 @@ -!missing-field! kCVPixelFormatContainsSenselArray not bound diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-CoreVideo.todo b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-CoreVideo.todo deleted file mode 100644 index 5932e04da8c0..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-CoreVideo.todo +++ /dev/null @@ -1 +0,0 @@ -!missing-field! kCVPixelFormatContainsSenselArray not bound diff --git a/tests/xtro-sharpie/common-CoreVideo.ignore b/tests/xtro-sharpie/common-CoreVideo.ignore index 606a6ecd90c0..ba0325c4422e 100644 --- a/tests/xtro-sharpie/common-CoreVideo.ignore +++ b/tests/xtro-sharpie/common-CoreVideo.ignore @@ -34,6 +34,7 @@ !missing-field! kCVPixelFormatPlanes not bound !missing-field! kCVPixelFormatQDCompatibility not bound !missing-field! kCVPixelFormatVerticalSubsampling not bound +!missing-field! kCVPixelFormatContainsSenselArray not bound !missing-field! kCVZeroTime not bound !missing-pinvoke! CVImageBufferCreateColorSpaceFromAttachments is not bound diff --git a/tests/xtro-sharpie/iOS-CoreVideo.todo b/tests/xtro-sharpie/iOS-CoreVideo.todo deleted file mode 100644 index 5932e04da8c0..000000000000 --- a/tests/xtro-sharpie/iOS-CoreVideo.todo +++ /dev/null @@ -1 +0,0 @@ -!missing-field! kCVPixelFormatContainsSenselArray not bound diff --git a/tests/xtro-sharpie/macOS-CoreVideo.todo b/tests/xtro-sharpie/macOS-CoreVideo.todo deleted file mode 100644 index 5932e04da8c0..000000000000 --- a/tests/xtro-sharpie/macOS-CoreVideo.todo +++ /dev/null @@ -1 +0,0 @@ -!missing-field! kCVPixelFormatContainsSenselArray not bound diff --git a/tests/xtro-sharpie/tvOS-CoreVideo.todo b/tests/xtro-sharpie/tvOS-CoreVideo.todo deleted file mode 100644 index 5932e04da8c0..000000000000 --- a/tests/xtro-sharpie/tvOS-CoreVideo.todo +++ /dev/null @@ -1 +0,0 @@ -!missing-field! kCVPixelFormatContainsSenselArray not bound diff --git a/tests/xtro-sharpie/watchOS-CoreVideo.todo b/tests/xtro-sharpie/watchOS-CoreVideo.todo deleted file mode 100644 index 5932e04da8c0..000000000000 --- a/tests/xtro-sharpie/watchOS-CoreVideo.todo +++ /dev/null @@ -1 +0,0 @@ -!missing-field! kCVPixelFormatContainsSenselArray not bound