
org.robovm.apple.vision.VNImageRequestHandler Maven / Gradle / Ivy
/*
* Copyright (C) 2013-2015 RoboVM AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.robovm.apple.vision;
/**/
import java.io.*;
import java.nio.*;
import java.util.*;
import org.robovm.objc.*;
import org.robovm.objc.annotation.*;
import org.robovm.objc.block.*;
import org.robovm.rt.*;
import org.robovm.rt.annotation.*;
import org.robovm.rt.bro.*;
import org.robovm.rt.bro.annotation.*;
import org.robovm.rt.bro.ptr.*;
import org.robovm.apple.foundation.*;
import org.robovm.apple.coreml.*;
import org.robovm.apple.coregraphics.*;
import org.robovm.apple.corevideo.*;
import org.robovm.apple.metal.*;
import org.robovm.apple.coreimage.*;
import org.robovm.apple.imageio.*;
/* */
/**/
/**
* @since Available in iOS 11.0 and later.
*/
/* */
/**/@Library("Vision") @NativeClass/* */
/**/public/* */ class /**/VNImageRequestHandler/* */
extends /**/NSObject/* */
/**//* */ {
/**/public static class VNImageRequestHandlerPtr extends Ptr {}/* */
/**/static { ObjCRuntime.bind(VNImageRequestHandler.class); }/* */
/**//* */
/**/
protected VNImageRequestHandler() {}
protected VNImageRequestHandler(Handle h, long handle) { super(h, handle); }
protected VNImageRequestHandler(SkipInit skipInit) { super(skipInit); }
@Method(selector = "initWithCVPixelBuffer:options:")
public VNImageRequestHandler(CVPixelBuffer pixelBuffer, NSDictionary, ?> options) { super((SkipInit) null); initObject(init(pixelBuffer, options)); }
@Method(selector = "initWithCVPixelBuffer:orientation:options:")
public VNImageRequestHandler(CVPixelBuffer pixelBuffer, CGImagePropertyOrientation orientation, NSDictionary, ?> options) { super((SkipInit) null); initObject(init(pixelBuffer, orientation, options)); }
@Method(selector = "initWithCGImage:options:")
public VNImageRequestHandler(CGImage image, NSDictionary, ?> options) { super((SkipInit) null); initObject(init(image, options)); }
@Method(selector = "initWithCGImage:orientation:options:")
public VNImageRequestHandler(CGImage image, CGImagePropertyOrientation orientation, NSDictionary, ?> options) { super((SkipInit) null); initObject(init(image, orientation, options)); }
@Method(selector = "initWithCIImage:options:")
public VNImageRequestHandler(CIImage image, NSDictionary, ?> options) { super((SkipInit) null); initObject(init(image, options)); }
@Method(selector = "initWithCIImage:orientation:options:")
public VNImageRequestHandler(CIImage image, CGImagePropertyOrientation orientation, NSDictionary, ?> options) { super((SkipInit) null); initObject(init(image, orientation, options)); }
@Method(selector = "initWithURL:options:")
public VNImageRequestHandler(NSURL imageURL, NSDictionary, ?> options) { super((SkipInit) null); initObject(init(imageURL, options)); }
@Method(selector = "initWithURL:orientation:options:")
public VNImageRequestHandler(NSURL imageURL, CGImagePropertyOrientation orientation, NSDictionary, ?> options) { super((SkipInit) null); initObject(init(imageURL, orientation, options)); }
@Method(selector = "initWithData:options:")
public VNImageRequestHandler(NSData imageData, NSDictionary, ?> options) { super((SkipInit) null); initObject(init(imageData, options)); }
@Method(selector = "initWithData:orientation:options:")
public VNImageRequestHandler(NSData imageData, CGImagePropertyOrientation orientation, NSDictionary, ?> options) { super((SkipInit) null); initObject(init(imageData, orientation, options)); }
/* */
/**/
/* */
/**//* */
/**/
@Method(selector = "initWithCVPixelBuffer:options:")
protected native @Pointer long init(CVPixelBuffer pixelBuffer, NSDictionary, ?> options);
@Method(selector = "initWithCVPixelBuffer:orientation:options:")
protected native @Pointer long init(CVPixelBuffer pixelBuffer, CGImagePropertyOrientation orientation, NSDictionary, ?> options);
@Method(selector = "initWithCGImage:options:")
protected native @Pointer long init(CGImage image, NSDictionary, ?> options);
@Method(selector = "initWithCGImage:orientation:options:")
protected native @Pointer long init(CGImage image, CGImagePropertyOrientation orientation, NSDictionary, ?> options);
@Method(selector = "initWithCIImage:options:")
protected native @Pointer long init(CIImage image, NSDictionary, ?> options);
@Method(selector = "initWithCIImage:orientation:options:")
protected native @Pointer long init(CIImage image, CGImagePropertyOrientation orientation, NSDictionary, ?> options);
@Method(selector = "initWithURL:options:")
protected native @Pointer long init(NSURL imageURL, NSDictionary, ?> options);
@Method(selector = "initWithURL:orientation:options:")
protected native @Pointer long init(NSURL imageURL, CGImagePropertyOrientation orientation, NSDictionary, ?> options);
@Method(selector = "initWithData:options:")
protected native @Pointer long init(NSData imageData, NSDictionary, ?> options);
@Method(selector = "initWithData:orientation:options:")
protected native @Pointer long init(NSData imageData, CGImagePropertyOrientation orientation, NSDictionary, ?> options);
public boolean performRequests(NSArray requests) throws NSErrorException {
NSError.NSErrorPtr ptr = new NSError.NSErrorPtr();
boolean result = performRequests(requests, ptr);
if (ptr.get() != null) { throw new NSErrorException(ptr.get()); }
return result;
}
@Method(selector = "performRequests:error:")
private native boolean performRequests(NSArray requests, NSError.NSErrorPtr error);
/* */
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy