public static /*<name>*/CVImageBufferAttribute/*</name>*/ valueOf(/*<type>*/CFString/*</type>*/ value) { for (/*<name>*/CVImageBufferAttribute/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/CVImageBufferAttribute/*</name>*/.class.getName()); }
@MarshalsPointer public static CVImageBufferAttribute toObject(Class<CVImageBufferAttribute> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CVImageBufferAttribute.valueOf(o); } @MarshalsPointer
/** * @since Available in iOS 4.0 and later. */ public void setAttribute(CVImageBufferAttribute attribute, CFType value, CVAttachmentMode attachmentMode) { setAttachment(attribute.value(), value, attachmentMode); } /**
@MarshalsPointer public static List<CVImageBufferAttribute> toObject(Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags); if (o == null) { return null; } List<CVImageBufferAttribute> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CVImageBufferAttribute.valueOf(o.get(i, CFString.class))); } return list; } @MarshalsPointer
/** * @since Available in iOS 4.0 and later. */ public void removeAttribute(CVImageBufferAttribute attribute) { removeAttachment(attribute.value()); } /**
@MarshalsPointer public static CVImageBufferAttribute toObject(Class<CVImageBufferAttribute> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CVImageBufferAttribute.valueOf(o); } @MarshalsPointer
/** * @since Available in iOS 4.0 and later. */ public CFType getAttribute(CVImageBufferAttribute attribute) { return getAttachment(attribute.value()); } /**
@MarshalsPointer public static CVImageBufferAttribute toObject(Class<CVImageBufferAttribute> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CVImageBufferAttribute.valueOf(o); } @MarshalsPointer
/** * @since Available in iOS 4.0 and later. */ public CVAttachmentMode getAttributeMode(CVImageBufferAttribute attribute) { return getAttachmentMode(attribute.value()); } /**
@MarshalsPointer public static List<CVImageBufferAttribute> toObject(Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags); if (o == null) { return null; } List<CVImageBufferAttribute> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CVImageBufferAttribute.valueOf(o.get(i, CFString.class))); } return list; } @MarshalsPointer
public boolean has(CVImageBufferAttribute key) { return data.containsKey(key.value()); } public <T extends NativeObject> T get(CVImageBufferAttribute key, Class<T> type) {
@MarshalsPointer public static List<CVImageBufferAttribute> toObject(Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags); if (o == null) { return null; } List<CVImageBufferAttribute> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CVImageBufferAttribute.valueOf(o.get(i, CFString.class))); } return list; } @MarshalsPointer
public CVImageBufferAttributes set(CVImageBufferAttribute key, NativeObject value) { data.put(key.value(), value); return this; }
public <T extends NativeObject> T get(CVImageBufferAttribute key, Class<T> type) { if (has(key)) { return data.get(key.value(), type); } return null; } public CVImageBufferAttributes set(CVImageBufferAttribute key, NativeObject value) {
@MarshalsPointer public static long toNative(CVImageBufferAttribute o, long flags) { if (o == null) { return 0L; } return CFType.Marshaler.toNative(o.value(), flags); } }
@MarshalsPointer public static long toNative(List<CVImageBufferAttribute> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CVImageBufferAttribute o : l) { array.add(o.value()); } return CFType.Marshaler.toNative(array, flags); } }
public static /*<name>*/CVImageBufferAttribute/*</name>*/ valueOf(/*<type>*/CFString/*</type>*/ value) { for (/*<name>*/CVImageBufferAttribute/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/CVImageBufferAttribute/*</name>*/.class.getName()); }
/** * @since Available in iOS 4.0 and later. */ public void setAttribute(CVImageBufferAttribute attribute, CFType value, CVAttachmentMode attachmentMode) { setAttachment(attribute.value(), value, attachmentMode); } /**
/** * @since Available in iOS 4.0 and later. */ public void removeAttribute(CVImageBufferAttribute attribute) { removeAttachment(attribute.value()); } /**
/** * @since Available in iOS 4.0 and later. */ public void setAttribute(CVImageBufferAttribute attribute, CFType value, CVAttachmentMode attachmentMode) { setAttachment(attribute.value(), value, attachmentMode); } /**