@MarshalsPointer public static CVImageBufferAttributes toObject(Class<CVImageBufferAttributes> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CVImageBufferAttributes(o); } @MarshalsPointer
/** * @since Available in iOS 4.0 and later. */ @SuppressWarnings("unchecked") public void setAttributes(CVImageBufferAttributes attributes, CVAttachmentMode attachmentMode) { setAttachments(attributes.getDictionary().as(NSDictionary.class), attachmentMode); } /**
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferAttributes setCGColorSpace(CGColorSpace cGColorSpace) { set(CVImageBufferAttribute.CGColorSpace, cGColorSpace); 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) {
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferAttributes setICCProfile(NSData iCCProfile) { set(CVImageBufferAttribute.ICCProfile, iCCProfile); 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) {
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferAttributes setFieldDetail(CVImageBufferFieldDetail fieldDetail) { set(CVImageBufferAttribute.FieldDetail, fieldDetail.value()); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferAttributes getAttributes(CVAttachmentMode attachmentMode) { return new CVImageBufferAttributes(getAttachments(attachmentMode).as(CFDictionary.class)); } /**
@MarshalsPointer public static long toNative(List<CVImageBufferAttributes> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CVImageBufferAttributes i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferAttributes setColorPrimaries(CVImageBufferColorPrimaries colorPrimaries) { set(CVImageBufferAttribute.ColorPrimaries, colorPrimaries.value()); return this; } /**
@MarshalsPointer public static List<CVImageBufferAttributes> 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<CVImageBufferAttributes> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new CVImageBufferAttributes(o.get(i, CFDictionary.class))); } return list; } @MarshalsPointer
/** * @since Available in iOS 4.0 and later. */ @SuppressWarnings("unchecked") public void setAttributes(CVImageBufferAttributes attributes, CVAttachmentMode attachmentMode) { setAttachments(attributes.getDictionary().as(NSDictionary.class), attachmentMode); } /**
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferAttributes setCleanAperture(CVImageBufferCleanAperture cleanAperture) { set(CVImageBufferAttribute.CleanAperture, cleanAperture.getDictionary()); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferAttributes getAttributes(CVAttachmentMode attachmentMode) { return new CVImageBufferAttributes(getAttachments(attachmentMode).as(CFDictionary.class)); } /**
/** * @since Available in iOS 4.0 and later. */ @SuppressWarnings("unchecked") public void setAttributes(CVImageBufferAttributes attributes, CVAttachmentMode attachmentMode) { setAttachments(attributes.getDictionary().as(NSDictionary.class), attachmentMode); } /**