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 CFType getAttribute(CVImageBufferAttribute attribute) { return getAttachment(attribute.value()); } /**
/** * @since Available in iOS 4.0 and later. */ public CVAttachmentMode getAttributeMode(CVImageBufferAttribute attribute) { return getAttachmentMode(attribute.value()); } /**
/** * @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()); } /**
public boolean has(CVImageBufferAttribute key) { return data.containsKey(key.value()); } public <T extends NativeObject> T get(CVImageBufferAttribute key, Class<T> type) {
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 CVAttachmentMode getAttributeMode(CVImageBufferAttribute attribute) { return getAttachmentMode(attribute.value()); } /**
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); } /**
public boolean has(CVImageBufferAttribute key) { return data.containsKey(key.value()); } public <T extends NativeObject> T get(CVImageBufferAttribute key, Class<T> type) {
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) {
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(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); } }