Vendor dependencies for 0.3.0 release

This commit is contained in:
2025-09-27 10:29:08 -05:00
parent 0c8d39d483
commit 82ab7f317b
26803 changed files with 16134934 additions and 0 deletions

View File

@@ -0,0 +1 @@
{"files":{"Cargo.modified.toml":"2f2a62e2f5c1abcbc489be6ce94cd6825d23edad27d536324fa4bc84657a4af9","Cargo.toml":"695f382dee4539af619769936f35c32dfe3e808d982984e524a67b26d8281618","README.md":"0f963b43b6c6699efc8e8dde1225dbb0a1b925f9eb9906cccd5dadeb6b0b1073","src/generated/CIBarcodeDescriptor.rs":"26f7d890d0b9216bcabbb8ce6f3d85a10023615f1352b3a59a867255f45119e3","src/generated/CIColor.rs":"71529a1d8bcd8a1e538f529d755cf9071954ad7a9ae5a1979f8b8dda23c1ba06","src/generated/CIContext.rs":"d482a206ef05254a5c43ef2df4bf5b49b58f65ac717873048cf1f591876039ef","src/generated/CIDetector.rs":"2f33fbf26f97bd764262f7247842b6f9b20eb1090515d6f1b1b98e7f7318c184","src/generated/CIFeature.rs":"e02f792647e15341886206991320ea593b466b849a8d872767901debd9af441f","src/generated/CIFilter.rs":"3edc34f1b3bfd36a33a153900e7722a60bc2977f754b857d45cf1c866e158a43","src/generated/CIFilterConstructor.rs":"d98d637ae5de9b9764f02149fb60cb7e187044dcc62c7f7dc018f2bb8e191c0e","src/generated/CIFilterGenerator.rs":"f76f14889196d3ce36b8fa31d880659670453ac089abd950a7dd0f5d3f1ff730","src/generated/CIFilterShape.rs":"289dfe0b904ba2410b9da3e1f62ab889bba639462cf64803d84dd27883b5f98f","src/generated/CIImage.rs":"54689aa0b1b1a664b86d07c6d15ce0e77348385818480fefbf97a5ab1cc5ee60","src/generated/CIImageAccumulator.rs":"96999df8f622f7deba9cc460b50f5cb3ab93d526348a673d138409a79c22642e","src/generated/CIImageProcessor.rs":"da9899e615edcd6ce283088e26f374e1512ca047c5efc4ac536d18a057efd6c1","src/generated/CIImageProvider.rs":"e01cb91e84cc0f88cbae1a39e2728103d41561f74ca5da633dd637edbf5c21a0","src/generated/CIKernel.rs":"4924d4a46b9b14927819af66241143a8b6afcb3f85d74f4b88e0d6f65d0173b4","src/generated/CIKernelMetalLib.rs":"c2c9ef4610ebc5c298bce3ce70d3e59d266465eefa07b8337f9e8d06315a7387","src/generated/CIPlugIn.rs":"13498a3292c4996f882eab0c27ea053036a77e4c2155343d9d36a86872a4ea0e","src/generated/CIPlugInInterface.rs":"04329bbdfcbf3cf35c55c3da6f1654b8d12de81887329c515f2c3a30ce8b95f3","src/generated/CIRAWFilter.rs":"a530661d65645662bb4808ca9b6a86fbbc917a7c81f0ab9c4d8e93fa1ca906dc","src/generated/CIRAWFilter_Deprecated.rs":"03ab2ac404025698f7f684aad9ac675a4ca52c42acb9e6c9b513a28a7fd137ea","src/generated/CIRenderDestination.rs":"da123936000ceb78cc77ffd25cabc1f992d92c17a09102c91c2e9e609c834f62","src/generated/CISampler.rs":"d5ac8b0fe4d75a113eae0964034bdca99aae3c0fecfcced679d34ef2395502a9","src/generated/CIVector.rs":"cb3411c4e51b53c45bed03ea201c6b423b7dac8bce4a804ada546464532c70cf","src/generated/CoreImageDefines.rs":"c2c9ef4610ebc5c298bce3ce70d3e59d266465eefa07b8337f9e8d06315a7387","src/generated/mod.rs":"cdaa120715c8460925fdd4e5f7f700f3c985b47e397ee34dccf0dab253bf8fe5","src/lib.rs":"838333390f45cc93956ba8632fdde9c60b112a2e398340ae5f37c93987b9682d","translation-config.toml":"15f9eba3b96ed7cfb5dabc24ac55958a7b3b36b9489c7d70cb16cd6d219b8e9c"},"package":"55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80"}

View File

@@ -0,0 +1,10 @@
[features]
# Deprecated; this is the default on Apple platforms, and not applicable on other platforms.
apple = []
# Runtime selection. See `objc-sys` for details.
gnustep-1-7 = ["objc2/gnustep-1-7", "block2?/gnustep-1-7", "objc2-foundation/gnustep-1-7"]
gnustep-1-8 = ["gnustep-1-7", "objc2/gnustep-1-8", "block2?/gnustep-1-8", "objc2-foundation/gnustep-1-8"]
gnustep-1-9 = ["gnustep-1-8", "objc2/gnustep-1-9", "block2?/gnustep-1-9", "objc2-foundation/gnustep-1-9"]
gnustep-2-0 = ["gnustep-1-9", "objc2/gnustep-2-0", "block2?/gnustep-2-0", "objc2-foundation/gnustep-2-0"]
gnustep-2-1 = ["gnustep-2-0", "objc2/gnustep-2-1", "block2?/gnustep-2-1", "objc2-foundation/gnustep-2-1"]

283
vendor/objc2-core-image/Cargo.toml vendored Normal file
View File

@@ -0,0 +1,283 @@
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2021"
rust-version = "1.60"
name = "objc2-core-image"
version = "0.2.2"
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bindings to the CoreImage framework"
readme = "README.md"
keywords = [
"cocoa",
"apple",
"framework",
"macos",
"ios",
]
categories = [
"api-bindings",
"development-tools::ffi",
"external-ffi-bindings",
"os::macos-apis",
]
license = "MIT"
repository = "https://github.com/madsmtm/objc2"
[package.metadata.docs.rs]
default-target = "aarch64-apple-darwin"
features = ["all"]
targets = [
"aarch64-apple-darwin",
"x86_64-apple-darwin",
"aarch64-apple-ios",
"aarch64-apple-tvos",
"aarch64-apple-ios-macabi",
]
[lib]
name = "objc2_core_image"
path = "src/lib.rs"
[dependencies.block2]
version = "0.5.1"
optional = true
default-features = false
[dependencies.objc2]
version = "0.5.2"
default-features = false
[dependencies.objc2-foundation]
version = "0.2.2"
default-features = false
[dependencies.objc2-metal]
version = "0.2.2"
optional = true
default-features = false
[features]
CIBarcodeDescriptor = [
"objc2-foundation/NSData",
"objc2-foundation/NSObject",
"objc2-foundation/NSUserActivity",
]
CIColor = [
"objc2-foundation/NSGeometry",
"objc2-foundation/NSObject",
"objc2-foundation/NSString",
]
CIContext = [
"objc2-foundation/NSData",
"objc2-foundation/NSDictionary",
"objc2-foundation/NSError",
"objc2-foundation/NSGeometry",
"objc2-foundation/NSString",
"objc2-foundation/NSURL",
"objc2-metal?/MTLCommandQueue",
"objc2-metal?/MTLDevice",
]
CIDetector = [
"objc2-foundation/NSArray",
"objc2-foundation/NSDictionary",
"objc2-foundation/NSString",
]
CIFeature = [
"objc2-foundation/NSArray",
"objc2-foundation/NSGeometry",
"objc2-foundation/NSObject",
"objc2-foundation/NSString",
]
CIFilter = [
"objc2-foundation/NSArray",
"objc2-foundation/NSData",
"objc2-foundation/NSDictionary",
"objc2-foundation/NSGeometry",
"objc2-foundation/NSObject",
"objc2-foundation/NSString",
"objc2-foundation/NSURL",
]
CIFilterConstructor = ["objc2-foundation/NSString"]
CIFilterGenerator = [
"objc2-foundation/NSDictionary",
"objc2-foundation/NSObject",
"objc2-foundation/NSString",
"objc2-foundation/NSURL",
]
CIFilterShape = [
"objc2-foundation/NSGeometry",
"objc2-foundation/NSObject",
]
CIImage = [
"objc2-foundation/NSArray",
"objc2-foundation/NSData",
"objc2-foundation/NSDictionary",
"objc2-foundation/NSGeometry",
"objc2-foundation/NSObject",
"objc2-foundation/NSString",
"objc2-foundation/NSURL",
"objc2-metal?/MTLResource",
"objc2-metal?/MTLTexture",
]
CIImageAccumulator = ["objc2-foundation/NSGeometry"]
CIImageProcessor = [
"objc2-foundation/NSArray",
"objc2-foundation/NSDictionary",
"objc2-foundation/NSError",
"objc2-foundation/NSGeometry",
"objc2-foundation/NSString",
"objc2-metal?/MTLCommandBuffer",
"objc2-metal?/MTLResource",
"objc2-metal?/MTLTexture",
]
CIImageProvider = ["objc2-foundation/NSString"]
CIKernel = [
"objc2-foundation/NSArray",
"objc2-foundation/NSData",
"objc2-foundation/NSError",
"objc2-foundation/NSGeometry",
"objc2-foundation/NSString",
]
CIKernelMetalLib = []
CIPlugIn = ["objc2-foundation/NSURL"]
CIPlugInInterface = []
CIRAWFilter = [
"objc2-foundation/NSArray",
"objc2-foundation/NSData",
"objc2-foundation/NSDictionary",
"objc2-foundation/NSGeometry",
"objc2-foundation/NSObject",
"objc2-foundation/NSString",
"objc2-foundation/NSURL",
]
CIRAWFilter_Deprecated = [
"objc2-foundation/NSArray",
"objc2-foundation/NSData",
"objc2-foundation/NSDictionary",
"objc2-foundation/NSString",
"objc2-foundation/NSURL",
]
CIRenderDestination = [
"objc2-foundation/NSDate",
"objc2-foundation/NSError",
"objc2-foundation/NSGeometry",
"objc2-metal?/MTLCommandBuffer",
"objc2-metal?/MTLPixelFormat",
"objc2-metal?/MTLResource",
"objc2-metal?/MTLTexture",
]
CISampler = [
"objc2-foundation/NSDictionary",
"objc2-foundation/NSGeometry",
"objc2-foundation/NSObject",
"objc2-foundation/NSString",
]
CIVector = [
"objc2-foundation/NSGeometry",
"objc2-foundation/NSObject",
"objc2-foundation/NSString",
]
CoreImageDefines = []
all = [
"CIBarcodeDescriptor",
"CIColor",
"CIContext",
"CIDetector",
"CIFeature",
"CIFilter",
"CIFilterConstructor",
"CIFilterGenerator",
"CIFilterShape",
"CIImage",
"CIImageAccumulator",
"CIImageProcessor",
"CIImageProvider",
"CIKernel",
"CIKernelMetalLib",
"CIPlugIn",
"CIPlugInInterface",
"CIRAWFilter",
"CIRAWFilter_Deprecated",
"CIRenderDestination",
"CISampler",
"CIVector",
"CoreImageDefines",
"block2",
"objc2-metal",
]
alloc = [
"block2?/alloc",
"objc2/alloc",
"objc2-foundation/alloc",
"objc2-metal?/alloc",
]
apple = []
block2 = [
"dep:block2",
"objc2-foundation/block2",
"objc2-metal?/block2",
]
default = ["std"]
gnustep-1-7 = [
"objc2/gnustep-1-7",
"block2?/gnustep-1-7",
"objc2-foundation/gnustep-1-7",
]
gnustep-1-8 = [
"gnustep-1-7",
"objc2/gnustep-1-8",
"block2?/gnustep-1-8",
"objc2-foundation/gnustep-1-8",
]
gnustep-1-9 = [
"gnustep-1-8",
"objc2/gnustep-1-9",
"block2?/gnustep-1-9",
"objc2-foundation/gnustep-1-9",
]
gnustep-2-0 = [
"gnustep-1-9",
"objc2/gnustep-2-0",
"block2?/gnustep-2-0",
"objc2-foundation/gnustep-2-0",
]
gnustep-2-1 = [
"gnustep-2-0",
"objc2/gnustep-2-1",
"block2?/gnustep-2-1",
"objc2-foundation/gnustep-2-1",
]
objc2-metal = ["dep:objc2-metal"]
std = [
"alloc",
"block2?/std",
"objc2/std",
"objc2-foundation/std",
"objc2-metal?/std",
]
[lints.clippy]
cargo = "warn"
ptr_as_ptr = "warn"
[lints.rust]
elided_lifetimes_in_paths = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
non_ascii_idents = "deny"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "deny"

14
vendor/objc2-core-image/README.md vendored Normal file
View File

@@ -0,0 +1,14 @@
# `objc2-core-image`
[![Latest version](https://badgen.net/crates/v/objc2-core-image)](https://crates.io/crates/objc2-core-image)
[![License](https://badgen.net/badge/license/MIT/blue)](../LICENSE.txt)
[![Documentation](https://docs.rs/objc2-core-image/badge.svg)](https://docs.rs/objc2-core-image/)
[![CI](https://github.com/madsmtm/objc2/actions/workflows/ci.yml/badge.svg)](https://github.com/madsmtm/objc2/actions/workflows/ci.yml)
Rust bindings to Apple's framework CoreImage.
This README is kept intentionally small to consolidate the documentation, see
[the Rust docs](https://docs.rs/objc2-core-image/) for more details on this crate.
This crate is part of the [`objc2` project](https://github.com/madsmtm/objc2),
see that for related crates.

View File

@@ -0,0 +1,346 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIBarcodeDescriptor;
unsafe impl ClassType for CIBarcodeDescriptor {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CIBarcodeDescriptor {}
unsafe impl NSCopying for CIBarcodeDescriptor {}
unsafe impl NSObjectProtocol for CIBarcodeDescriptor {}
unsafe impl NSSecureCoding for CIBarcodeDescriptor {}
extern_methods!(
unsafe impl CIBarcodeDescriptor {}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIBarcodeDescriptor {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CIQRCodeErrorCorrectionLevel(pub NSInteger);
impl CIQRCodeErrorCorrectionLevel {
#[doc(alias = "CIQRCodeErrorCorrectionLevelL")]
pub const L: Self = Self(b'L' as _);
#[doc(alias = "CIQRCodeErrorCorrectionLevelM")]
pub const M: Self = Self(b'M' as _);
#[doc(alias = "CIQRCodeErrorCorrectionLevelQ")]
pub const Q: Self = Self(b'Q' as _);
#[doc(alias = "CIQRCodeErrorCorrectionLevelH")]
pub const H: Self = Self(b'H' as _);
}
unsafe impl Encode for CIQRCodeErrorCorrectionLevel {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for CIQRCodeErrorCorrectionLevel {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIQRCodeDescriptor;
unsafe impl ClassType for CIQRCodeDescriptor {
#[inherits(NSObject)]
type Super = CIBarcodeDescriptor;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CIQRCodeDescriptor {}
unsafe impl NSCopying for CIQRCodeDescriptor {}
unsafe impl NSObjectProtocol for CIQRCodeDescriptor {}
unsafe impl NSSecureCoding for CIQRCodeDescriptor {}
extern_methods!(
unsafe impl CIQRCodeDescriptor {
#[method_id(@__retain_semantics Other errorCorrectedPayload)]
pub unsafe fn errorCorrectedPayload(&self) -> Retained<NSData>;
#[method(symbolVersion)]
pub unsafe fn symbolVersion(&self) -> NSInteger;
#[method(maskPattern)]
pub unsafe fn maskPattern(&self) -> u8;
#[method(errorCorrectionLevel)]
pub unsafe fn errorCorrectionLevel(&self) -> CIQRCodeErrorCorrectionLevel;
#[method_id(@__retain_semantics Init initWithPayload:symbolVersion:maskPattern:errorCorrectionLevel:)]
pub unsafe fn initWithPayload_symbolVersion_maskPattern_errorCorrectionLevel(
this: Allocated<Self>,
error_corrected_payload: &NSData,
symbol_version: NSInteger,
mask_pattern: u8,
error_correction_level: CIQRCodeErrorCorrectionLevel,
) -> Option<Retained<Self>>;
#[method_id(@__retain_semantics Other descriptorWithPayload:symbolVersion:maskPattern:errorCorrectionLevel:)]
pub unsafe fn descriptorWithPayload_symbolVersion_maskPattern_errorCorrectionLevel(
error_corrected_payload: &NSData,
symbol_version: NSInteger,
mask_pattern: u8,
error_correction_level: CIQRCodeErrorCorrectionLevel,
) -> Option<Retained<Self>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIQRCodeDescriptor {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIAztecCodeDescriptor;
unsafe impl ClassType for CIAztecCodeDescriptor {
#[inherits(NSObject)]
type Super = CIBarcodeDescriptor;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CIAztecCodeDescriptor {}
unsafe impl NSCopying for CIAztecCodeDescriptor {}
unsafe impl NSObjectProtocol for CIAztecCodeDescriptor {}
unsafe impl NSSecureCoding for CIAztecCodeDescriptor {}
extern_methods!(
unsafe impl CIAztecCodeDescriptor {
#[method_id(@__retain_semantics Other errorCorrectedPayload)]
pub unsafe fn errorCorrectedPayload(&self) -> Retained<NSData>;
#[method(isCompact)]
pub unsafe fn isCompact(&self) -> bool;
#[method(layerCount)]
pub unsafe fn layerCount(&self) -> NSInteger;
#[method(dataCodewordCount)]
pub unsafe fn dataCodewordCount(&self) -> NSInteger;
#[method_id(@__retain_semantics Init initWithPayload:isCompact:layerCount:dataCodewordCount:)]
pub unsafe fn initWithPayload_isCompact_layerCount_dataCodewordCount(
this: Allocated<Self>,
error_corrected_payload: &NSData,
is_compact: bool,
layer_count: NSInteger,
data_codeword_count: NSInteger,
) -> Option<Retained<Self>>;
#[method_id(@__retain_semantics Other descriptorWithPayload:isCompact:layerCount:dataCodewordCount:)]
pub unsafe fn descriptorWithPayload_isCompact_layerCount_dataCodewordCount(
error_corrected_payload: &NSData,
is_compact: bool,
layer_count: NSInteger,
data_codeword_count: NSInteger,
) -> Option<Retained<Self>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIAztecCodeDescriptor {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIPDF417CodeDescriptor;
unsafe impl ClassType for CIPDF417CodeDescriptor {
#[inherits(NSObject)]
type Super = CIBarcodeDescriptor;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CIPDF417CodeDescriptor {}
unsafe impl NSCopying for CIPDF417CodeDescriptor {}
unsafe impl NSObjectProtocol for CIPDF417CodeDescriptor {}
unsafe impl NSSecureCoding for CIPDF417CodeDescriptor {}
extern_methods!(
unsafe impl CIPDF417CodeDescriptor {
#[method_id(@__retain_semantics Other errorCorrectedPayload)]
pub unsafe fn errorCorrectedPayload(&self) -> Retained<NSData>;
#[method(isCompact)]
pub unsafe fn isCompact(&self) -> bool;
#[method(rowCount)]
pub unsafe fn rowCount(&self) -> NSInteger;
#[method(columnCount)]
pub unsafe fn columnCount(&self) -> NSInteger;
#[method_id(@__retain_semantics Init initWithPayload:isCompact:rowCount:columnCount:)]
pub unsafe fn initWithPayload_isCompact_rowCount_columnCount(
this: Allocated<Self>,
error_corrected_payload: &NSData,
is_compact: bool,
row_count: NSInteger,
column_count: NSInteger,
) -> Option<Retained<Self>>;
#[method_id(@__retain_semantics Other descriptorWithPayload:isCompact:rowCount:columnCount:)]
pub unsafe fn descriptorWithPayload_isCompact_rowCount_columnCount(
error_corrected_payload: &NSData,
is_compact: bool,
row_count: NSInteger,
column_count: NSInteger,
) -> Option<Retained<Self>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIPDF417CodeDescriptor {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CIDataMatrixCodeECCVersion(pub NSInteger);
impl CIDataMatrixCodeECCVersion {
pub const CIDataMatrixCodeECCVersion000: Self = Self(0);
pub const CIDataMatrixCodeECCVersion050: Self = Self(50);
pub const CIDataMatrixCodeECCVersion080: Self = Self(80);
pub const CIDataMatrixCodeECCVersion100: Self = Self(100);
pub const CIDataMatrixCodeECCVersion140: Self = Self(140);
pub const CIDataMatrixCodeECCVersion200: Self = Self(200);
}
unsafe impl Encode for CIDataMatrixCodeECCVersion {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for CIDataMatrixCodeECCVersion {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIDataMatrixCodeDescriptor;
unsafe impl ClassType for CIDataMatrixCodeDescriptor {
#[inherits(NSObject)]
type Super = CIBarcodeDescriptor;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CIDataMatrixCodeDescriptor {}
unsafe impl NSCopying for CIDataMatrixCodeDescriptor {}
unsafe impl NSObjectProtocol for CIDataMatrixCodeDescriptor {}
unsafe impl NSSecureCoding for CIDataMatrixCodeDescriptor {}
extern_methods!(
unsafe impl CIDataMatrixCodeDescriptor {
#[method_id(@__retain_semantics Other errorCorrectedPayload)]
pub unsafe fn errorCorrectedPayload(&self) -> Retained<NSData>;
#[method(rowCount)]
pub unsafe fn rowCount(&self) -> NSInteger;
#[method(columnCount)]
pub unsafe fn columnCount(&self) -> NSInteger;
#[method(eccVersion)]
pub unsafe fn eccVersion(&self) -> CIDataMatrixCodeECCVersion;
#[method_id(@__retain_semantics Init initWithPayload:rowCount:columnCount:eccVersion:)]
pub unsafe fn initWithPayload_rowCount_columnCount_eccVersion(
this: Allocated<Self>,
error_corrected_payload: &NSData,
row_count: NSInteger,
column_count: NSInteger,
ecc_version: CIDataMatrixCodeECCVersion,
) -> Option<Retained<Self>>;
#[method_id(@__retain_semantics Other descriptorWithPayload:rowCount:columnCount:eccVersion:)]
pub unsafe fn descriptorWithPayload_rowCount_columnCount_eccVersion(
error_corrected_payload: &NSData,
row_count: NSInteger,
column_count: NSInteger,
ecc_version: CIDataMatrixCodeECCVersion,
) -> Option<Retained<Self>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIDataMatrixCodeDescriptor {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_category!(
/// Category "CIBarcodeDescriptor" on [`NSUserActivity`].
#[doc(alias = "CIBarcodeDescriptor")]
pub unsafe trait NSUserActivityCIBarcodeDescriptor {
#[method_id(@__retain_semantics Other detectedBarcodeDescriptor)]
unsafe fn detectedBarcodeDescriptor(&self) -> Option<Retained<CIBarcodeDescriptor>>;
}
unsafe impl NSUserActivityCIBarcodeDescriptor for NSUserActivity {}
);

View File

@@ -0,0 +1,122 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIColor;
unsafe impl ClassType for CIColor {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CIColor {}
unsafe impl NSCopying for CIColor {}
unsafe impl NSObjectProtocol for CIColor {}
unsafe impl NSSecureCoding for CIColor {}
extern_methods!(
unsafe impl CIColor {
#[method_id(@__retain_semantics Other colorWithRed:green:blue:alpha:)]
pub unsafe fn colorWithRed_green_blue_alpha(
r: CGFloat,
g: CGFloat,
b: CGFloat,
a: CGFloat,
) -> Retained<Self>;
#[method_id(@__retain_semantics Other colorWithRed:green:blue:)]
pub unsafe fn colorWithRed_green_blue(r: CGFloat, g: CGFloat, b: CGFloat)
-> Retained<Self>;
#[method_id(@__retain_semantics Other colorWithString:)]
pub unsafe fn colorWithString(representation: &NSString) -> Retained<Self>;
#[method_id(@__retain_semantics Init initWithRed:green:blue:alpha:)]
pub unsafe fn initWithRed_green_blue_alpha(
this: Allocated<Self>,
r: CGFloat,
g: CGFloat,
b: CGFloat,
a: CGFloat,
) -> Retained<Self>;
#[method_id(@__retain_semantics Init initWithRed:green:blue:)]
pub unsafe fn initWithRed_green_blue(
this: Allocated<Self>,
r: CGFloat,
g: CGFloat,
b: CGFloat,
) -> Retained<Self>;
#[method(numberOfComponents)]
pub unsafe fn numberOfComponents(&self) -> usize;
#[method(components)]
pub unsafe fn components(&self) -> NonNull<CGFloat>;
#[method(alpha)]
pub unsafe fn alpha(&self) -> CGFloat;
#[method(red)]
pub unsafe fn red(&self) -> CGFloat;
#[method(green)]
pub unsafe fn green(&self) -> CGFloat;
#[method(blue)]
pub unsafe fn blue(&self) -> CGFloat;
#[method_id(@__retain_semantics Other stringRepresentation)]
pub unsafe fn stringRepresentation(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other blackColor)]
pub unsafe fn blackColor() -> Retained<CIColor>;
#[method_id(@__retain_semantics Other whiteColor)]
pub unsafe fn whiteColor() -> Retained<CIColor>;
#[method_id(@__retain_semantics Other grayColor)]
pub unsafe fn grayColor() -> Retained<CIColor>;
#[method_id(@__retain_semantics Other redColor)]
pub unsafe fn redColor() -> Retained<CIColor>;
#[method_id(@__retain_semantics Other greenColor)]
pub unsafe fn greenColor() -> Retained<CIColor>;
#[method_id(@__retain_semantics Other blueColor)]
pub unsafe fn blueColor() -> Retained<CIColor>;
#[method_id(@__retain_semantics Other cyanColor)]
pub unsafe fn cyanColor() -> Retained<CIColor>;
#[method_id(@__retain_semantics Other magentaColor)]
pub unsafe fn magentaColor() -> Retained<CIColor>;
#[method_id(@__retain_semantics Other yellowColor)]
pub unsafe fn yellowColor() -> Retained<CIColor>;
#[method_id(@__retain_semantics Other clearColor)]
pub unsafe fn clearColor() -> Retained<CIColor>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIColor {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);

View File

@@ -0,0 +1,271 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
#[cfg(feature = "objc2-metal")]
use objc2_metal::*;
use crate::*;
// NS_TYPED_ENUM
pub type CIContextOption = NSString;
extern "C" {
pub static kCIContextOutputColorSpace: &'static CIContextOption;
}
extern "C" {
pub static kCIContextWorkingColorSpace: &'static CIContextOption;
}
extern "C" {
pub static kCIContextWorkingFormat: &'static CIContextOption;
}
extern "C" {
pub static kCIContextHighQualityDownsample: &'static CIContextOption;
}
extern "C" {
pub static kCIContextOutputPremultiplied: &'static CIContextOption;
}
extern "C" {
pub static kCIContextCacheIntermediates: &'static CIContextOption;
}
extern "C" {
pub static kCIContextUseSoftwareRenderer: &'static CIContextOption;
}
extern "C" {
pub static kCIContextPriorityRequestLow: &'static CIContextOption;
}
extern "C" {
pub static kCIContextAllowLowPower: &'static CIContextOption;
}
extern "C" {
pub static kCIContextName: &'static CIContextOption;
}
extern "C" {
pub static kCIContextMemoryLimit: &'static CIContextOption;
}
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIContext;
unsafe impl ClassType for CIContext {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CIContext {}
extern_methods!(
unsafe impl CIContext {
#[method_id(@__retain_semantics Other contextWithOptions:)]
pub unsafe fn contextWithOptions(
options: Option<&NSDictionary<CIContextOption, AnyObject>>,
) -> Retained<CIContext>;
#[method_id(@__retain_semantics Other context)]
pub unsafe fn context() -> Retained<CIContext>;
#[method_id(@__retain_semantics Init initWithOptions:)]
pub unsafe fn initWithOptions(
this: Allocated<Self>,
options: Option<&NSDictionary<CIContextOption, AnyObject>>,
) -> Retained<Self>;
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(feature = "objc2-metal")]
#[method_id(@__retain_semantics Other contextWithMTLDevice:)]
pub unsafe fn contextWithMTLDevice(
device: &ProtocolObject<dyn MTLDevice>,
) -> Retained<CIContext>;
#[cfg(feature = "objc2-metal")]
#[method_id(@__retain_semantics Other contextWithMTLDevice:options:)]
pub unsafe fn contextWithMTLDevice_options(
device: &ProtocolObject<dyn MTLDevice>,
options: Option<&NSDictionary<CIContextOption, AnyObject>>,
) -> Retained<CIContext>;
#[cfg(feature = "objc2-metal")]
#[method_id(@__retain_semantics Other contextWithMTLCommandQueue:)]
pub unsafe fn contextWithMTLCommandQueue(
command_queue: &ProtocolObject<dyn MTLCommandQueue>,
) -> Retained<CIContext>;
#[cfg(feature = "objc2-metal")]
#[method_id(@__retain_semantics Other contextWithMTLCommandQueue:options:)]
pub unsafe fn contextWithMTLCommandQueue_options(
command_queue: &ProtocolObject<dyn MTLCommandQueue>,
options: Option<&NSDictionary<CIContextOption, AnyObject>>,
) -> Retained<CIContext>;
#[cfg(feature = "CIImage")]
#[method(workingFormat)]
pub unsafe fn workingFormat(&self) -> CIFormat;
#[cfg(feature = "CIImage")]
#[deprecated]
#[method(drawImage:atPoint:fromRect:)]
pub unsafe fn drawImage_atPoint_fromRect(
&self,
image: &CIImage,
at_point: CGPoint,
from_rect: CGRect,
);
#[cfg(feature = "CIImage")]
#[method(drawImage:inRect:fromRect:)]
pub unsafe fn drawImage_inRect_fromRect(
&self,
image: &CIImage,
in_rect: CGRect,
from_rect: CGRect,
);
#[method(reclaimResources)]
pub unsafe fn reclaimResources(&self);
#[method(clearCaches)]
pub unsafe fn clearCaches(&self);
#[method(inputImageMaximumSize)]
pub unsafe fn inputImageMaximumSize(&self) -> CGSize;
#[method(outputImageMaximumSize)]
pub unsafe fn outputImageMaximumSize(&self) -> CGSize;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIContext {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_methods!(
/// createCGImage
unsafe impl CIContext {}
);
extern_methods!(
/// OfflineGPUSupport
unsafe impl CIContext {
#[method(offlineGPUCount)]
pub unsafe fn offlineGPUCount() -> c_uint;
#[deprecated = "Core Image OpenGL API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)"]
#[method_id(@__retain_semantics Other contextForOfflineGPUAtIndex:)]
pub unsafe fn contextForOfflineGPUAtIndex(index: c_uint) -> Option<Retained<CIContext>>;
}
);
// NS_TYPED_ENUM
pub type CIImageRepresentationOption = NSString;
extern "C" {
pub static kCIImageRepresentationAVDepthData: &'static CIImageRepresentationOption;
}
extern "C" {
pub static kCIImageRepresentationDepthImage: &'static CIImageRepresentationOption;
}
extern "C" {
pub static kCIImageRepresentationDisparityImage: &'static CIImageRepresentationOption;
}
extern "C" {
pub static kCIImageRepresentationAVPortraitEffectsMatte: &'static CIImageRepresentationOption;
}
extern "C" {
pub static kCIImageRepresentationPortraitEffectsMatteImage:
&'static CIImageRepresentationOption;
}
extern "C" {
pub static kCIImageRepresentationAVSemanticSegmentationMattes:
&'static CIImageRepresentationOption;
}
extern "C" {
pub static kCIImageRepresentationSemanticSegmentationSkinMatteImage:
&'static CIImageRepresentationOption;
}
extern "C" {
pub static kCIImageRepresentationSemanticSegmentationHairMatteImage:
&'static CIImageRepresentationOption;
}
extern "C" {
pub static kCIImageRepresentationSemanticSegmentationTeethMatteImage:
&'static CIImageRepresentationOption;
}
extern "C" {
pub static kCIImageRepresentationSemanticSegmentationGlassesMatteImage:
&'static CIImageRepresentationOption;
}
extern "C" {
pub static kCIImageRepresentationSemanticSegmentationSkyMatteImage:
&'static CIImageRepresentationOption;
}
extern_methods!(
/// ImageRepresentation
unsafe impl CIContext {
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other OpenEXRRepresentationOfImage:options:error:_)]
pub unsafe fn OpenEXRRepresentationOfImage_options_error(
&self,
image: &CIImage,
options: &NSDictionary<CIImageRepresentationOption, AnyObject>,
) -> Result<Retained<NSData>, Retained<NSError>>;
#[cfg(feature = "CIImage")]
#[method(writeOpenEXRRepresentationOfImage:toURL:options:error:_)]
pub unsafe fn writeOpenEXRRepresentationOfImage_toURL_options_error(
&self,
image: &CIImage,
url: &NSURL,
options: &NSDictionary<CIImageRepresentationOption, AnyObject>,
) -> Result<(), Retained<NSError>>;
}
);
extern_methods!(
/// CIDepthBlurEffect
unsafe impl CIContext {
#[cfg(feature = "CIFilter")]
#[method_id(@__retain_semantics Other depthBlurEffectFilterForImageURL:options:)]
pub unsafe fn depthBlurEffectFilterForImageURL_options(
&self,
url: &NSURL,
options: Option<&NSDictionary>,
) -> Option<Retained<CIFilter>>;
#[cfg(feature = "CIFilter")]
#[method_id(@__retain_semantics Other depthBlurEffectFilterForImageData:options:)]
pub unsafe fn depthBlurEffectFilterForImageData_options(
&self,
data: &NSData,
options: Option<&NSDictionary>,
) -> Option<Retained<CIFilter>>;
}
);

View File

@@ -0,0 +1,121 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIDetector;
unsafe impl ClassType for CIDetector {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CIDetector {}
extern_methods!(
unsafe impl CIDetector {
#[cfg(feature = "CIContext")]
#[method_id(@__retain_semantics Other detectorOfType:context:options:)]
pub unsafe fn detectorOfType_context_options(
r#type: &NSString,
context: Option<&CIContext>,
options: Option<&NSDictionary<NSString, AnyObject>>,
) -> Option<Retained<CIDetector>>;
#[cfg(all(feature = "CIFeature", feature = "CIImage"))]
#[method_id(@__retain_semantics Other featuresInImage:)]
pub unsafe fn featuresInImage(&self, image: &CIImage) -> Retained<NSArray<CIFeature>>;
#[cfg(all(feature = "CIFeature", feature = "CIImage"))]
#[method_id(@__retain_semantics Other featuresInImage:options:)]
pub unsafe fn featuresInImage_options(
&self,
image: &CIImage,
options: Option<&NSDictionary<NSString, AnyObject>>,
) -> Retained<NSArray<CIFeature>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIDetector {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern "C" {
pub static CIDetectorTypeFace: &'static NSString;
}
extern "C" {
pub static CIDetectorTypeRectangle: &'static NSString;
}
extern "C" {
pub static CIDetectorTypeQRCode: &'static NSString;
}
extern "C" {
pub static CIDetectorTypeText: &'static NSString;
}
extern "C" {
pub static CIDetectorAccuracy: &'static NSString;
}
extern "C" {
pub static CIDetectorAccuracyLow: &'static NSString;
}
extern "C" {
pub static CIDetectorAccuracyHigh: &'static NSString;
}
extern "C" {
pub static CIDetectorTracking: &'static NSString;
}
extern "C" {
pub static CIDetectorMinFeatureSize: &'static NSString;
}
extern "C" {
pub static CIDetectorMaxFeatureCount: &'static NSString;
}
extern "C" {
pub static CIDetectorNumberOfAngles: &'static NSString;
}
extern "C" {
pub static CIDetectorImageOrientation: &'static NSString;
}
extern "C" {
pub static CIDetectorEyeBlink: &'static NSString;
}
extern "C" {
pub static CIDetectorSmile: &'static NSString;
}
extern "C" {
pub static CIDetectorFocalLength: &'static NSString;
}
extern "C" {
pub static CIDetectorAspectRatio: &'static NSString;
}
extern "C" {
pub static CIDetectorReturnSubFeatures: &'static NSString;
}

View File

@@ -0,0 +1,276 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIFeature;
unsafe impl ClassType for CIFeature {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CIFeature {}
extern_methods!(
unsafe impl CIFeature {
#[method_id(@__retain_semantics Other type)]
pub unsafe fn r#type(&self) -> Retained<NSString>;
#[method(bounds)]
pub unsafe fn bounds(&self) -> CGRect;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIFeature {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern "C" {
pub static CIFeatureTypeFace: &'static NSString;
}
extern "C" {
pub static CIFeatureTypeRectangle: &'static NSString;
}
extern "C" {
pub static CIFeatureTypeQRCode: &'static NSString;
}
extern "C" {
pub static CIFeatureTypeText: &'static NSString;
}
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIFaceFeature;
unsafe impl ClassType for CIFaceFeature {
#[inherits(NSObject)]
type Super = CIFeature;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CIFaceFeature {}
extern_methods!(
unsafe impl CIFaceFeature {
#[method(bounds)]
pub unsafe fn bounds(&self) -> CGRect;
#[method(hasLeftEyePosition)]
pub unsafe fn hasLeftEyePosition(&self) -> bool;
#[method(leftEyePosition)]
pub unsafe fn leftEyePosition(&self) -> CGPoint;
#[method(hasRightEyePosition)]
pub unsafe fn hasRightEyePosition(&self) -> bool;
#[method(rightEyePosition)]
pub unsafe fn rightEyePosition(&self) -> CGPoint;
#[method(hasMouthPosition)]
pub unsafe fn hasMouthPosition(&self) -> bool;
#[method(mouthPosition)]
pub unsafe fn mouthPosition(&self) -> CGPoint;
#[method(hasTrackingID)]
pub unsafe fn hasTrackingID(&self) -> bool;
#[method(trackingID)]
pub unsafe fn trackingID(&self) -> c_int;
#[method(hasTrackingFrameCount)]
pub unsafe fn hasTrackingFrameCount(&self) -> bool;
#[method(trackingFrameCount)]
pub unsafe fn trackingFrameCount(&self) -> c_int;
#[method(hasFaceAngle)]
pub unsafe fn hasFaceAngle(&self) -> bool;
#[method(faceAngle)]
pub unsafe fn faceAngle(&self) -> c_float;
#[method(hasSmile)]
pub unsafe fn hasSmile(&self) -> bool;
#[method(leftEyeClosed)]
pub unsafe fn leftEyeClosed(&self) -> bool;
#[method(rightEyeClosed)]
pub unsafe fn rightEyeClosed(&self) -> bool;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIFaceFeature {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIRectangleFeature;
unsafe impl ClassType for CIRectangleFeature {
#[inherits(NSObject)]
type Super = CIFeature;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CIRectangleFeature {}
extern_methods!(
unsafe impl CIRectangleFeature {
#[method(bounds)]
pub unsafe fn bounds(&self) -> CGRect;
#[method(topLeft)]
pub unsafe fn topLeft(&self) -> CGPoint;
#[method(topRight)]
pub unsafe fn topRight(&self) -> CGPoint;
#[method(bottomLeft)]
pub unsafe fn bottomLeft(&self) -> CGPoint;
#[method(bottomRight)]
pub unsafe fn bottomRight(&self) -> CGPoint;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIRectangleFeature {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIQRCodeFeature;
unsafe impl ClassType for CIQRCodeFeature {
#[inherits(NSObject)]
type Super = CIFeature;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CIQRCodeFeature {}
unsafe impl NSCopying for CIQRCodeFeature {}
unsafe impl NSObjectProtocol for CIQRCodeFeature {}
unsafe impl NSSecureCoding for CIQRCodeFeature {}
extern_methods!(
unsafe impl CIQRCodeFeature {
#[method(bounds)]
pub unsafe fn bounds(&self) -> CGRect;
#[method(topLeft)]
pub unsafe fn topLeft(&self) -> CGPoint;
#[method(topRight)]
pub unsafe fn topRight(&self) -> CGPoint;
#[method(bottomLeft)]
pub unsafe fn bottomLeft(&self) -> CGPoint;
#[method(bottomRight)]
pub unsafe fn bottomRight(&self) -> CGPoint;
#[method_id(@__retain_semantics Other messageString)]
pub unsafe fn messageString(&self) -> Option<Retained<NSString>>;
#[cfg(feature = "CIBarcodeDescriptor")]
#[method_id(@__retain_semantics Other symbolDescriptor)]
pub unsafe fn symbolDescriptor(&self) -> Option<Retained<CIQRCodeDescriptor>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIQRCodeFeature {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CITextFeature;
unsafe impl ClassType for CITextFeature {
#[inherits(NSObject)]
type Super = CIFeature;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CITextFeature {}
extern_methods!(
unsafe impl CITextFeature {
#[method(bounds)]
pub unsafe fn bounds(&self) -> CGRect;
#[method(topLeft)]
pub unsafe fn topLeft(&self) -> CGPoint;
#[method(topRight)]
pub unsafe fn topRight(&self) -> CGPoint;
#[method(bottomLeft)]
pub unsafe fn bottomLeft(&self) -> CGPoint;
#[method(bottomRight)]
pub unsafe fn bottomRight(&self) -> CGPoint;
#[method_id(@__retain_semantics Other subFeatures)]
pub unsafe fn subFeatures(&self) -> Option<Retained<NSArray>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CITextFeature {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);

View File

@@ -0,0 +1,530 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern "C" {
pub static kCIAttributeFilterName: &'static NSString;
}
extern "C" {
pub static kCIAttributeFilterDisplayName: &'static NSString;
}
extern "C" {
pub static kCIAttributeDescription: &'static NSString;
}
extern "C" {
pub static kCIAttributeFilterAvailable_Mac: &'static NSString;
}
extern "C" {
pub static kCIAttributeFilterAvailable_iOS: &'static NSString;
}
extern "C" {
pub static kCIAttributeReferenceDocumentation: &'static NSString;
}
extern "C" {
pub static kCIAttributeFilterCategories: &'static NSString;
}
extern "C" {
pub static kCIAttributeClass: &'static NSString;
}
extern "C" {
pub static kCIAttributeType: &'static NSString;
}
extern "C" {
pub static kCIAttributeMin: &'static NSString;
}
extern "C" {
pub static kCIAttributeMax: &'static NSString;
}
extern "C" {
pub static kCIAttributeSliderMin: &'static NSString;
}
extern "C" {
pub static kCIAttributeSliderMax: &'static NSString;
}
extern "C" {
pub static kCIAttributeDefault: &'static NSString;
}
extern "C" {
pub static kCIAttributeIdentity: &'static NSString;
}
extern "C" {
pub static kCIAttributeName: &'static NSString;
}
extern "C" {
pub static kCIAttributeDisplayName: &'static NSString;
}
extern "C" {
pub static kCIUIParameterSet: &'static NSString;
}
extern "C" {
pub static kCIUISetBasic: &'static NSString;
}
extern "C" {
pub static kCIUISetIntermediate: &'static NSString;
}
extern "C" {
pub static kCIUISetAdvanced: &'static NSString;
}
extern "C" {
pub static kCIUISetDevelopment: &'static NSString;
}
extern "C" {
pub static kCIAttributeTypeTime: &'static NSString;
}
extern "C" {
pub static kCIAttributeTypeScalar: &'static NSString;
}
extern "C" {
pub static kCIAttributeTypeDistance: &'static NSString;
}
extern "C" {
pub static kCIAttributeTypeAngle: &'static NSString;
}
extern "C" {
pub static kCIAttributeTypeBoolean: &'static NSString;
}
extern "C" {
pub static kCIAttributeTypeInteger: &'static NSString;
}
extern "C" {
pub static kCIAttributeTypeCount: &'static NSString;
}
extern "C" {
pub static kCIAttributeTypePosition: &'static NSString;
}
extern "C" {
pub static kCIAttributeTypeOffset: &'static NSString;
}
extern "C" {
pub static kCIAttributeTypePosition3: &'static NSString;
}
extern "C" {
pub static kCIAttributeTypeRectangle: &'static NSString;
}
extern "C" {
pub static kCIAttributeTypeOpaqueColor: &'static NSString;
}
extern "C" {
pub static kCIAttributeTypeColor: &'static NSString;
}
extern "C" {
pub static kCIAttributeTypeGradient: &'static NSString;
}
extern "C" {
pub static kCIAttributeTypeImage: &'static NSString;
}
extern "C" {
pub static kCIAttributeTypeTransform: &'static NSString;
}
extern "C" {
pub static kCICategoryDistortionEffect: &'static NSString;
}
extern "C" {
pub static kCICategoryGeometryAdjustment: &'static NSString;
}
extern "C" {
pub static kCICategoryCompositeOperation: &'static NSString;
}
extern "C" {
pub static kCICategoryHalftoneEffect: &'static NSString;
}
extern "C" {
pub static kCICategoryColorAdjustment: &'static NSString;
}
extern "C" {
pub static kCICategoryColorEffect: &'static NSString;
}
extern "C" {
pub static kCICategoryTransition: &'static NSString;
}
extern "C" {
pub static kCICategoryTileEffect: &'static NSString;
}
extern "C" {
pub static kCICategoryGenerator: &'static NSString;
}
extern "C" {
pub static kCICategoryReduction: &'static NSString;
}
extern "C" {
pub static kCICategoryGradient: &'static NSString;
}
extern "C" {
pub static kCICategoryStylize: &'static NSString;
}
extern "C" {
pub static kCICategorySharpen: &'static NSString;
}
extern "C" {
pub static kCICategoryBlur: &'static NSString;
}
extern "C" {
pub static kCICategoryVideo: &'static NSString;
}
extern "C" {
pub static kCICategoryStillImage: &'static NSString;
}
extern "C" {
pub static kCICategoryInterlaced: &'static NSString;
}
extern "C" {
pub static kCICategoryNonSquarePixels: &'static NSString;
}
extern "C" {
pub static kCICategoryHighDynamicRange: &'static NSString;
}
extern "C" {
pub static kCICategoryBuiltIn: &'static NSString;
}
extern "C" {
pub static kCICategoryFilterGenerator: &'static NSString;
}
extern "C" {
pub static kCIApplyOptionExtent: &'static NSString;
}
extern "C" {
pub static kCIApplyOptionDefinition: &'static NSString;
}
extern "C" {
pub static kCIApplyOptionUserInfo: &'static NSString;
}
extern "C" {
pub static kCIApplyOptionColorSpace: &'static NSString;
}
extern "C" {
pub static kCIOutputImageKey: &'static NSString;
}
extern "C" {
pub static kCIInputBackgroundImageKey: &'static NSString;
}
extern "C" {
pub static kCIInputImageKey: &'static NSString;
}
extern "C" {
pub static kCIInputDepthImageKey: &'static NSString;
}
extern "C" {
pub static kCIInputDisparityImageKey: &'static NSString;
}
extern "C" {
pub static kCIInputAmountKey: &'static NSString;
}
extern "C" {
pub static kCIInputTimeKey: &'static NSString;
}
extern "C" {
pub static kCIInputTransformKey: &'static NSString;
}
extern "C" {
pub static kCIInputScaleKey: &'static NSString;
}
extern "C" {
pub static kCIInputAspectRatioKey: &'static NSString;
}
extern "C" {
pub static kCIInputCenterKey: &'static NSString;
}
extern "C" {
pub static kCIInputRadiusKey: &'static NSString;
}
extern "C" {
pub static kCIInputAngleKey: &'static NSString;
}
extern "C" {
pub static kCIInputRefractionKey: &'static NSString;
}
extern "C" {
pub static kCIInputWidthKey: &'static NSString;
}
extern "C" {
pub static kCIInputSharpnessKey: &'static NSString;
}
extern "C" {
pub static kCIInputIntensityKey: &'static NSString;
}
extern "C" {
pub static kCIInputEVKey: &'static NSString;
}
extern "C" {
pub static kCIInputSaturationKey: &'static NSString;
}
extern "C" {
pub static kCIInputColorKey: &'static NSString;
}
extern "C" {
pub static kCIInputBrightnessKey: &'static NSString;
}
extern "C" {
pub static kCIInputContrastKey: &'static NSString;
}
extern "C" {
pub static kCIInputBiasKey: &'static NSString;
}
extern "C" {
pub static kCIInputWeightsKey: &'static NSString;
}
extern "C" {
pub static kCIInputGradientImageKey: &'static NSString;
}
extern "C" {
pub static kCIInputMaskImageKey: &'static NSString;
}
extern "C" {
pub static kCIInputMatteImageKey: &'static NSString;
}
extern "C" {
pub static kCIInputShadingImageKey: &'static NSString;
}
extern "C" {
pub static kCIInputTargetImageKey: &'static NSString;
}
extern "C" {
pub static kCIInputExtentKey: &'static NSString;
}
extern "C" {
pub static kCIInputVersionKey: &'static NSString;
}
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIFilter;
unsafe impl ClassType for CIFilter {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CIFilter {}
unsafe impl NSCopying for CIFilter {}
unsafe impl NSObjectProtocol for CIFilter {}
unsafe impl NSSecureCoding for CIFilter {}
extern_methods!(
unsafe impl CIFilter {
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other outputImage)]
pub unsafe fn outputImage(&self) -> Option<Retained<CIImage>>;
#[method_id(@__retain_semantics Other name)]
pub unsafe fn name(&self) -> Retained<NSString>;
#[method(setName:)]
pub unsafe fn setName(&self, name: &NSString);
#[method(isEnabled)]
pub unsafe fn isEnabled(&self) -> bool;
#[method(setEnabled:)]
pub unsafe fn setEnabled(&self, enabled: bool);
#[method_id(@__retain_semantics Other inputKeys)]
pub unsafe fn inputKeys(&self) -> Retained<NSArray<NSString>>;
#[method_id(@__retain_semantics Other outputKeys)]
pub unsafe fn outputKeys(&self) -> Retained<NSArray<NSString>>;
#[method(setDefaults)]
pub unsafe fn setDefaults(&self);
#[method_id(@__retain_semantics Other attributes)]
pub unsafe fn attributes(&self) -> Retained<NSDictionary<NSString, AnyObject>>;
#[cfg(all(feature = "CIImage", feature = "CIKernel"))]
#[method_id(@__retain_semantics Other apply:arguments:options:)]
pub unsafe fn apply_arguments_options(
&self,
k: &CIKernel,
args: Option<&NSArray>,
dict: Option<&NSDictionary<NSString, AnyObject>>,
) -> Option<Retained<CIImage>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIFilter {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_protocol!(
pub unsafe trait CIFilterProtocol {
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other outputImage)]
unsafe fn outputImage(&self) -> Option<Retained<CIImage>>;
#[optional]
#[method_id(@__retain_semantics Other customAttributes)]
unsafe fn customAttributes() -> Option<Retained<NSDictionary<NSString, AnyObject>>>;
}
unsafe impl ProtocolType for dyn CIFilterProtocol {
const NAME: &'static str = "CIFilter";
}
);
extern_methods!(
/// CIFilterRegistry
unsafe impl CIFilter {
#[method_id(@__retain_semantics Other filterWithName:)]
pub unsafe fn filterWithName(name: &NSString) -> Option<Retained<CIFilter>>;
#[method_id(@__retain_semantics Other filterWithName:withInputParameters:)]
pub unsafe fn filterWithName_withInputParameters(
name: &NSString,
params: Option<&NSDictionary<NSString, AnyObject>>,
) -> Option<Retained<CIFilter>>;
#[method_id(@__retain_semantics Other filterNamesInCategory:)]
pub unsafe fn filterNamesInCategory(
category: Option<&NSString>,
) -> Retained<NSArray<NSString>>;
#[method_id(@__retain_semantics Other filterNamesInCategories:)]
pub unsafe fn filterNamesInCategories(
categories: Option<&NSArray<NSString>>,
) -> Retained<NSArray<NSString>>;
#[cfg(feature = "CIFilterConstructor")]
#[method(registerFilterName:constructor:classAttributes:)]
pub unsafe fn registerFilterName_constructor_classAttributes(
name: &NSString,
an_object: &ProtocolObject<dyn CIFilterConstructor>,
attributes: &NSDictionary<NSString, AnyObject>,
);
#[method_id(@__retain_semantics Other localizedNameForFilterName:)]
pub unsafe fn localizedNameForFilterName(
filter_name: &NSString,
) -> Option<Retained<NSString>>;
#[method_id(@__retain_semantics Other localizedNameForCategory:)]
pub unsafe fn localizedNameForCategory(category: &NSString) -> Retained<NSString>;
#[method_id(@__retain_semantics Other localizedDescriptionForFilterName:)]
pub unsafe fn localizedDescriptionForFilterName(
filter_name: &NSString,
) -> Option<Retained<NSString>>;
#[method_id(@__retain_semantics Other localizedReferenceDocumentationForFilterName:)]
pub unsafe fn localizedReferenceDocumentationForFilterName(
filter_name: &NSString,
) -> Option<Retained<NSURL>>;
}
);
extern_methods!(
/// CIFilterXMPSerialization
unsafe impl CIFilter {
#[deprecated]
#[method_id(@__retain_semantics Other serializedXMPFromFilters:inputImageExtent:)]
pub unsafe fn serializedXMPFromFilters_inputImageExtent(
filters: &NSArray<CIFilter>,
extent: CGRect,
) -> Option<Retained<NSData>>;
}
);

View File

@@ -0,0 +1,16 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_protocol!(
pub unsafe trait CIFilterConstructor {
#[cfg(feature = "CIFilter")]
#[method_id(@__retain_semantics Other filterWithName:)]
unsafe fn filterWithName(&self, name: &NSString) -> Option<Retained<CIFilter>>;
}
unsafe impl ProtocolType for dyn CIFilterConstructor {}
);

View File

@@ -0,0 +1,123 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern "C" {
pub static kCIFilterGeneratorExportedKey: &'static NSString;
}
extern "C" {
pub static kCIFilterGeneratorExportedKeyTargetObject: &'static NSString;
}
extern "C" {
pub static kCIFilterGeneratorExportedKeyName: &'static NSString;
}
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIFilterGenerator;
unsafe impl ClassType for CIFilterGenerator {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "CIFilterConstructor")]
unsafe impl CIFilterConstructor for CIFilterGenerator {}
unsafe impl NSCoding for CIFilterGenerator {}
unsafe impl NSCopying for CIFilterGenerator {}
unsafe impl NSObjectProtocol for CIFilterGenerator {}
unsafe impl NSSecureCoding for CIFilterGenerator {}
extern_methods!(
unsafe impl CIFilterGenerator {
#[method_id(@__retain_semantics Other filterGenerator)]
pub unsafe fn filterGenerator() -> Retained<CIFilterGenerator>;
#[method_id(@__retain_semantics Other filterGeneratorWithContentsOfURL:)]
pub unsafe fn filterGeneratorWithContentsOfURL(
a_url: &NSURL,
) -> Option<Retained<CIFilterGenerator>>;
#[method_id(@__retain_semantics Init initWithContentsOfURL:)]
pub unsafe fn initWithContentsOfURL(
this: Allocated<Self>,
a_url: &NSURL,
) -> Option<Retained<Self>>;
#[method(connectObject:withKey:toObject:withKey:)]
pub unsafe fn connectObject_withKey_toObject_withKey(
&self,
source_object: &AnyObject,
source_key: Option<&NSString>,
target_object: &AnyObject,
target_key: &NSString,
);
#[method(disconnectObject:withKey:toObject:withKey:)]
pub unsafe fn disconnectObject_withKey_toObject_withKey(
&self,
source_object: &AnyObject,
source_key: &NSString,
target_object: &AnyObject,
target_key: &NSString,
);
#[method(exportKey:fromObject:withName:)]
pub unsafe fn exportKey_fromObject_withName(
&self,
key: &NSString,
target_object: &AnyObject,
exported_key_name: Option<&NSString>,
);
#[method(removeExportedKey:)]
pub unsafe fn removeExportedKey(&self, exported_key_name: &NSString);
#[method_id(@__retain_semantics Other exportedKeys)]
pub unsafe fn exportedKeys(&self) -> Retained<NSDictionary>;
#[method(setAttributes:forExportedKey:)]
pub unsafe fn setAttributes_forExportedKey(
&self,
attributes: &NSDictionary,
key: &NSString,
);
#[method_id(@__retain_semantics Other classAttributes)]
pub unsafe fn classAttributes(&self) -> Retained<NSDictionary>;
#[method(setClassAttributes:)]
pub unsafe fn setClassAttributes(&self, class_attributes: &NSDictionary);
#[cfg(feature = "CIFilter")]
#[method_id(@__retain_semantics Other filter)]
pub unsafe fn filter(&self) -> Retained<CIFilter>;
#[method(registerFilterName:)]
pub unsafe fn registerFilterName(&self, name: &NSString);
#[method(writeToURL:atomically:)]
pub unsafe fn writeToURL_atomically(&self, a_url: &NSURL, flag: bool) -> bool;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIFilterGenerator {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);

View File

@@ -0,0 +1,59 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIFilterShape;
unsafe impl ClassType for CIFilterShape {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCopying for CIFilterShape {}
unsafe impl NSObjectProtocol for CIFilterShape {}
extern_methods!(
unsafe impl CIFilterShape {
#[method_id(@__retain_semantics Other shapeWithRect:)]
pub unsafe fn shapeWithRect(r: CGRect) -> Retained<Self>;
#[method_id(@__retain_semantics Init initWithRect:)]
pub unsafe fn initWithRect(this: Allocated<Self>, r: CGRect) -> Retained<Self>;
#[method_id(@__retain_semantics Other insetByX:Y:)]
pub unsafe fn insetByX_Y(&self, dx: c_int, dy: c_int) -> Retained<CIFilterShape>;
#[method_id(@__retain_semantics Other unionWith:)]
pub unsafe fn unionWith(&self, s2: &CIFilterShape) -> Retained<CIFilterShape>;
#[method_id(@__retain_semantics Other unionWithRect:)]
pub unsafe fn unionWithRect(&self, r: CGRect) -> Retained<CIFilterShape>;
#[method_id(@__retain_semantics Other intersectWith:)]
pub unsafe fn intersectWith(&self, s2: &CIFilterShape) -> Retained<CIFilterShape>;
#[method_id(@__retain_semantics Other intersectWithRect:)]
pub unsafe fn intersectWithRect(&self, r: CGRect) -> Retained<CIFilterShape>;
#[method(extent)]
pub unsafe fn extent(&self) -> CGRect;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIFilterShape {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);

View File

@@ -0,0 +1,487 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
#[cfg(feature = "objc2-metal")]
use objc2_metal::*;
use crate::*;
// NS_TYPED_ENUM
pub type CIFormat = c_int;
extern "C" {
pub static kCIFormatARGB8: CIFormat;
}
extern "C" {
pub static kCIFormatBGRA8: CIFormat;
}
extern "C" {
pub static kCIFormatRGBA8: CIFormat;
}
extern "C" {
pub static kCIFormatABGR8: CIFormat;
}
extern "C" {
pub static kCIFormatRGBAh: CIFormat;
}
extern "C" {
pub static kCIFormatRGBA16: CIFormat;
}
extern "C" {
pub static kCIFormatRGBAf: CIFormat;
}
extern "C" {
pub static kCIFormatRGBX16: CIFormat;
}
extern "C" {
pub static kCIFormatRGBXh: CIFormat;
}
extern "C" {
pub static kCIFormatRGBXf: CIFormat;
}
extern "C" {
pub static kCIFormatRGB10: CIFormat;
}
extern "C" {
pub static kCIFormatA8: CIFormat;
}
extern "C" {
pub static kCIFormatA16: CIFormat;
}
extern "C" {
pub static kCIFormatAh: CIFormat;
}
extern "C" {
pub static kCIFormatAf: CIFormat;
}
extern "C" {
pub static kCIFormatR8: CIFormat;
}
extern "C" {
pub static kCIFormatR16: CIFormat;
}
extern "C" {
pub static kCIFormatRh: CIFormat;
}
extern "C" {
pub static kCIFormatRf: CIFormat;
}
extern "C" {
pub static kCIFormatRG8: CIFormat;
}
extern "C" {
pub static kCIFormatRG16: CIFormat;
}
extern "C" {
pub static kCIFormatRGh: CIFormat;
}
extern "C" {
pub static kCIFormatRGf: CIFormat;
}
extern "C" {
pub static kCIFormatL8: CIFormat;
}
extern "C" {
pub static kCIFormatL16: CIFormat;
}
extern "C" {
pub static kCIFormatLh: CIFormat;
}
extern "C" {
pub static kCIFormatLf: CIFormat;
}
extern "C" {
pub static kCIFormatLA8: CIFormat;
}
extern "C" {
pub static kCIFormatLA16: CIFormat;
}
extern "C" {
pub static kCIFormatLAh: CIFormat;
}
extern "C" {
pub static kCIFormatLAf: CIFormat;
}
// NS_TYPED_ENUM
pub type CIImageOption = NSString;
extern "C" {
pub static kCIImageColorSpace: &'static CIImageOption;
}
extern "C" {
pub static kCIImageToneMapHDRtoSDR: &'static CIImageOption;
}
extern "C" {
pub static kCIImageExpandToHDR: &'static CIImageOption;
}
extern "C" {
pub static kCIImageNearestSampling: &'static CIImageOption;
}
extern "C" {
pub static kCIImageCacheImmediately: &'static CIImageOption;
}
extern "C" {
pub static kCIImageProperties: &'static CIImageOption;
}
extern "C" {
pub static kCIImageApplyOrientationProperty: &'static CIImageOption;
}
extern "C" {
pub static kCIImageTextureTarget: &'static CIImageOption;
}
extern "C" {
pub static kCIImageTextureFormat: &'static CIImageOption;
}
extern "C" {
pub static kCIImageAuxiliaryDepth: &'static CIImageOption;
}
extern "C" {
pub static kCIImageAuxiliaryDisparity: &'static CIImageOption;
}
extern "C" {
pub static kCIImageAuxiliaryPortraitEffectsMatte: &'static CIImageOption;
}
extern "C" {
pub static kCIImageAuxiliarySemanticSegmentationSkinMatte: &'static CIImageOption;
}
extern "C" {
pub static kCIImageAuxiliarySemanticSegmentationHairMatte: &'static CIImageOption;
}
extern "C" {
pub static kCIImageAuxiliarySemanticSegmentationTeethMatte: &'static CIImageOption;
}
extern "C" {
pub static kCIImageAuxiliarySemanticSegmentationGlassesMatte: &'static CIImageOption;
}
extern "C" {
pub static kCIImageAuxiliarySemanticSegmentationSkyMatte: &'static CIImageOption;
}
extern "C" {
pub static kCIImageAuxiliaryHDRGainMap: &'static CIImageOption;
}
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIImage;
unsafe impl ClassType for CIImage {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CIImage {}
unsafe impl NSCopying for CIImage {}
unsafe impl NSObjectProtocol for CIImage {}
unsafe impl NSSecureCoding for CIImage {}
extern_methods!(
unsafe impl CIImage {
#[deprecated = "Core Image OpenGL API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)"]
#[method_id(@__retain_semantics Other imageWithTexture:size:flipped:options:)]
pub unsafe fn imageWithTexture_size_flipped_options(
name: c_uint,
size: CGSize,
flipped: bool,
options: Option<&NSDictionary<CIImageOption, AnyObject>>,
) -> Retained<CIImage>;
#[cfg(feature = "objc2-metal")]
#[method_id(@__retain_semantics Other imageWithMTLTexture:options:)]
pub unsafe fn imageWithMTLTexture_options(
texture: &ProtocolObject<dyn MTLTexture>,
options: Option<&NSDictionary<CIImageOption, AnyObject>>,
) -> Option<Retained<CIImage>>;
#[method_id(@__retain_semantics Other imageWithContentsOfURL:)]
pub unsafe fn imageWithContentsOfURL(url: &NSURL) -> Option<Retained<CIImage>>;
#[method_id(@__retain_semantics Other imageWithContentsOfURL:options:)]
pub unsafe fn imageWithContentsOfURL_options(
url: &NSURL,
options: Option<&NSDictionary<CIImageOption, AnyObject>>,
) -> Option<Retained<CIImage>>;
#[method_id(@__retain_semantics Other imageWithData:)]
pub unsafe fn imageWithData(data: &NSData) -> Option<Retained<CIImage>>;
#[method_id(@__retain_semantics Other imageWithData:options:)]
pub unsafe fn imageWithData_options(
data: &NSData,
options: Option<&NSDictionary<CIImageOption, AnyObject>>,
) -> Option<Retained<CIImage>>;
#[cfg(feature = "CIColor")]
#[method_id(@__retain_semantics Other imageWithColor:)]
pub unsafe fn imageWithColor(color: &CIColor) -> Retained<CIImage>;
#[method_id(@__retain_semantics Other emptyImage)]
pub unsafe fn emptyImage() -> Retained<CIImage>;
#[method_id(@__retain_semantics Other blackImage)]
pub unsafe fn blackImage() -> Retained<CIImage>;
#[method_id(@__retain_semantics Other whiteImage)]
pub unsafe fn whiteImage() -> Retained<CIImage>;
#[method_id(@__retain_semantics Other grayImage)]
pub unsafe fn grayImage() -> Retained<CIImage>;
#[method_id(@__retain_semantics Other redImage)]
pub unsafe fn redImage() -> Retained<CIImage>;
#[method_id(@__retain_semantics Other greenImage)]
pub unsafe fn greenImage() -> Retained<CIImage>;
#[method_id(@__retain_semantics Other blueImage)]
pub unsafe fn blueImage() -> Retained<CIImage>;
#[method_id(@__retain_semantics Other cyanImage)]
pub unsafe fn cyanImage() -> Retained<CIImage>;
#[method_id(@__retain_semantics Other magentaImage)]
pub unsafe fn magentaImage() -> Retained<CIImage>;
#[method_id(@__retain_semantics Other yellowImage)]
pub unsafe fn yellowImage() -> Retained<CIImage>;
#[method_id(@__retain_semantics Other clearImage)]
pub unsafe fn clearImage() -> Retained<CIImage>;
#[method_id(@__retain_semantics Init initWithData:)]
pub unsafe fn initWithData(this: Allocated<Self>, data: &NSData) -> Option<Retained<Self>>;
#[method_id(@__retain_semantics Init initWithData:options:)]
pub unsafe fn initWithData_options(
this: Allocated<Self>,
data: &NSData,
options: Option<&NSDictionary<CIImageOption, AnyObject>>,
) -> Option<Retained<Self>>;
#[deprecated = "Core Image OpenGL API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)"]
#[method_id(@__retain_semantics Init initWithTexture:size:flipped:options:)]
pub unsafe fn initWithTexture_size_flipped_options(
this: Allocated<Self>,
name: c_uint,
size: CGSize,
flipped: bool,
options: Option<&NSDictionary<CIImageOption, AnyObject>>,
) -> Retained<Self>;
#[cfg(feature = "objc2-metal")]
#[method_id(@__retain_semantics Init initWithMTLTexture:options:)]
pub unsafe fn initWithMTLTexture_options(
this: Allocated<Self>,
texture: &ProtocolObject<dyn MTLTexture>,
options: Option<&NSDictionary<CIImageOption, AnyObject>>,
) -> Option<Retained<Self>>;
#[method_id(@__retain_semantics Init initWithContentsOfURL:)]
pub unsafe fn initWithContentsOfURL(
this: Allocated<Self>,
url: &NSURL,
) -> Option<Retained<Self>>;
#[method_id(@__retain_semantics Init initWithContentsOfURL:options:)]
pub unsafe fn initWithContentsOfURL_options(
this: Allocated<Self>,
url: &NSURL,
options: Option<&NSDictionary<CIImageOption, AnyObject>>,
) -> Option<Retained<Self>>;
#[cfg(feature = "CIColor")]
#[method_id(@__retain_semantics Init initWithColor:)]
pub unsafe fn initWithColor(this: Allocated<Self>, color: &CIColor) -> Retained<Self>;
#[method_id(@__retain_semantics Other imageByApplyingOrientation:)]
pub unsafe fn imageByApplyingOrientation(&self, orientation: c_int) -> Retained<CIImage>;
#[method_id(@__retain_semantics Other imageByCompositingOverImage:)]
pub unsafe fn imageByCompositingOverImage(&self, dest: &CIImage) -> Retained<CIImage>;
#[method_id(@__retain_semantics Other imageByCroppingToRect:)]
pub unsafe fn imageByCroppingToRect(&self, rect: CGRect) -> Retained<CIImage>;
#[method_id(@__retain_semantics Other imageByClampingToExtent)]
pub unsafe fn imageByClampingToExtent(&self) -> Retained<CIImage>;
#[method_id(@__retain_semantics Other imageByClampingToRect:)]
pub unsafe fn imageByClampingToRect(&self, rect: CGRect) -> Retained<CIImage>;
#[method_id(@__retain_semantics Other imageByApplyingFilter:withInputParameters:)]
pub unsafe fn imageByApplyingFilter_withInputParameters(
&self,
filter_name: &NSString,
params: Option<&NSDictionary<NSString, AnyObject>>,
) -> Retained<CIImage>;
#[method_id(@__retain_semantics Other imageByApplyingFilter:)]
pub unsafe fn imageByApplyingFilter(&self, filter_name: &NSString) -> Retained<CIImage>;
#[method_id(@__retain_semantics Other imageByPremultiplyingAlpha)]
pub unsafe fn imageByPremultiplyingAlpha(&self) -> Retained<CIImage>;
#[method_id(@__retain_semantics Other imageByUnpremultiplyingAlpha)]
pub unsafe fn imageByUnpremultiplyingAlpha(&self) -> Retained<CIImage>;
#[method_id(@__retain_semantics Other imageBySettingAlphaOneInExtent:)]
pub unsafe fn imageBySettingAlphaOneInExtent(&self, extent: CGRect) -> Retained<CIImage>;
#[method_id(@__retain_semantics Other imageByApplyingGaussianBlurWithSigma:)]
pub unsafe fn imageByApplyingGaussianBlurWithSigma(
&self,
sigma: c_double,
) -> Retained<CIImage>;
#[method_id(@__retain_semantics Other imageBySettingProperties:)]
pub unsafe fn imageBySettingProperties(
&self,
properties: &NSDictionary,
) -> Retained<CIImage>;
#[method_id(@__retain_semantics Other imageBySamplingLinear)]
pub unsafe fn imageBySamplingLinear(&self) -> Retained<CIImage>;
#[method_id(@__retain_semantics Other imageBySamplingNearest)]
pub unsafe fn imageBySamplingNearest(&self) -> Retained<CIImage>;
#[method_id(@__retain_semantics Other imageByInsertingIntermediate)]
pub unsafe fn imageByInsertingIntermediate(&self) -> Retained<CIImage>;
#[method_id(@__retain_semantics Other imageByInsertingIntermediate:)]
pub unsafe fn imageByInsertingIntermediate_(&self, cache: bool) -> Retained<CIImage>;
#[method(extent)]
pub unsafe fn extent(&self) -> CGRect;
#[method_id(@__retain_semantics Other properties)]
pub unsafe fn properties(&self) -> Retained<NSDictionary<NSString, AnyObject>>;
#[cfg(feature = "CIFilterShape")]
#[method_id(@__retain_semantics Other definition)]
pub unsafe fn definition(&self) -> Retained<CIFilterShape>;
#[method_id(@__retain_semantics Other url)]
pub unsafe fn url(&self) -> Option<Retained<NSURL>>;
#[method(regionOfInterestForImage:inRect:)]
pub unsafe fn regionOfInterestForImage_inRect(
&self,
image: &CIImage,
rect: CGRect,
) -> CGRect;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIImage {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
// NS_TYPED_ENUM
pub type CIImageAutoAdjustmentOption = NSString;
extern "C" {
pub static kCIImageAutoAdjustEnhance: &'static CIImageAutoAdjustmentOption;
}
extern "C" {
pub static kCIImageAutoAdjustRedEye: &'static CIImageAutoAdjustmentOption;
}
extern "C" {
pub static kCIImageAutoAdjustFeatures: &'static CIImageAutoAdjustmentOption;
}
extern "C" {
pub static kCIImageAutoAdjustCrop: &'static CIImageAutoAdjustmentOption;
}
extern "C" {
pub static kCIImageAutoAdjustLevel: &'static CIImageAutoAdjustmentOption;
}
extern_methods!(
/// AutoAdjustment
unsafe impl CIImage {
#[cfg(feature = "CIFilter")]
#[method_id(@__retain_semantics Other autoAdjustmentFilters)]
pub unsafe fn autoAdjustmentFilters(&self) -> Retained<NSArray<CIFilter>>;
#[cfg(feature = "CIFilter")]
#[method_id(@__retain_semantics Other autoAdjustmentFiltersWithOptions:)]
pub unsafe fn autoAdjustmentFiltersWithOptions(
&self,
options: Option<&NSDictionary<CIImageAutoAdjustmentOption, AnyObject>>,
) -> Retained<NSArray<CIFilter>>;
}
);
extern_methods!(
/// LabConversion
unsafe impl CIImage {
#[method_id(@__retain_semantics Other imageByConvertingWorkingSpaceToLab)]
pub unsafe fn imageByConvertingWorkingSpaceToLab(&self) -> Retained<CIImage>;
#[method_id(@__retain_semantics Other imageByConvertingLabToWorkingSpace)]
pub unsafe fn imageByConvertingLabToWorkingSpace(&self) -> Retained<CIImage>;
}
);

View File

@@ -0,0 +1,70 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIImageAccumulator;
unsafe impl ClassType for CIImageAccumulator {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CIImageAccumulator {}
extern_methods!(
unsafe impl CIImageAccumulator {
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other imageAccumulatorWithExtent:format:)]
pub unsafe fn imageAccumulatorWithExtent_format(
extent: CGRect,
format: CIFormat,
) -> Option<Retained<Self>>;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Init initWithExtent:format:)]
pub unsafe fn initWithExtent_format(
this: Allocated<Self>,
extent: CGRect,
format: CIFormat,
) -> Option<Retained<Self>>;
#[method(extent)]
pub unsafe fn extent(&self) -> CGRect;
#[cfg(feature = "CIImage")]
#[method(format)]
pub unsafe fn format(&self) -> CIFormat;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other image)]
pub unsafe fn image(&self) -> Retained<CIImage>;
#[cfg(feature = "CIImage")]
#[method(setImage:)]
pub unsafe fn setImage(&self, image: &CIImage);
#[cfg(feature = "CIImage")]
#[method(setImage:dirtyRect:)]
pub unsafe fn setImage_dirtyRect(&self, image: &CIImage, dirty_rect: CGRect);
#[method(clear)]
pub unsafe fn clear(&self);
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIImageAccumulator {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);

View File

@@ -0,0 +1,143 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
#[cfg(feature = "objc2-metal")]
use objc2_metal::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIImageProcessorKernel;
unsafe impl ClassType for CIImageProcessorKernel {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CIImageProcessorKernel {}
extern_methods!(
unsafe impl CIImageProcessorKernel {
#[method(processWithInputs:arguments:output:error:_)]
pub unsafe fn processWithInputs_arguments_output_error(
inputs: Option<&NSArray<ProtocolObject<dyn CIImageProcessorInput>>>,
arguments: Option<&NSDictionary<NSString, AnyObject>>,
output: &ProtocolObject<dyn CIImageProcessorOutput>,
) -> Result<(), Retained<NSError>>;
#[method(roiForInput:arguments:outputRect:)]
pub unsafe fn roiForInput_arguments_outputRect(
input: c_int,
arguments: Option<&NSDictionary<NSString, AnyObject>>,
output_rect: CGRect,
) -> CGRect;
#[cfg(feature = "CIVector")]
#[method_id(@__retain_semantics Other roiTileArrayForInput:arguments:outputRect:)]
pub unsafe fn roiTileArrayForInput_arguments_outputRect(
input: c_int,
arguments: Option<&NSDictionary<NSString, AnyObject>>,
output_rect: CGRect,
) -> Retained<NSArray<CIVector>>;
#[cfg(feature = "CIImage")]
#[method(formatForInputAtIndex:)]
pub unsafe fn formatForInputAtIndex(input: c_int) -> CIFormat;
#[cfg(feature = "CIImage")]
#[method(outputFormat)]
pub unsafe fn outputFormat() -> CIFormat;
#[method(outputIsOpaque)]
pub unsafe fn outputIsOpaque() -> bool;
#[method(synchronizeInputs)]
pub unsafe fn synchronizeInputs() -> bool;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other applyWithExtent:inputs:arguments:error:_)]
pub unsafe fn applyWithExtent_inputs_arguments_error(
extent: CGRect,
inputs: Option<&NSArray<CIImage>>,
args: Option<&NSDictionary<NSString, AnyObject>>,
) -> Result<Retained<CIImage>, Retained<NSError>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIImageProcessorKernel {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_protocol!(
pub unsafe trait CIImageProcessorInput {
#[method(region)]
unsafe fn region(&self) -> CGRect;
#[method(bytesPerRow)]
unsafe fn bytesPerRow(&self) -> usize;
#[cfg(feature = "CIImage")]
#[method(format)]
unsafe fn format(&self) -> CIFormat;
#[method(baseAddress)]
unsafe fn baseAddress(&self) -> NonNull<c_void>;
#[cfg(feature = "objc2-metal")]
#[method_id(@__retain_semantics Other metalTexture)]
unsafe fn metalTexture(&self) -> Option<Retained<ProtocolObject<dyn MTLTexture>>>;
#[method(digest)]
unsafe fn digest(&self) -> u64;
#[method(roiTileIndex)]
unsafe fn roiTileIndex(&self) -> NSUInteger;
#[method(roiTileCount)]
unsafe fn roiTileCount(&self) -> NSUInteger;
}
unsafe impl ProtocolType for dyn CIImageProcessorInput {}
);
extern_protocol!(
pub unsafe trait CIImageProcessorOutput {
#[method(region)]
unsafe fn region(&self) -> CGRect;
#[method(bytesPerRow)]
unsafe fn bytesPerRow(&self) -> usize;
#[cfg(feature = "CIImage")]
#[method(format)]
unsafe fn format(&self) -> CIFormat;
#[method(baseAddress)]
unsafe fn baseAddress(&self) -> NonNull<c_void>;
#[cfg(feature = "objc2-metal")]
#[method_id(@__retain_semantics Other metalTexture)]
unsafe fn metalTexture(&self) -> Option<Retained<ProtocolObject<dyn MTLTexture>>>;
#[cfg(feature = "objc2-metal")]
#[method_id(@__retain_semantics Other metalCommandBuffer)]
unsafe fn metalCommandBuffer(
&self,
) -> Option<Retained<ProtocolObject<dyn MTLCommandBuffer>>>;
#[method(digest)]
unsafe fn digest(&self) -> u64;
}
unsafe impl ProtocolType for dyn CIImageProcessorOutput {}
);

View File

@@ -0,0 +1,42 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_methods!(
/// CIImageProvider
#[cfg(feature = "CIImage")]
unsafe impl CIImage {}
);
extern_category!(
/// Category "CIImageProvider" on [`NSObject`].
#[doc(alias = "CIImageProvider")]
pub unsafe trait NSObjectCIImageProvider {
#[method(provideImageData:bytesPerRow:origin::size::userInfo:)]
unsafe fn provideImageData_bytesPerRow_origin__size__userInfo(
&self,
data: NonNull<c_void>,
rowbytes: usize,
x: usize,
y: usize,
width: usize,
height: usize,
info: Option<&AnyObject>,
);
}
unsafe impl NSObjectCIImageProvider for NSObject {}
);
extern "C" {
#[cfg(feature = "CIImage")]
pub static kCIImageProviderTileSize: &'static CIImageOption;
}
extern "C" {
#[cfg(feature = "CIImage")]
pub static kCIImageProviderUserInfo: &'static CIImageOption;
}

View File

@@ -0,0 +1,389 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
#[cfg(feature = "block2")]
pub type CIKernelROICallback = *mut block2::Block<dyn Fn(c_int, CGRect) -> CGRect>;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIKernel;
unsafe impl ClassType for CIKernel {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CIKernel {}
extern_methods!(
unsafe impl CIKernel {
#[deprecated = "Core Image Kernel Language API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)"]
#[method_id(@__retain_semantics Other kernelsWithString:)]
pub unsafe fn kernelsWithString(string: &NSString) -> Option<Retained<NSArray<CIKernel>>>;
#[method_id(@__retain_semantics Other kernelsWithMetalString:error:_)]
pub unsafe fn kernelsWithMetalString_error(
source: &NSString,
) -> Result<Retained<NSArray<CIKernel>>, Retained<NSError>>;
#[deprecated = "Core Image Kernel Language API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)"]
#[method_id(@__retain_semantics Other kernelWithString:)]
pub unsafe fn kernelWithString(string: &NSString) -> Option<Retained<Self>>;
#[method_id(@__retain_semantics Other kernelWithFunctionName:fromMetalLibraryData:error:_)]
pub unsafe fn kernelWithFunctionName_fromMetalLibraryData_error(
name: &NSString,
data: &NSData,
) -> Result<Retained<Self>, Retained<NSError>>;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other kernelWithFunctionName:fromMetalLibraryData:outputPixelFormat:error:_)]
pub unsafe fn kernelWithFunctionName_fromMetalLibraryData_outputPixelFormat_error(
name: &NSString,
data: &NSData,
format: CIFormat,
) -> Result<Retained<Self>, Retained<NSError>>;
#[method_id(@__retain_semantics Other kernelNamesFromMetalLibraryData:)]
pub unsafe fn kernelNamesFromMetalLibraryData(data: &NSData)
-> Retained<NSArray<NSString>>;
#[method_id(@__retain_semantics Other name)]
pub unsafe fn name(&self) -> Retained<NSString>;
#[method(setROISelector:)]
pub unsafe fn setROISelector(&self, method: Sel);
#[cfg(all(feature = "CIImage", feature = "block2"))]
#[method_id(@__retain_semantics Other applyWithExtent:roiCallback:arguments:)]
pub unsafe fn applyWithExtent_roiCallback_arguments(
&self,
extent: CGRect,
callback: CIKernelROICallback,
args: Option<&NSArray<AnyObject>>,
) -> Option<Retained<CIImage>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIKernel {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIColorKernel;
unsafe impl ClassType for CIColorKernel {
#[inherits(NSObject)]
type Super = CIKernel;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CIColorKernel {}
extern_methods!(
unsafe impl CIColorKernel {
#[deprecated = "Core Image Kernel Language API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)"]
#[method_id(@__retain_semantics Other kernelWithString:)]
pub unsafe fn kernelWithString(string: &NSString) -> Option<Retained<Self>>;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other applyWithExtent:arguments:)]
pub unsafe fn applyWithExtent_arguments(
&self,
extent: CGRect,
args: Option<&NSArray<AnyObject>>,
) -> Option<Retained<CIImage>>;
}
);
extern_methods!(
/// Methods declared on superclass `CIKernel`
unsafe impl CIColorKernel {
#[method_id(@__retain_semantics Other kernelWithFunctionName:fromMetalLibraryData:error:_)]
pub unsafe fn kernelWithFunctionName_fromMetalLibraryData_error(
name: &NSString,
data: &NSData,
) -> Result<Retained<Self>, Retained<NSError>>;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other kernelWithFunctionName:fromMetalLibraryData:outputPixelFormat:error:_)]
pub unsafe fn kernelWithFunctionName_fromMetalLibraryData_outputPixelFormat_error(
name: &NSString,
data: &NSData,
format: CIFormat,
) -> Result<Retained<Self>, Retained<NSError>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIColorKernel {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIWarpKernel;
unsafe impl ClassType for CIWarpKernel {
#[inherits(NSObject)]
type Super = CIKernel;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CIWarpKernel {}
extern_methods!(
unsafe impl CIWarpKernel {
#[deprecated = "Core Image Kernel Language API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)"]
#[method_id(@__retain_semantics Other kernelWithString:)]
pub unsafe fn kernelWithString(string: &NSString) -> Option<Retained<Self>>;
#[cfg(all(feature = "CIImage", feature = "block2"))]
#[method_id(@__retain_semantics Other applyWithExtent:roiCallback:inputImage:arguments:)]
pub unsafe fn applyWithExtent_roiCallback_inputImage_arguments(
&self,
extent: CGRect,
callback: CIKernelROICallback,
image: &CIImage,
args: Option<&NSArray<AnyObject>>,
) -> Option<Retained<CIImage>>;
}
);
extern_methods!(
/// Methods declared on superclass `CIKernel`
unsafe impl CIWarpKernel {
#[method_id(@__retain_semantics Other kernelWithFunctionName:fromMetalLibraryData:error:_)]
pub unsafe fn kernelWithFunctionName_fromMetalLibraryData_error(
name: &NSString,
data: &NSData,
) -> Result<Retained<Self>, Retained<NSError>>;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other kernelWithFunctionName:fromMetalLibraryData:outputPixelFormat:error:_)]
pub unsafe fn kernelWithFunctionName_fromMetalLibraryData_outputPixelFormat_error(
name: &NSString,
data: &NSData,
format: CIFormat,
) -> Result<Retained<Self>, Retained<NSError>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIWarpKernel {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIBlendKernel;
unsafe impl ClassType for CIBlendKernel {
#[inherits(CIKernel, NSObject)]
type Super = CIColorKernel;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CIBlendKernel {}
extern_methods!(
unsafe impl CIBlendKernel {
#[deprecated = "Core Image Kernel Language API deprecated. (Define CI_SILENCE_GL_DEPRECATION to silence these warnings)"]
#[method_id(@__retain_semantics Other kernelWithString:)]
pub unsafe fn kernelWithString(string: &NSString) -> Option<Retained<Self>>;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other applyWithForeground:background:)]
pub unsafe fn applyWithForeground_background(
&self,
foreground: &CIImage,
background: &CIImage,
) -> Option<Retained<CIImage>>;
}
);
extern_methods!(
/// Methods declared on superclass `CIKernel`
unsafe impl CIBlendKernel {
#[method_id(@__retain_semantics Other kernelWithFunctionName:fromMetalLibraryData:error:_)]
pub unsafe fn kernelWithFunctionName_fromMetalLibraryData_error(
name: &NSString,
data: &NSData,
) -> Result<Retained<Self>, Retained<NSError>>;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other kernelWithFunctionName:fromMetalLibraryData:outputPixelFormat:error:_)]
pub unsafe fn kernelWithFunctionName_fromMetalLibraryData_outputPixelFormat_error(
name: &NSString,
data: &NSData,
format: CIFormat,
) -> Result<Retained<Self>, Retained<NSError>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIBlendKernel {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_methods!(
/// BuiltIn
unsafe impl CIBlendKernel {
#[method_id(@__retain_semantics Other componentAdd)]
pub unsafe fn componentAdd() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other componentMultiply)]
pub unsafe fn componentMultiply() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other componentMin)]
pub unsafe fn componentMin() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other componentMax)]
pub unsafe fn componentMax() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other clear)]
pub unsafe fn clear() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other source)]
pub unsafe fn source() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other destination)]
pub unsafe fn destination() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other sourceOver)]
pub unsafe fn sourceOver() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other destinationOver)]
pub unsafe fn destinationOver() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other sourceIn)]
pub unsafe fn sourceIn() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other destinationIn)]
pub unsafe fn destinationIn() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other sourceOut)]
pub unsafe fn sourceOut() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other destinationOut)]
pub unsafe fn destinationOut() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other sourceAtop)]
pub unsafe fn sourceAtop() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other destinationAtop)]
pub unsafe fn destinationAtop() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other exclusiveOr)]
pub unsafe fn exclusiveOr() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other multiply)]
pub unsafe fn multiply() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other screen)]
pub unsafe fn screen() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other overlay)]
pub unsafe fn overlay() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other darken)]
pub unsafe fn darken() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other lighten)]
pub unsafe fn lighten() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other colorDodge)]
pub unsafe fn colorDodge() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other colorBurn)]
pub unsafe fn colorBurn() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other hardLight)]
pub unsafe fn hardLight() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other softLight)]
pub unsafe fn softLight() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other difference)]
pub unsafe fn difference() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other exclusion)]
pub unsafe fn exclusion() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other hue)]
pub unsafe fn hue() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other saturation)]
pub unsafe fn saturation() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other color)]
pub unsafe fn color() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other luminosity)]
pub unsafe fn luminosity() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other subtract)]
pub unsafe fn subtract() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other divide)]
pub unsafe fn divide() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other linearBurn)]
pub unsafe fn linearBurn() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other linearDodge)]
pub unsafe fn linearDodge() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other vividLight)]
pub unsafe fn vividLight() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other linearLight)]
pub unsafe fn linearLight() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other pinLight)]
pub unsafe fn pinLight() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other hardMix)]
pub unsafe fn hardMix() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other darkerColor)]
pub unsafe fn darkerColor() -> Retained<CIBlendKernel>;
#[method_id(@__retain_semantics Other lighterColor)]
pub unsafe fn lighterColor() -> Retained<CIBlendKernel>;
}
);

View File

@@ -0,0 +1,2 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT

View File

@@ -0,0 +1,57 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIPlugIn;
unsafe impl ClassType for CIPlugIn {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CIPlugIn {}
extern_methods!(
unsafe impl CIPlugIn {
#[deprecated]
#[method(loadAllPlugIns)]
pub unsafe fn loadAllPlugIns();
#[method(loadNonExecutablePlugIns)]
pub unsafe fn loadNonExecutablePlugIns();
#[deprecated]
#[method(loadPlugIn:allowNonExecutable:)]
pub unsafe fn loadPlugIn_allowNonExecutable(
url: Option<&NSURL>,
allow_non_executable: bool,
);
#[deprecated]
#[method(loadPlugIn:allowExecutableCode:)]
pub unsafe fn loadPlugIn_allowExecutableCode(
url: Option<&NSURL>,
allow_executable_code: bool,
);
#[method(loadNonExecutablePlugIn:)]
pub unsafe fn loadNonExecutablePlugIn(url: Option<&NSURL>);
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIPlugIn {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);

View File

@@ -0,0 +1,14 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use crate::*;
extern_protocol!(
pub unsafe trait CIPlugInRegistration {
#[method(load:)]
unsafe fn load(&self, host: *mut c_void) -> bool;
}
unsafe impl ProtocolType for dyn CIPlugInRegistration {}
);

View File

@@ -0,0 +1,293 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
// NS_TYPED_ENUM
pub type CIRAWDecoderVersion = NSString;
extern "C" {
pub static CIRAWDecoderVersionNone: &'static CIRAWDecoderVersion;
}
extern "C" {
pub static CIRAWDecoderVersion8: &'static CIRAWDecoderVersion;
}
extern "C" {
pub static CIRAWDecoderVersion8DNG: &'static CIRAWDecoderVersion;
}
extern "C" {
pub static CIRAWDecoderVersion7: &'static CIRAWDecoderVersion;
}
extern "C" {
pub static CIRAWDecoderVersion7DNG: &'static CIRAWDecoderVersion;
}
extern "C" {
pub static CIRAWDecoderVersion6: &'static CIRAWDecoderVersion;
}
extern "C" {
pub static CIRAWDecoderVersion6DNG: &'static CIRAWDecoderVersion;
}
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "CIFilter")]
pub struct CIRAWFilter;
#[cfg(feature = "CIFilter")]
unsafe impl ClassType for CIRAWFilter {
#[inherits(NSObject)]
type Super = CIFilter;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "CIFilter")]
unsafe impl NSCoding for CIRAWFilter {}
#[cfg(feature = "CIFilter")]
unsafe impl NSCopying for CIRAWFilter {}
#[cfg(feature = "CIFilter")]
unsafe impl NSObjectProtocol for CIRAWFilter {}
#[cfg(feature = "CIFilter")]
unsafe impl NSSecureCoding for CIRAWFilter {}
extern_methods!(
#[cfg(feature = "CIFilter")]
unsafe impl CIRAWFilter {
#[method_id(@__retain_semantics Other supportedCameraModels)]
pub unsafe fn supportedCameraModels() -> Retained<NSArray<NSString>>;
#[method_id(@__retain_semantics Other supportedDecoderVersions)]
pub unsafe fn supportedDecoderVersions(&self) -> Retained<NSArray<CIRAWDecoderVersion>>;
#[method(nativeSize)]
pub unsafe fn nativeSize(&self) -> CGSize;
#[method_id(@__retain_semantics Other properties)]
pub unsafe fn properties(&self) -> Retained<NSDictionary>;
#[method(isDraftModeEnabled)]
pub unsafe fn isDraftModeEnabled(&self) -> bool;
#[method(setDraftModeEnabled:)]
pub unsafe fn setDraftModeEnabled(&self, draft_mode_enabled: bool);
#[method_id(@__retain_semantics Other decoderVersion)]
pub unsafe fn decoderVersion(&self) -> Retained<CIRAWDecoderVersion>;
#[method(setDecoderVersion:)]
pub unsafe fn setDecoderVersion(&self, decoder_version: &CIRAWDecoderVersion);
#[method(scaleFactor)]
pub unsafe fn scaleFactor(&self) -> c_float;
#[method(setScaleFactor:)]
pub unsafe fn setScaleFactor(&self, scale_factor: c_float);
#[method(exposure)]
pub unsafe fn exposure(&self) -> c_float;
#[method(setExposure:)]
pub unsafe fn setExposure(&self, exposure: c_float);
#[method(baselineExposure)]
pub unsafe fn baselineExposure(&self) -> c_float;
#[method(setBaselineExposure:)]
pub unsafe fn setBaselineExposure(&self, baseline_exposure: c_float);
#[method(shadowBias)]
pub unsafe fn shadowBias(&self) -> c_float;
#[method(setShadowBias:)]
pub unsafe fn setShadowBias(&self, shadow_bias: c_float);
#[method(boostAmount)]
pub unsafe fn boostAmount(&self) -> c_float;
#[method(setBoostAmount:)]
pub unsafe fn setBoostAmount(&self, boost_amount: c_float);
#[method(boostShadowAmount)]
pub unsafe fn boostShadowAmount(&self) -> c_float;
#[method(setBoostShadowAmount:)]
pub unsafe fn setBoostShadowAmount(&self, boost_shadow_amount: c_float);
#[method(isGamutMappingEnabled)]
pub unsafe fn isGamutMappingEnabled(&self) -> bool;
#[method(setGamutMappingEnabled:)]
pub unsafe fn setGamutMappingEnabled(&self, gamut_mapping_enabled: bool);
#[method(isLensCorrectionSupported)]
pub unsafe fn isLensCorrectionSupported(&self) -> bool;
#[method(isLensCorrectionEnabled)]
pub unsafe fn isLensCorrectionEnabled(&self) -> bool;
#[method(setLensCorrectionEnabled:)]
pub unsafe fn setLensCorrectionEnabled(&self, lens_correction_enabled: bool);
#[method(isLuminanceNoiseReductionSupported)]
pub unsafe fn isLuminanceNoiseReductionSupported(&self) -> bool;
#[method(luminanceNoiseReductionAmount)]
pub unsafe fn luminanceNoiseReductionAmount(&self) -> c_float;
#[method(setLuminanceNoiseReductionAmount:)]
pub unsafe fn setLuminanceNoiseReductionAmount(
&self,
luminance_noise_reduction_amount: c_float,
);
#[method(isColorNoiseReductionSupported)]
pub unsafe fn isColorNoiseReductionSupported(&self) -> bool;
#[method(colorNoiseReductionAmount)]
pub unsafe fn colorNoiseReductionAmount(&self) -> c_float;
#[method(setColorNoiseReductionAmount:)]
pub unsafe fn setColorNoiseReductionAmount(&self, color_noise_reduction_amount: c_float);
#[method(isSharpnessSupported)]
pub unsafe fn isSharpnessSupported(&self) -> bool;
#[method(sharpnessAmount)]
pub unsafe fn sharpnessAmount(&self) -> c_float;
#[method(setSharpnessAmount:)]
pub unsafe fn setSharpnessAmount(&self, sharpness_amount: c_float);
#[method(isContrastSupported)]
pub unsafe fn isContrastSupported(&self) -> bool;
#[method(contrastAmount)]
pub unsafe fn contrastAmount(&self) -> c_float;
#[method(setContrastAmount:)]
pub unsafe fn setContrastAmount(&self, contrast_amount: c_float);
#[method(isDetailSupported)]
pub unsafe fn isDetailSupported(&self) -> bool;
#[method(detailAmount)]
pub unsafe fn detailAmount(&self) -> c_float;
#[method(setDetailAmount:)]
pub unsafe fn setDetailAmount(&self, detail_amount: c_float);
#[method(isMoireReductionSupported)]
pub unsafe fn isMoireReductionSupported(&self) -> bool;
#[method(moireReductionAmount)]
pub unsafe fn moireReductionAmount(&self) -> c_float;
#[method(setMoireReductionAmount:)]
pub unsafe fn setMoireReductionAmount(&self, moire_reduction_amount: c_float);
#[method(isLocalToneMapSupported)]
pub unsafe fn isLocalToneMapSupported(&self) -> bool;
#[method(localToneMapAmount)]
pub unsafe fn localToneMapAmount(&self) -> c_float;
#[method(setLocalToneMapAmount:)]
pub unsafe fn setLocalToneMapAmount(&self, local_tone_map_amount: c_float);
#[method(extendedDynamicRangeAmount)]
pub unsafe fn extendedDynamicRangeAmount(&self) -> c_float;
#[method(setExtendedDynamicRangeAmount:)]
pub unsafe fn setExtendedDynamicRangeAmount(&self, extended_dynamic_range_amount: c_float);
#[method(neutralChromaticity)]
pub unsafe fn neutralChromaticity(&self) -> CGPoint;
#[method(setNeutralChromaticity:)]
pub unsafe fn setNeutralChromaticity(&self, neutral_chromaticity: CGPoint);
#[method(neutralLocation)]
pub unsafe fn neutralLocation(&self) -> CGPoint;
#[method(setNeutralLocation:)]
pub unsafe fn setNeutralLocation(&self, neutral_location: CGPoint);
#[method(neutralTemperature)]
pub unsafe fn neutralTemperature(&self) -> c_float;
#[method(setNeutralTemperature:)]
pub unsafe fn setNeutralTemperature(&self, neutral_temperature: c_float);
#[method(neutralTint)]
pub unsafe fn neutralTint(&self) -> c_float;
#[method(setNeutralTint:)]
pub unsafe fn setNeutralTint(&self, neutral_tint: c_float);
#[method_id(@__retain_semantics Other linearSpaceFilter)]
pub unsafe fn linearSpaceFilter(&self) -> Option<Retained<CIFilter>>;
#[method(setLinearSpaceFilter:)]
pub unsafe fn setLinearSpaceFilter(&self, linear_space_filter: Option<&CIFilter>);
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other previewImage)]
pub unsafe fn previewImage(&self) -> Option<Retained<CIImage>>;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other portraitEffectsMatte)]
pub unsafe fn portraitEffectsMatte(&self) -> Option<Retained<CIImage>>;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other semanticSegmentationSkinMatte)]
pub unsafe fn semanticSegmentationSkinMatte(&self) -> Option<Retained<CIImage>>;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other semanticSegmentationHairMatte)]
pub unsafe fn semanticSegmentationHairMatte(&self) -> Option<Retained<CIImage>>;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other semanticSegmentationGlassesMatte)]
pub unsafe fn semanticSegmentationGlassesMatte(&self) -> Option<Retained<CIImage>>;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other semanticSegmentationSkyMatte)]
pub unsafe fn semanticSegmentationSkyMatte(&self) -> Option<Retained<CIImage>>;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other semanticSegmentationTeethMatte)]
pub unsafe fn semanticSegmentationTeethMatte(&self) -> Option<Retained<CIImage>>;
#[method_id(@__retain_semantics Other filterWithImageURL:)]
pub unsafe fn filterWithImageURL(url: &NSURL) -> Option<Retained<Self>>;
#[method_id(@__retain_semantics Other filterWithImageData:identifierHint:)]
pub unsafe fn filterWithImageData_identifierHint(
data: &NSData,
identifier_hint: Option<&NSString>,
) -> Option<Retained<Self>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
#[cfg(feature = "CIFilter")]
unsafe impl CIRAWFilter {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);

View File

@@ -0,0 +1,157 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
// NS_TYPED_ENUM
pub type CIRAWFilterOption = NSString;
extern "C" {
pub static kCIInputAllowDraftModeKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputDecoderVersionKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCISupportedDecoderVersionsKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputBaselineExposureKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputBoostKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputBoostShadowAmountKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputDisableGamutMapKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputNeutralChromaticityXKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputNeutralChromaticityYKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputNeutralTemperatureKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputNeutralTintKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputNeutralLocationKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputScaleFactorKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputIgnoreImageOrientationKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputImageOrientationKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputEnableSharpeningKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputEnableChromaticNoiseTrackingKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputNoiseReductionAmountKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputMoireAmountKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputEnableVendorLensCorrectionKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputLuminanceNoiseReductionAmountKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputColorNoiseReductionAmountKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputNoiseReductionSharpnessAmountKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputNoiseReductionContrastAmountKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputNoiseReductionDetailAmountKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputEnableEDRModeKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputLocalToneMapAmountKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIInputLinearSpaceFilter: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIOutputNativeSizeKey: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIActiveKeys: Option<&'static CIRAWFilterOption>;
}
extern "C" {
pub static kCIPropertiesKey: Option<&'static CIRAWFilterOption>;
}
extern_methods!(
/// CIRAWFilter
#[cfg(feature = "CIFilter")]
unsafe impl CIFilter {
#[deprecated = "Use new CIRAWFilter class instead."]
#[method_id(@__retain_semantics Other filterWithImageURL:options:)]
pub unsafe fn filterWithImageURL_options(
url: Option<&NSURL>,
options: Option<&NSDictionary<CIRAWFilterOption, AnyObject>>,
) -> Option<Retained<CIFilter>>;
#[deprecated = "Use new CIRAWFilter class instead."]
#[method_id(@__retain_semantics Other filterWithImageData:options:)]
pub unsafe fn filterWithImageData_options(
data: Option<&NSData>,
options: Option<&NSDictionary<CIRAWFilterOption, AnyObject>>,
) -> Option<Retained<CIFilter>>;
#[deprecated = "Use new CIRAWFilter class instead."]
#[method_id(@__retain_semantics Other supportedRawCameraModels)]
pub unsafe fn supportedRawCameraModels() -> Option<Retained<NSArray<NSString>>>;
}
);

View File

@@ -0,0 +1,250 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
#[cfg(feature = "objc2-metal")]
use objc2_metal::*;
use crate::*;
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CIRenderDestinationAlphaMode(pub NSUInteger);
impl CIRenderDestinationAlphaMode {
pub const CIRenderDestinationAlphaNone: Self = Self(0);
pub const CIRenderDestinationAlphaPremultiplied: Self = Self(1);
pub const CIRenderDestinationAlphaUnpremultiplied: Self = Self(2);
}
unsafe impl Encode for CIRenderDestinationAlphaMode {
const ENCODING: Encoding = NSUInteger::ENCODING;
}
unsafe impl RefEncode for CIRenderDestinationAlphaMode {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIRenderDestination;
unsafe impl ClassType for CIRenderDestination {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CIRenderDestination {}
extern_methods!(
unsafe impl CIRenderDestination {
#[cfg(feature = "objc2-metal")]
#[method_id(@__retain_semantics Init initWithMTLTexture:commandBuffer:)]
pub unsafe fn initWithMTLTexture_commandBuffer(
this: Allocated<Self>,
texture: &ProtocolObject<dyn MTLTexture>,
command_buffer: Option<&ProtocolObject<dyn MTLCommandBuffer>>,
) -> Retained<Self>;
#[cfg(all(feature = "block2", feature = "objc2-metal"))]
#[method_id(@__retain_semantics Init initWithWidth:height:pixelFormat:commandBuffer:mtlTextureProvider:)]
pub unsafe fn initWithWidth_height_pixelFormat_commandBuffer_mtlTextureProvider(
this: Allocated<Self>,
width: NSUInteger,
height: NSUInteger,
pixel_format: MTLPixelFormat,
command_buffer: Option<&ProtocolObject<dyn MTLCommandBuffer>>,
block: Option<&block2::Block<dyn Fn() -> NonNull<ProtocolObject<dyn MTLTexture>>>>,
) -> Retained<Self>;
#[method_id(@__retain_semantics Init initWithGLTexture:target:width:height:)]
pub unsafe fn initWithGLTexture_target_width_height(
this: Allocated<Self>,
texture: c_uint,
target: c_uint,
width: NSUInteger,
height: NSUInteger,
) -> Retained<Self>;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Init initWithBitmapData:width:height:bytesPerRow:format:)]
pub unsafe fn initWithBitmapData_width_height_bytesPerRow_format(
this: Allocated<Self>,
data: NonNull<c_void>,
width: NSUInteger,
height: NSUInteger,
bytes_per_row: NSUInteger,
format: CIFormat,
) -> Retained<Self>;
#[method(width)]
pub unsafe fn width(&self) -> NSUInteger;
#[method(height)]
pub unsafe fn height(&self) -> NSUInteger;
#[method(alphaMode)]
pub unsafe fn alphaMode(&self) -> CIRenderDestinationAlphaMode;
#[method(setAlphaMode:)]
pub unsafe fn setAlphaMode(&self, alpha_mode: CIRenderDestinationAlphaMode);
#[method(isFlipped)]
pub unsafe fn isFlipped(&self) -> bool;
#[method(setFlipped:)]
pub unsafe fn setFlipped(&self, flipped: bool);
#[method(isDithered)]
pub unsafe fn isDithered(&self) -> bool;
#[method(setDithered:)]
pub unsafe fn setDithered(&self, dithered: bool);
#[method(isClamped)]
pub unsafe fn isClamped(&self) -> bool;
#[method(setClamped:)]
pub unsafe fn setClamped(&self, clamped: bool);
#[cfg(feature = "CIKernel")]
#[method_id(@__retain_semantics Other blendKernel)]
pub unsafe fn blendKernel(&self) -> Option<Retained<CIBlendKernel>>;
#[cfg(feature = "CIKernel")]
#[method(setBlendKernel:)]
pub unsafe fn setBlendKernel(&self, blend_kernel: Option<&CIBlendKernel>);
#[method(blendsInDestinationColorSpace)]
pub unsafe fn blendsInDestinationColorSpace(&self) -> bool;
#[method(setBlendsInDestinationColorSpace:)]
pub unsafe fn setBlendsInDestinationColorSpace(
&self,
blends_in_destination_color_space: bool,
);
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIRenderDestination {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIRenderInfo;
unsafe impl ClassType for CIRenderInfo {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CIRenderInfo {}
extern_methods!(
unsafe impl CIRenderInfo {
#[method(kernelExecutionTime)]
pub unsafe fn kernelExecutionTime(&self) -> NSTimeInterval;
#[method(kernelCompileTime)]
pub unsafe fn kernelCompileTime(&self) -> NSTimeInterval;
#[method(passCount)]
pub unsafe fn passCount(&self) -> NSInteger;
#[method(pixelsProcessed)]
pub unsafe fn pixelsProcessed(&self) -> NSInteger;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIRenderInfo {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIRenderTask;
unsafe impl ClassType for CIRenderTask {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CIRenderTask {}
extern_methods!(
unsafe impl CIRenderTask {
#[method_id(@__retain_semantics Other waitUntilCompletedAndReturnError:_)]
pub unsafe fn waitUntilCompletedAndReturnError(
&self,
) -> Result<Retained<CIRenderInfo>, Retained<NSError>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIRenderTask {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_methods!(
/// CIRenderDestination
#[cfg(feature = "CIContext")]
unsafe impl CIContext {
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other startTaskToRender:fromRect:toDestination:atPoint:error:_)]
pub unsafe fn startTaskToRender_fromRect_toDestination_atPoint_error(
&self,
image: &CIImage,
from_rect: CGRect,
destination: &CIRenderDestination,
at_point: CGPoint,
) -> Result<Retained<CIRenderTask>, Retained<NSError>>;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other startTaskToRender:toDestination:error:_)]
pub unsafe fn startTaskToRender_toDestination_error(
&self,
image: &CIImage,
destination: &CIRenderDestination,
) -> Result<Retained<CIRenderTask>, Retained<NSError>>;
#[cfg(feature = "CIImage")]
#[method(prepareRender:fromRect:toDestination:atPoint:error:_)]
pub unsafe fn prepareRender_fromRect_toDestination_atPoint_error(
&self,
image: &CIImage,
from_rect: CGRect,
destination: &CIRenderDestination,
at_point: CGPoint,
) -> Result<(), Retained<NSError>>;
#[method_id(@__retain_semantics Other startTaskToClear:error:_)]
pub unsafe fn startTaskToClear_error(
&self,
destination: &CIRenderDestination,
) -> Result<Retained<CIRenderTask>, Retained<NSError>>;
}
);

View File

@@ -0,0 +1,97 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CISampler;
unsafe impl ClassType for CISampler {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCopying for CISampler {}
unsafe impl NSObjectProtocol for CISampler {}
extern_methods!(
unsafe impl CISampler {
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other samplerWithImage:)]
pub unsafe fn samplerWithImage(im: &CIImage) -> Retained<Self>;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Other samplerWithImage:options:)]
pub unsafe fn samplerWithImage_options(
im: &CIImage,
dict: Option<&NSDictionary>,
) -> Retained<Self>;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Init initWithImage:)]
pub unsafe fn initWithImage(this: Allocated<Self>, im: &CIImage) -> Retained<Self>;
#[cfg(feature = "CIImage")]
#[method_id(@__retain_semantics Init initWithImage:options:)]
pub unsafe fn initWithImage_options(
this: Allocated<Self>,
im: &CIImage,
dict: Option<&NSDictionary>,
) -> Retained<Self>;
#[cfg(feature = "CIFilterShape")]
#[method_id(@__retain_semantics Other definition)]
pub unsafe fn definition(&self) -> Retained<CIFilterShape>;
#[method(extent)]
pub unsafe fn extent(&self) -> CGRect;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CISampler {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern "C" {
pub static kCISamplerAffineMatrix: &'static NSString;
}
extern "C" {
pub static kCISamplerWrapMode: &'static NSString;
}
extern "C" {
pub static kCISamplerFilterMode: &'static NSString;
}
extern "C" {
pub static kCISamplerWrapBlack: &'static NSString;
}
extern "C" {
pub static kCISamplerWrapClamp: &'static NSString;
}
extern "C" {
pub static kCISamplerFilterNearest: &'static NSString;
}
extern "C" {
pub static kCISamplerFilterLinear: &'static NSString;
}
extern "C" {
pub static kCISamplerColorSpace: &'static NSString;
}

View File

@@ -0,0 +1,140 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CIVector;
unsafe impl ClassType for CIVector {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CIVector {}
unsafe impl NSCopying for CIVector {}
unsafe impl NSObjectProtocol for CIVector {}
unsafe impl NSSecureCoding for CIVector {}
extern_methods!(
unsafe impl CIVector {
#[method_id(@__retain_semantics Other vectorWithValues:count:)]
pub unsafe fn vectorWithValues_count(
values: NonNull<CGFloat>,
count: usize,
) -> Retained<Self>;
#[method_id(@__retain_semantics Other vectorWithX:)]
pub unsafe fn vectorWithX(x: CGFloat) -> Retained<Self>;
#[method_id(@__retain_semantics Other vectorWithX:Y:)]
pub unsafe fn vectorWithX_Y(x: CGFloat, y: CGFloat) -> Retained<Self>;
#[method_id(@__retain_semantics Other vectorWithX:Y:Z:)]
pub unsafe fn vectorWithX_Y_Z(x: CGFloat, y: CGFloat, z: CGFloat) -> Retained<Self>;
#[method_id(@__retain_semantics Other vectorWithX:Y:Z:W:)]
pub unsafe fn vectorWithX_Y_Z_W(
x: CGFloat,
y: CGFloat,
z: CGFloat,
w: CGFloat,
) -> Retained<Self>;
#[method_id(@__retain_semantics Other vectorWithCGPoint:)]
pub unsafe fn vectorWithCGPoint(p: CGPoint) -> Retained<Self>;
#[method_id(@__retain_semantics Other vectorWithCGRect:)]
pub unsafe fn vectorWithCGRect(r: CGRect) -> Retained<Self>;
#[method_id(@__retain_semantics Other vectorWithString:)]
pub unsafe fn vectorWithString(representation: &NSString) -> Retained<Self>;
#[method_id(@__retain_semantics Init initWithValues:count:)]
pub unsafe fn initWithValues_count(
this: Allocated<Self>,
values: NonNull<CGFloat>,
count: usize,
) -> Retained<Self>;
#[method_id(@__retain_semantics Init initWithX:)]
pub unsafe fn initWithX(this: Allocated<Self>, x: CGFloat) -> Retained<Self>;
#[method_id(@__retain_semantics Init initWithX:Y:)]
pub unsafe fn initWithX_Y(this: Allocated<Self>, x: CGFloat, y: CGFloat) -> Retained<Self>;
#[method_id(@__retain_semantics Init initWithX:Y:Z:)]
pub unsafe fn initWithX_Y_Z(
this: Allocated<Self>,
x: CGFloat,
y: CGFloat,
z: CGFloat,
) -> Retained<Self>;
#[method_id(@__retain_semantics Init initWithX:Y:Z:W:)]
pub unsafe fn initWithX_Y_Z_W(
this: Allocated<Self>,
x: CGFloat,
y: CGFloat,
z: CGFloat,
w: CGFloat,
) -> Retained<Self>;
#[method_id(@__retain_semantics Init initWithCGPoint:)]
pub unsafe fn initWithCGPoint(this: Allocated<Self>, p: CGPoint) -> Retained<Self>;
#[method_id(@__retain_semantics Init initWithCGRect:)]
pub unsafe fn initWithCGRect(this: Allocated<Self>, r: CGRect) -> Retained<Self>;
#[method_id(@__retain_semantics Init initWithString:)]
pub unsafe fn initWithString(
this: Allocated<Self>,
representation: &NSString,
) -> Retained<Self>;
#[method(valueAtIndex:)]
pub unsafe fn valueAtIndex(&self, index: usize) -> CGFloat;
#[method(count)]
pub unsafe fn count(&self) -> usize;
#[method(X)]
pub unsafe fn X(&self) -> CGFloat;
#[method(Y)]
pub unsafe fn Y(&self) -> CGFloat;
#[method(Z)]
pub unsafe fn Z(&self) -> CGFloat;
#[method(W)]
pub unsafe fn W(&self) -> CGFloat;
#[method(CGPointValue)]
pub unsafe fn CGPointValue(&self) -> CGPoint;
#[method(CGRectValue)]
pub unsafe fn CGRectValue(&self) -> CGRect;
#[method_id(@__retain_semantics Other stringRepresentation)]
pub unsafe fn stringRepresentation(&self) -> Retained<NSString>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CIVector {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);

View File

@@ -0,0 +1,2 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT

View File

@@ -0,0 +1,668 @@
// This file has been automatically generated by `objc2`'s `header-translator`.
// DO NOT EDIT
#![allow(unused_imports)]
#![allow(deprecated)]
#![allow(non_snake_case)]
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#![allow(missing_docs)]
#![allow(clippy::too_many_arguments)]
#![allow(clippy::type_complexity)]
#![allow(clippy::upper_case_acronyms)]
#![allow(clippy::identity_op)]
#![allow(clippy::missing_safety_doc)]
#[link(name = "CoreImage", kind = "framework")]
extern "C" {}
#[cfg(feature = "CIBarcodeDescriptor")]
#[path = "CIBarcodeDescriptor.rs"]
mod __CIBarcodeDescriptor;
#[cfg(feature = "CIColor")]
#[path = "CIColor.rs"]
mod __CIColor;
#[cfg(feature = "CIContext")]
#[path = "CIContext.rs"]
mod __CIContext;
#[cfg(feature = "CIDetector")]
#[path = "CIDetector.rs"]
mod __CIDetector;
#[cfg(feature = "CIFeature")]
#[path = "CIFeature.rs"]
mod __CIFeature;
#[cfg(feature = "CIFilter")]
#[path = "CIFilter.rs"]
mod __CIFilter;
#[cfg(feature = "CIFilterConstructor")]
#[path = "CIFilterConstructor.rs"]
mod __CIFilterConstructor;
#[cfg(feature = "CIFilterGenerator")]
#[path = "CIFilterGenerator.rs"]
mod __CIFilterGenerator;
#[cfg(feature = "CIFilterShape")]
#[path = "CIFilterShape.rs"]
mod __CIFilterShape;
#[cfg(feature = "CIImage")]
#[path = "CIImage.rs"]
mod __CIImage;
#[cfg(feature = "CIImageAccumulator")]
#[path = "CIImageAccumulator.rs"]
mod __CIImageAccumulator;
#[cfg(feature = "CIImageProcessor")]
#[path = "CIImageProcessor.rs"]
mod __CIImageProcessor;
#[cfg(feature = "CIImageProvider")]
#[path = "CIImageProvider.rs"]
mod __CIImageProvider;
#[cfg(feature = "CIKernel")]
#[path = "CIKernel.rs"]
mod __CIKernel;
#[cfg(feature = "CIKernelMetalLib")]
#[path = "CIKernelMetalLib.rs"]
mod __CIKernelMetalLib;
#[cfg(feature = "CIPlugIn")]
#[path = "CIPlugIn.rs"]
mod __CIPlugIn;
#[cfg(feature = "CIPlugInInterface")]
#[path = "CIPlugInInterface.rs"]
mod __CIPlugInInterface;
#[cfg(feature = "CIRAWFilter")]
#[path = "CIRAWFilter.rs"]
mod __CIRAWFilter;
#[cfg(feature = "CIRAWFilter_Deprecated")]
#[path = "CIRAWFilter_Deprecated.rs"]
mod __CIRAWFilter_Deprecated;
#[cfg(feature = "CIRenderDestination")]
#[path = "CIRenderDestination.rs"]
mod __CIRenderDestination;
#[cfg(feature = "CISampler")]
#[path = "CISampler.rs"]
mod __CISampler;
#[cfg(feature = "CIVector")]
#[path = "CIVector.rs"]
mod __CIVector;
#[cfg(feature = "CoreImageDefines")]
#[path = "CoreImageDefines.rs"]
mod __CoreImageDefines;
#[cfg(feature = "CIBarcodeDescriptor")]
pub use self::__CIBarcodeDescriptor::CIAztecCodeDescriptor;
#[cfg(feature = "CIBarcodeDescriptor")]
pub use self::__CIBarcodeDescriptor::CIBarcodeDescriptor;
#[cfg(feature = "CIBarcodeDescriptor")]
pub use self::__CIBarcodeDescriptor::CIDataMatrixCodeDescriptor;
#[cfg(feature = "CIBarcodeDescriptor")]
pub use self::__CIBarcodeDescriptor::CIDataMatrixCodeECCVersion;
#[cfg(feature = "CIBarcodeDescriptor")]
pub use self::__CIBarcodeDescriptor::CIPDF417CodeDescriptor;
#[cfg(feature = "CIBarcodeDescriptor")]
pub use self::__CIBarcodeDescriptor::CIQRCodeDescriptor;
#[cfg(feature = "CIBarcodeDescriptor")]
pub use self::__CIBarcodeDescriptor::CIQRCodeErrorCorrectionLevel;
#[cfg(feature = "CIBarcodeDescriptor")]
pub use self::__CIBarcodeDescriptor::NSUserActivityCIBarcodeDescriptor;
#[cfg(feature = "CIColor")]
pub use self::__CIColor::CIColor;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIContextAllowLowPower;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIContextCacheIntermediates;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIContextHighQualityDownsample;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIContextMemoryLimit;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIContextName;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIContextOutputColorSpace;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIContextOutputPremultiplied;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIContextPriorityRequestLow;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIContextUseSoftwareRenderer;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIContextWorkingColorSpace;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIContextWorkingFormat;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIImageRepresentationAVDepthData;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIImageRepresentationAVPortraitEffectsMatte;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIImageRepresentationAVSemanticSegmentationMattes;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIImageRepresentationDepthImage;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIImageRepresentationDisparityImage;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIImageRepresentationPortraitEffectsMatteImage;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIImageRepresentationSemanticSegmentationGlassesMatteImage;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIImageRepresentationSemanticSegmentationHairMatteImage;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIImageRepresentationSemanticSegmentationSkinMatteImage;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIImageRepresentationSemanticSegmentationSkyMatteImage;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::kCIImageRepresentationSemanticSegmentationTeethMatteImage;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::CIContext;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::CIContextOption;
#[cfg(feature = "CIContext")]
pub use self::__CIContext::CIImageRepresentationOption;
#[cfg(feature = "CIDetector")]
pub use self::__CIDetector::CIDetector;
#[cfg(feature = "CIDetector")]
pub use self::__CIDetector::CIDetectorAccuracy;
#[cfg(feature = "CIDetector")]
pub use self::__CIDetector::CIDetectorAccuracyHigh;
#[cfg(feature = "CIDetector")]
pub use self::__CIDetector::CIDetectorAccuracyLow;
#[cfg(feature = "CIDetector")]
pub use self::__CIDetector::CIDetectorAspectRatio;
#[cfg(feature = "CIDetector")]
pub use self::__CIDetector::CIDetectorEyeBlink;
#[cfg(feature = "CIDetector")]
pub use self::__CIDetector::CIDetectorFocalLength;
#[cfg(feature = "CIDetector")]
pub use self::__CIDetector::CIDetectorImageOrientation;
#[cfg(feature = "CIDetector")]
pub use self::__CIDetector::CIDetectorMaxFeatureCount;
#[cfg(feature = "CIDetector")]
pub use self::__CIDetector::CIDetectorMinFeatureSize;
#[cfg(feature = "CIDetector")]
pub use self::__CIDetector::CIDetectorNumberOfAngles;
#[cfg(feature = "CIDetector")]
pub use self::__CIDetector::CIDetectorReturnSubFeatures;
#[cfg(feature = "CIDetector")]
pub use self::__CIDetector::CIDetectorSmile;
#[cfg(feature = "CIDetector")]
pub use self::__CIDetector::CIDetectorTracking;
#[cfg(feature = "CIDetector")]
pub use self::__CIDetector::CIDetectorTypeFace;
#[cfg(feature = "CIDetector")]
pub use self::__CIDetector::CIDetectorTypeQRCode;
#[cfg(feature = "CIDetector")]
pub use self::__CIDetector::CIDetectorTypeRectangle;
#[cfg(feature = "CIDetector")]
pub use self::__CIDetector::CIDetectorTypeText;
#[cfg(feature = "CIFeature")]
pub use self::__CIFeature::CIFaceFeature;
#[cfg(feature = "CIFeature")]
pub use self::__CIFeature::CIFeature;
#[cfg(feature = "CIFeature")]
pub use self::__CIFeature::CIFeatureTypeFace;
#[cfg(feature = "CIFeature")]
pub use self::__CIFeature::CIFeatureTypeQRCode;
#[cfg(feature = "CIFeature")]
pub use self::__CIFeature::CIFeatureTypeRectangle;
#[cfg(feature = "CIFeature")]
pub use self::__CIFeature::CIFeatureTypeText;
#[cfg(feature = "CIFeature")]
pub use self::__CIFeature::CIQRCodeFeature;
#[cfg(feature = "CIFeature")]
pub use self::__CIFeature::CIRectangleFeature;
#[cfg(feature = "CIFeature")]
pub use self::__CIFeature::CITextFeature;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIApplyOptionColorSpace;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIApplyOptionDefinition;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIApplyOptionExtent;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIApplyOptionUserInfo;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeClass;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeDefault;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeDescription;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeDisplayName;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeFilterAvailable_Mac;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeFilterAvailable_iOS;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeFilterCategories;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeFilterDisplayName;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeFilterName;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeIdentity;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeMax;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeMin;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeName;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeReferenceDocumentation;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeSliderMax;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeSliderMin;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeType;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeTypeAngle;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeTypeBoolean;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeTypeColor;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeTypeCount;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeTypeDistance;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeTypeGradient;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeTypeImage;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeTypeInteger;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeTypeOffset;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeTypeOpaqueColor;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeTypePosition;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeTypePosition3;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeTypeRectangle;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeTypeScalar;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeTypeTime;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIAttributeTypeTransform;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryBlur;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryBuiltIn;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryColorAdjustment;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryColorEffect;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryCompositeOperation;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryDistortionEffect;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryFilterGenerator;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryGenerator;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryGeometryAdjustment;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryGradient;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryHalftoneEffect;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryHighDynamicRange;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryInterlaced;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryNonSquarePixels;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryReduction;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategorySharpen;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryStillImage;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryStylize;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryTileEffect;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryTransition;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCICategoryVideo;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputAmountKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputAngleKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputAspectRatioKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputBackgroundImageKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputBiasKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputBrightnessKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputCenterKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputColorKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputContrastKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputDepthImageKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputDisparityImageKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputEVKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputExtentKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputGradientImageKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputImageKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputIntensityKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputMaskImageKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputMatteImageKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputRadiusKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputRefractionKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputSaturationKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputScaleKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputShadingImageKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputSharpnessKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputTargetImageKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputTimeKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputTransformKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputVersionKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputWeightsKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIInputWidthKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIOutputImageKey;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIUIParameterSet;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIUISetAdvanced;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIUISetBasic;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIUISetDevelopment;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::kCIUISetIntermediate;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::CIFilter;
#[cfg(feature = "CIFilter")]
pub use self::__CIFilter::CIFilterProtocol;
#[cfg(feature = "CIFilterConstructor")]
pub use self::__CIFilterConstructor::CIFilterConstructor;
#[cfg(feature = "CIFilterGenerator")]
pub use self::__CIFilterGenerator::kCIFilterGeneratorExportedKey;
#[cfg(feature = "CIFilterGenerator")]
pub use self::__CIFilterGenerator::kCIFilterGeneratorExportedKeyName;
#[cfg(feature = "CIFilterGenerator")]
pub use self::__CIFilterGenerator::kCIFilterGeneratorExportedKeyTargetObject;
#[cfg(feature = "CIFilterGenerator")]
pub use self::__CIFilterGenerator::CIFilterGenerator;
#[cfg(feature = "CIFilterShape")]
pub use self::__CIFilterShape::CIFilterShape;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatA16;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatA8;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatABGR8;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatARGB8;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatAf;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatAh;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatBGRA8;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatL16;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatL8;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatLA16;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatLA8;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatLAf;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatLAh;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatLf;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatLh;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatR16;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatR8;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatRG16;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatRG8;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatRGB10;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatRGBA16;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatRGBA8;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatRGBAf;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatRGBAh;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatRGBX16;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatRGBXf;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatRGBXh;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatRGf;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatRGh;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatRf;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIFormatRh;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageApplyOrientationProperty;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageAutoAdjustCrop;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageAutoAdjustEnhance;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageAutoAdjustFeatures;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageAutoAdjustLevel;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageAutoAdjustRedEye;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageAuxiliaryDepth;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageAuxiliaryDisparity;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageAuxiliaryHDRGainMap;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageAuxiliaryPortraitEffectsMatte;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageAuxiliarySemanticSegmentationGlassesMatte;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageAuxiliarySemanticSegmentationHairMatte;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageAuxiliarySemanticSegmentationSkinMatte;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageAuxiliarySemanticSegmentationSkyMatte;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageAuxiliarySemanticSegmentationTeethMatte;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageCacheImmediately;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageColorSpace;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageExpandToHDR;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageNearestSampling;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageProperties;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageTextureFormat;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageTextureTarget;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::kCIImageToneMapHDRtoSDR;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::CIFormat;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::CIImage;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::CIImageAutoAdjustmentOption;
#[cfg(feature = "CIImage")]
pub use self::__CIImage::CIImageOption;
#[cfg(feature = "CIImageAccumulator")]
pub use self::__CIImageAccumulator::CIImageAccumulator;
#[cfg(feature = "CIImageProcessor")]
pub use self::__CIImageProcessor::CIImageProcessorInput;
#[cfg(feature = "CIImageProcessor")]
pub use self::__CIImageProcessor::CIImageProcessorKernel;
#[cfg(feature = "CIImageProcessor")]
pub use self::__CIImageProcessor::CIImageProcessorOutput;
#[cfg(all(feature = "CIImage", feature = "CIImageProvider"))]
pub use self::__CIImageProvider::kCIImageProviderTileSize;
#[cfg(all(feature = "CIImage", feature = "CIImageProvider"))]
pub use self::__CIImageProvider::kCIImageProviderUserInfo;
#[cfg(feature = "CIImageProvider")]
pub use self::__CIImageProvider::NSObjectCIImageProvider;
#[cfg(feature = "CIKernel")]
pub use self::__CIKernel::CIBlendKernel;
#[cfg(feature = "CIKernel")]
pub use self::__CIKernel::CIColorKernel;
#[cfg(feature = "CIKernel")]
pub use self::__CIKernel::CIKernel;
#[cfg(all(feature = "CIKernel", feature = "block2"))]
pub use self::__CIKernel::CIKernelROICallback;
#[cfg(feature = "CIKernel")]
pub use self::__CIKernel::CIWarpKernel;
#[cfg(feature = "CIPlugIn")]
pub use self::__CIPlugIn::CIPlugIn;
#[cfg(feature = "CIPlugInInterface")]
pub use self::__CIPlugInInterface::CIPlugInRegistration;
#[cfg(feature = "CIRAWFilter")]
pub use self::__CIRAWFilter::CIRAWDecoderVersion;
#[cfg(feature = "CIRAWFilter")]
pub use self::__CIRAWFilter::CIRAWDecoderVersion6;
#[cfg(feature = "CIRAWFilter")]
pub use self::__CIRAWFilter::CIRAWDecoderVersion6DNG;
#[cfg(feature = "CIRAWFilter")]
pub use self::__CIRAWFilter::CIRAWDecoderVersion7;
#[cfg(feature = "CIRAWFilter")]
pub use self::__CIRAWFilter::CIRAWDecoderVersion7DNG;
#[cfg(feature = "CIRAWFilter")]
pub use self::__CIRAWFilter::CIRAWDecoderVersion8;
#[cfg(feature = "CIRAWFilter")]
pub use self::__CIRAWFilter::CIRAWDecoderVersion8DNG;
#[cfg(feature = "CIRAWFilter")]
pub use self::__CIRAWFilter::CIRAWDecoderVersionNone;
#[cfg(all(feature = "CIFilter", feature = "CIRAWFilter"))]
pub use self::__CIRAWFilter::CIRAWFilter;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIActiveKeys;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputAllowDraftModeKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputBaselineExposureKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputBoostKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputBoostShadowAmountKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputColorNoiseReductionAmountKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputDecoderVersionKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputDisableGamutMapKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputEnableChromaticNoiseTrackingKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputEnableEDRModeKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputEnableSharpeningKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputEnableVendorLensCorrectionKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputIgnoreImageOrientationKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputImageOrientationKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputLinearSpaceFilter;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputLocalToneMapAmountKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputLuminanceNoiseReductionAmountKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputMoireAmountKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputNeutralChromaticityXKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputNeutralChromaticityYKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputNeutralLocationKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputNeutralTemperatureKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputNeutralTintKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputNoiseReductionAmountKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputNoiseReductionContrastAmountKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputNoiseReductionDetailAmountKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputNoiseReductionSharpnessAmountKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIInputScaleFactorKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIOutputNativeSizeKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCIPropertiesKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::kCISupportedDecoderVersionsKey;
#[cfg(feature = "CIRAWFilter_Deprecated")]
pub use self::__CIRAWFilter_Deprecated::CIRAWFilterOption;
#[cfg(feature = "CIRenderDestination")]
pub use self::__CIRenderDestination::CIRenderDestination;
#[cfg(feature = "CIRenderDestination")]
pub use self::__CIRenderDestination::CIRenderDestinationAlphaMode;
#[cfg(feature = "CIRenderDestination")]
pub use self::__CIRenderDestination::CIRenderInfo;
#[cfg(feature = "CIRenderDestination")]
pub use self::__CIRenderDestination::CIRenderTask;
#[cfg(feature = "CISampler")]
pub use self::__CISampler::kCISamplerAffineMatrix;
#[cfg(feature = "CISampler")]
pub use self::__CISampler::kCISamplerColorSpace;
#[cfg(feature = "CISampler")]
pub use self::__CISampler::kCISamplerFilterLinear;
#[cfg(feature = "CISampler")]
pub use self::__CISampler::kCISamplerFilterMode;
#[cfg(feature = "CISampler")]
pub use self::__CISampler::kCISamplerFilterNearest;
#[cfg(feature = "CISampler")]
pub use self::__CISampler::kCISamplerWrapBlack;
#[cfg(feature = "CISampler")]
pub use self::__CISampler::kCISamplerWrapClamp;
#[cfg(feature = "CISampler")]
pub use self::__CISampler::kCISamplerWrapMode;
#[cfg(feature = "CISampler")]
pub use self::__CISampler::CISampler;
#[cfg(feature = "CIVector")]
pub use self::__CIVector::CIVector;

20
vendor/objc2-core-image/src/lib.rs vendored Normal file
View File

@@ -0,0 +1,20 @@
//! # Bindings to the `CoreImage` framework
//!
//! See [Apple's docs][apple-doc] and [the general docs on framework crates][framework-crates] for more information.
//!
//! [apple-doc]: https://developer.apple.com/documentation/coreimage/
//! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html
#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
// Update in Cargo.toml as well.
#![doc(html_root_url = "https://docs.rs/objc2-core-image/0.2.2")]
#[cfg(feature = "alloc")]
extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
mod generated;
#[allow(unused_imports, unreachable_pub)]
pub use self::generated::*;

View File

@@ -0,0 +1,126 @@
framework = "CoreImage"
crate = "objc2-core-image"
required-dependencies = ["objc2-foundation"]
macos = "10.11"
maccatalyst = "13.0"
ios = "5.0"
tvos = "9.0"
visionos = "1.0"
# CF_RETURNS_NOT_RETAINED
class.CIColor.methods.colorSpace.skipped = true
class.CIImage.methods.colorSpace.skipped = true
# CF_RETURNS_RETAINED
class.CIContext.methods."createCGLayerWithSize:info:".skipped = true
class.CIContext.methods."createCGImage:fromRect:".skipped = true
class.CIContext.methods."createCGImage:fromRect:format:colorSpace:".skipped = true
class.CIContext.methods."createCGImage:fromRect:format:colorSpace:deferred:".skipped = true
# Breaks usual conventions for errors, the return value is _not_ nullable, so
# the user must always check the error variable.
class.CIFilter.methods."filterArrayFromSerializedXMP:inputImageExtent:error:".skipped = true
# Both a protocol and a class, so we use Swift's naming scheme
protocol.CIFilter.renamed = "CIFilterProtocol"
# Needs AVFoundation
class.CIImage.categories.AVDepthData.skipped = true
class.CIImage.categories.AVPortraitEffectsMatte.skipped = true
class.CIImage.categories.AVSemanticSegmentationMatte.skipped = true
# Needs `IOSurfaceRef` from IOKit
class.CIRenderDestination.methods."initWithIOSurface:".skipped = true
protocol.CIImageProcessorInput.methods.surface.skipped = true
protocol.CIImageProcessorOutput.methods.surface.skipped = true
class.CIContext.methods."render:toIOSurface:bounds:colorSpace:".skipped = true
class.CIImage.methods."imageWithIOSurface:".skipped = true
class.CIImage.methods."imageWithIOSurface:options:".skipped = true
class.CIImage.methods."initWithIOSurface:".skipped = true
class.CIImage.methods."initWithIOSurface:options:".skipped = true
class.CIImage.methods."initWithIOSurface:plane:format:options:".skipped = true
# Needs `EAGLContext`
class.CIContext.methods."contextWithEAGLContext:".skipped = true
class.CIContext.methods."contextWithEAGLContext:options:".skipped = true
# Needs CoreGraphics
class.CIColor.methods."colorWithCGColor:".skipped = true
class.CIColor.methods."colorWithRed:green:blue:alpha:colorSpace:".skipped = true
class.CIColor.methods."colorWithRed:green:blue:colorSpace:".skipped = true
class.CIColor.methods."initWithCGColor:".skipped = true
class.CIColor.methods."initWithRed:green:blue:alpha:colorSpace:".skipped = true
class.CIColor.methods."initWithRed:green:blue:colorSpace:".skipped = true
class.CIContext.methods."contextWithCGLContext:pixelFormat:colorSpace:options:".skipped = true
class.CIContext.methods."contextWithCGLContext:pixelFormat:options:".skipped = true
class.CIContext.methods."contextWithCGContext:options:".skipped = true
class.CIContext.methods.workingColorSpace.skipped = true
class.CIContext.methods."render:toBitmap:rowBytes:bounds:format:colorSpace:".skipped = true
class.CIContext.methods."render:toCVPixelBuffer:bounds:colorSpace:".skipped = true
class.CIContext.methods."render:toMTLTexture:commandBuffer:bounds:colorSpace:".skipped = true
class.CIContext.methods."contextForOfflineGPUAtIndex:colorSpace:options:sharedContext:".skipped = true
class.CIContext.methods."TIFFRepresentationOfImage:format:colorSpace:options:".skipped = true
class.CIContext.methods."JPEGRepresentationOfImage:colorSpace:options:".skipped = true
class.CIContext.methods."HEIFRepresentationOfImage:format:colorSpace:options:".skipped = true
class.CIContext.methods."HEIF10RepresentationOfImage:colorSpace:options:error:".skipped = true
class.CIContext.methods."PNGRepresentationOfImage:format:colorSpace:options:".skipped = true
class.CIContext.methods."writeTIFFRepresentationOfImage:toURL:format:colorSpace:options:error:".skipped = true
class.CIContext.methods."writePNGRepresentationOfImage:toURL:format:colorSpace:options:error:".skipped = true
class.CIContext.methods."writeJPEGRepresentationOfImage:toURL:colorSpace:options:error:".skipped = true
class.CIContext.methods."writeHEIFRepresentationOfImage:toURL:format:colorSpace:options:error:".skipped = true
class.CIContext.methods."writeHEIF10RepresentationOfImage:toURL:colorSpace:options:error:".skipped = true
class.CIContext.methods."depthBlurEffectFilterForImage:disparityImage:portraitEffectsMatte:orientation:options:".skipped = true
class.CIContext.methods."depthBlurEffectFilterForImage:disparityImage:portraitEffectsMatte:hairSemanticSegmentation:orientation:options:".skipped = true
class.CIContext.methods."depthBlurEffectFilterForImage:disparityImage:portraitEffectsMatte:hairSemanticSegmentation:glassesMatte:gainMap:orientation:options:".skipped = true
class.CIFilterShape.methods."transformBy:interior:".skipped = true
class.CIImage.methods."imageWithCGImage:".skipped = true
class.CIImage.methods."imageWithCGImage:options:".skipped = true
class.CIImage.methods."imageWithCGImageSource:index:options:".skipped = true
class.CIImage.methods."imageWithCGLayer:".skipped = true
class.CIImage.methods."imageWithCGLayer:options:".skipped = true
class.CIImage.methods."imageWithBitmapData:bytesPerRow:size:format:colorSpace:".skipped = true
class.CIImage.methods."imageWithTexture:size:flipped:colorSpace:".skipped = true
class.CIImage.methods."initWithCGImage:".skipped = true
class.CIImage.methods."initWithCGImage:options:".skipped = true
class.CIImage.methods."initWithCGImageSource:index:options:".skipped = true
class.CIImage.methods."initWithCGLayer:".skipped = true
class.CIImage.methods."initWithCGLayer:options:".skipped = true
class.CIImage.methods."initWithBitmapData:bytesPerRow:size:format:colorSpace:".skipped = true
class.CIImage.methods."initWithTexture:size:flipped:colorSpace:".skipped = true
class.CIImage.methods."imageByApplyingTransform:".skipped = true
class.CIImage.methods."imageByApplyingTransform:highQualityDownsample:".skipped = true
class.CIImage.methods."imageTransformForOrientation:".skipped = true
class.CIImage.methods."imageByApplyingCGOrientation:".skipped = true
class.CIImage.methods."imageTransformForCGOrientation:".skipped = true
class.CIImage.methods."imageByColorMatchingColorSpaceToWorkingSpace:".skipped = true
class.CIImage.methods."imageByColorMatchingWorkingSpaceToColorSpace:".skipped = true
class.CIImage.methods.CGImage.skipped = true
class.CIImageAccumulator.methods."imageAccumulatorWithExtent:format:colorSpace:".skipped = true
class.CIImageAccumulator.methods."initWithExtent:format:colorSpace:".skipped = true
class.CIImage.methods."imageWithImageProvider:size::format:colorSpace:options:".skipped = true
class.CIImage.methods."initWithImageProvider:size::format:colorSpace:options:".skipped = true
class.CIBlendKernel.methods."applyWithForeground:background:colorSpace:".skipped = true
class.CIRAWFilter.methods.orientation.skipped = true
class.CIRAWFilter.methods."setOrientation:".skipped = true
class.CIRenderDestination.methods.colorSpace.skipped = true
class.CIRenderDestination.methods."setColorSpace:".skipped = true
class.CIVector.methods."vectorWithCGAffineTransform:".skipped = true
class.CIVector.methods."initWithCGAffineTransform:".skipped = true
class.CIVector.methods.CGAffineTransformValue.skipped = true
# Needs CoreVideo
class.CIContext.methods."render:toCVPixelBuffer:".skipped = true
class.CIImage.methods."imageWithCVImageBuffer:".skipped = true
class.CIImage.methods."imageWithCVImageBuffer:options:".skipped = true
class.CIImage.methods."imageWithCVPixelBuffer:".skipped = true
class.CIImage.methods."imageWithCVPixelBuffer:options:".skipped = true
class.CIImage.methods."initWithCVImageBuffer:".skipped = true
class.CIImage.methods."initWithCVImageBuffer:options:".skipped = true
class.CIImage.methods."initWithCVPixelBuffer:".skipped = true
class.CIImage.methods."initWithCVPixelBuffer:options:".skipped = true
class.CIImage.methods.pixelBuffer.skipped = true
protocol.CIImageProcessorInput.methods.pixelBuffer.skipped = true
protocol.CIImageProcessorOutput.methods.pixelBuffer.skipped = true
class.CIFilter.methods."filterWithCVPixelBuffer:properties:options:".skipped = true
class.CIRAWFilter.methods."filterWithCVPixelBuffer:properties:".skipped = true
class.CIRenderDestination.methods."initWithPixelBuffer:".skipped = true