use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-image")]
use objc2_core_image::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
pub struct VNImageRegistrationRequest;
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
unsafe impl ClassType for VNImageRegistrationRequest {
#[inherits(VNImageBasedRequest, VNRequest, NSObject)]
type Super = VNTargetedImageRequest;
type Mutability = InteriorMutable;
}
);
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
unsafe impl NSCopying for VNImageRegistrationRequest {}
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
unsafe impl NSObjectProtocol for VNImageRegistrationRequest {}
extern_methods!(
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
unsafe impl VNImageRegistrationRequest {}
);
extern_methods!(
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
unsafe impl VNImageRegistrationRequest {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(feature = "block2")]
#[method_id(@__retain_semantics Init initWithCompletionHandler:)]
pub unsafe fn initWithCompletionHandler(
this: Allocated<Self>,
completion_handler: VNRequestCompletionHandler,
) -> Retained<Self>;
#[cfg(all(feature = "VNRequestHandler", feature = "objc2-core-image"))]
#[method_id(@__retain_semantics Init initWithTargetedCIImage:options:)]
pub unsafe fn initWithTargetedCIImage_options(
this: Allocated<Self>,
ci_image: &CIImage,
options: &NSDictionary<VNImageOption, AnyObject>,
) -> Retained<Self>;
#[cfg(all(
feature = "VNRequestHandler",
feature = "block2",
feature = "objc2-core-image"
))]
#[method_id(@__retain_semantics Init initWithTargetedCIImage:options:completionHandler:)]
pub unsafe fn initWithTargetedCIImage_options_completionHandler(
this: Allocated<Self>,
ci_image: &CIImage,
options: &NSDictionary<VNImageOption, AnyObject>,
completion_handler: VNRequestCompletionHandler,
) -> Retained<Self>;
#[cfg(feature = "VNRequestHandler")]
#[method_id(@__retain_semantics Init initWithTargetedImageURL:options:)]
pub unsafe fn initWithTargetedImageURL_options(
this: Allocated<Self>,
image_url: &NSURL,
options: &NSDictionary<VNImageOption, AnyObject>,
) -> Retained<Self>;
#[cfg(all(feature = "VNRequestHandler", feature = "block2"))]
#[method_id(@__retain_semantics Init initWithTargetedImageURL:options:completionHandler:)]
pub unsafe fn initWithTargetedImageURL_options_completionHandler(
this: Allocated<Self>,
image_url: &NSURL,
options: &NSDictionary<VNImageOption, AnyObject>,
completion_handler: VNRequestCompletionHandler,
) -> Retained<Self>;
#[cfg(feature = "VNRequestHandler")]
#[method_id(@__retain_semantics Init initWithTargetedImageData:options:)]
pub unsafe fn initWithTargetedImageData_options(
this: Allocated<Self>,
image_data: &NSData,
options: &NSDictionary<VNImageOption, AnyObject>,
) -> Retained<Self>;
#[cfg(all(feature = "VNRequestHandler", feature = "block2"))]
#[method_id(@__retain_semantics Init initWithTargetedImageData:options:completionHandler:)]
pub unsafe fn initWithTargetedImageData_options_completionHandler(
this: Allocated<Self>,
image_data: &NSData,
options: &NSDictionary<VNImageOption, AnyObject>,
completion_handler: VNRequestCompletionHandler,
) -> Retained<Self>;
}
);
extern_methods!(
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
unsafe impl VNImageRegistrationRequest {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
pub struct VNTranslationalImageRegistrationRequest;
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
unsafe impl ClassType for VNTranslationalImageRegistrationRequest {
#[inherits(VNTargetedImageRequest, VNImageBasedRequest, VNRequest, NSObject)]
type Super = VNImageRegistrationRequest;
type Mutability = InteriorMutable;
}
);
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
unsafe impl NSCopying for VNTranslationalImageRegistrationRequest {}
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
unsafe impl NSObjectProtocol for VNTranslationalImageRegistrationRequest {}
extern_methods!(
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
unsafe impl VNTranslationalImageRegistrationRequest {
#[cfg(feature = "VNObservation")]
#[method_id(@__retain_semantics Other results)]
pub unsafe fn results(
&self,
) -> Option<Retained<NSArray<VNImageTranslationAlignmentObservation>>>;
}
);
extern_methods!(
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
unsafe impl VNTranslationalImageRegistrationRequest {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(feature = "block2")]
#[method_id(@__retain_semantics Init initWithCompletionHandler:)]
pub unsafe fn initWithCompletionHandler(
this: Allocated<Self>,
completion_handler: VNRequestCompletionHandler,
) -> Retained<Self>;
#[cfg(all(feature = "VNRequestHandler", feature = "objc2-core-image"))]
#[method_id(@__retain_semantics Init initWithTargetedCIImage:options:)]
pub unsafe fn initWithTargetedCIImage_options(
this: Allocated<Self>,
ci_image: &CIImage,
options: &NSDictionary<VNImageOption, AnyObject>,
) -> Retained<Self>;
#[cfg(all(
feature = "VNRequestHandler",
feature = "block2",
feature = "objc2-core-image"
))]
#[method_id(@__retain_semantics Init initWithTargetedCIImage:options:completionHandler:)]
pub unsafe fn initWithTargetedCIImage_options_completionHandler(
this: Allocated<Self>,
ci_image: &CIImage,
options: &NSDictionary<VNImageOption, AnyObject>,
completion_handler: VNRequestCompletionHandler,
) -> Retained<Self>;
#[cfg(feature = "VNRequestHandler")]
#[method_id(@__retain_semantics Init initWithTargetedImageURL:options:)]
pub unsafe fn initWithTargetedImageURL_options(
this: Allocated<Self>,
image_url: &NSURL,
options: &NSDictionary<VNImageOption, AnyObject>,
) -> Retained<Self>;
#[cfg(all(feature = "VNRequestHandler", feature = "block2"))]
#[method_id(@__retain_semantics Init initWithTargetedImageURL:options:completionHandler:)]
pub unsafe fn initWithTargetedImageURL_options_completionHandler(
this: Allocated<Self>,
image_url: &NSURL,
options: &NSDictionary<VNImageOption, AnyObject>,
completion_handler: VNRequestCompletionHandler,
) -> Retained<Self>;
#[cfg(feature = "VNRequestHandler")]
#[method_id(@__retain_semantics Init initWithTargetedImageData:options:)]
pub unsafe fn initWithTargetedImageData_options(
this: Allocated<Self>,
image_data: &NSData,
options: &NSDictionary<VNImageOption, AnyObject>,
) -> Retained<Self>;
#[cfg(all(feature = "VNRequestHandler", feature = "block2"))]
#[method_id(@__retain_semantics Init initWithTargetedImageData:options:completionHandler:)]
pub unsafe fn initWithTargetedImageData_options_completionHandler(
this: Allocated<Self>,
image_data: &NSData,
options: &NSDictionary<VNImageOption, AnyObject>,
completion_handler: VNRequestCompletionHandler,
) -> Retained<Self>;
}
);
extern_methods!(
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
unsafe impl VNTranslationalImageRegistrationRequest {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
pub static VNTranslationalImageRegistrationRequestRevision1: NSUInteger = 1;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
pub struct VNHomographicImageRegistrationRequest;
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
unsafe impl ClassType for VNHomographicImageRegistrationRequest {
#[inherits(VNTargetedImageRequest, VNImageBasedRequest, VNRequest, NSObject)]
type Super = VNImageRegistrationRequest;
type Mutability = InteriorMutable;
}
);
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
unsafe impl NSCopying for VNHomographicImageRegistrationRequest {}
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
unsafe impl NSObjectProtocol for VNHomographicImageRegistrationRequest {}
extern_methods!(
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
unsafe impl VNHomographicImageRegistrationRequest {
#[cfg(feature = "VNObservation")]
#[method_id(@__retain_semantics Other results)]
pub unsafe fn results(
&self,
) -> Option<Retained<NSArray<VNImageHomographicAlignmentObservation>>>;
}
);
extern_methods!(
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
unsafe impl VNHomographicImageRegistrationRequest {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(feature = "block2")]
#[method_id(@__retain_semantics Init initWithCompletionHandler:)]
pub unsafe fn initWithCompletionHandler(
this: Allocated<Self>,
completion_handler: VNRequestCompletionHandler,
) -> Retained<Self>;
#[cfg(all(feature = "VNRequestHandler", feature = "objc2-core-image"))]
#[method_id(@__retain_semantics Init initWithTargetedCIImage:options:)]
pub unsafe fn initWithTargetedCIImage_options(
this: Allocated<Self>,
ci_image: &CIImage,
options: &NSDictionary<VNImageOption, AnyObject>,
) -> Retained<Self>;
#[cfg(all(
feature = "VNRequestHandler",
feature = "block2",
feature = "objc2-core-image"
))]
#[method_id(@__retain_semantics Init initWithTargetedCIImage:options:completionHandler:)]
pub unsafe fn initWithTargetedCIImage_options_completionHandler(
this: Allocated<Self>,
ci_image: &CIImage,
options: &NSDictionary<VNImageOption, AnyObject>,
completion_handler: VNRequestCompletionHandler,
) -> Retained<Self>;
#[cfg(feature = "VNRequestHandler")]
#[method_id(@__retain_semantics Init initWithTargetedImageURL:options:)]
pub unsafe fn initWithTargetedImageURL_options(
this: Allocated<Self>,
image_url: &NSURL,
options: &NSDictionary<VNImageOption, AnyObject>,
) -> Retained<Self>;
#[cfg(all(feature = "VNRequestHandler", feature = "block2"))]
#[method_id(@__retain_semantics Init initWithTargetedImageURL:options:completionHandler:)]
pub unsafe fn initWithTargetedImageURL_options_completionHandler(
this: Allocated<Self>,
image_url: &NSURL,
options: &NSDictionary<VNImageOption, AnyObject>,
completion_handler: VNRequestCompletionHandler,
) -> Retained<Self>;
#[cfg(feature = "VNRequestHandler")]
#[method_id(@__retain_semantics Init initWithTargetedImageData:options:)]
pub unsafe fn initWithTargetedImageData_options(
this: Allocated<Self>,
image_data: &NSData,
options: &NSDictionary<VNImageOption, AnyObject>,
) -> Retained<Self>;
#[cfg(all(feature = "VNRequestHandler", feature = "block2"))]
#[method_id(@__retain_semantics Init initWithTargetedImageData:options:completionHandler:)]
pub unsafe fn initWithTargetedImageData_options_completionHandler(
this: Allocated<Self>,
image_data: &NSData,
options: &NSDictionary<VNImageOption, AnyObject>,
completion_handler: VNRequestCompletionHandler,
) -> Retained<Self>;
}
);
extern_methods!(
#[cfg(all(feature = "VNRequest", feature = "VNTargetedImageRequest"))]
unsafe impl VNHomographicImageRegistrationRequest {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
pub static VNHomographicImageRegistrationRequestRevision1: NSUInteger = 1;