public static /*<name>*/CVImageBufferColorPrimaries/*</name>*/ valueOf(/*<type>*/CFString/*</type>*/ value) { for (/*<name>*/CVImageBufferColorPrimaries/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/CVImageBufferColorPrimaries/*</name>*/.class.getName()); }
@MarshalsPointer public static CVImageBufferColorPrimaries toObject(Class<CVImageBufferColorPrimaries> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CVImageBufferColorPrimaries.valueOf(o); } @MarshalsPointer
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferAttributes setColorPrimaries(CVImageBufferColorPrimaries colorPrimaries) { set(CVImageBufferAttribute.ColorPrimaries, colorPrimaries.value()); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferColorPrimaries getColorPrimaries() { if (has(CVImageBufferAttribute.ColorPrimaries)) { CFString val = get(CVImageBufferAttribute.ColorPrimaries, CFString.class); return CVImageBufferColorPrimaries.valueOf(val); } return null; } /**
@MarshalsPointer public static long toNative(CVImageBufferColorPrimaries o, long flags) { if (o == null) { return 0L; } return CFType.Marshaler.toNative(o.value(), flags); } }
@MarshalsPointer public static List<CVImageBufferColorPrimaries> 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<CVImageBufferColorPrimaries> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CVImageBufferColorPrimaries.valueOf(o.get(i, CFString.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(List<CVImageBufferColorPrimaries> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CVImageBufferColorPrimaries o : l) { array.add(o.value()); } return CFType.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferColorPrimaries getColorPrimaries() { if (has(CVImageBufferAttribute.ColorPrimaries)) { CFString val = get(CVImageBufferAttribute.ColorPrimaries, CFString.class); return CVImageBufferColorPrimaries.valueOf(val); } return null; } /**
public static /*<name>*/CVImageBufferColorPrimaries/*</name>*/ valueOf(/*<type>*/CFString/*</type>*/ value) { for (/*<name>*/CVImageBufferColorPrimaries/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/CVImageBufferColorPrimaries/*</name>*/.class.getName()); }
@MarshalsPointer public static CVImageBufferColorPrimaries toObject(Class<CVImageBufferColorPrimaries> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CVImageBufferColorPrimaries.valueOf(o); } @MarshalsPointer
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferAttributes setColorPrimaries(CVImageBufferColorPrimaries colorPrimaries) { set(CVImageBufferAttribute.ColorPrimaries, colorPrimaries.value()); return this; } /**
@MarshalsPointer public static CVImageBufferColorPrimaries toObject(Class<CVImageBufferColorPrimaries> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CVImageBufferColorPrimaries.valueOf(o); } @MarshalsPointer
public static /*<name>*/CVImageBufferColorPrimaries/*</name>*/ valueOf(/*<type>*/CFString/*</type>*/ value) { for (/*<name>*/CVImageBufferColorPrimaries/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/CVImageBufferColorPrimaries/*</name>*/.class.getName()); }
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferColorPrimaries getColorPrimaries() { if (has(CVImageBufferAttribute.ColorPrimaries)) { CFString val = get(CVImageBufferAttribute.ColorPrimaries, CFString.class); return CVImageBufferColorPrimaries.valueOf(val); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferAttributes setColorPrimaries(CVImageBufferColorPrimaries colorPrimaries) { set(CVImageBufferAttribute.ColorPrimaries, colorPrimaries.value()); return this; } /**
@MarshalsPointer public static List<CVImageBufferColorPrimaries> 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<CVImageBufferColorPrimaries> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CVImageBufferColorPrimaries.valueOf(o.get(i, CFString.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(CVImageBufferColorPrimaries o, long flags) { if (o == null) { return 0L; } return CFType.Marshaler.toNative(o.value(), flags); } }
@MarshalsPointer public static List<CVImageBufferColorPrimaries> 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<CVImageBufferColorPrimaries> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CVImageBufferColorPrimaries.valueOf(o.get(i, CFString.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(CVImageBufferColorPrimaries o, long flags) { if (o == null) { return 0L; } return CFType.Marshaler.toNative(o.value(), flags); } }
@MarshalsPointer public static long toNative(List<CVImageBufferColorPrimaries> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CVImageBufferColorPrimaries o : l) { array.add(o.value()); } return CFType.Marshaler.toNative(array, flags); } }