public CVPixelBufferAttributes set(CVPixelBufferAttribute key, NativeObject value) { data.put(key.value(), value); return this; }
@MarshalsPointer public static CVPixelBufferAttribute toObject(Class<CVPixelBufferAttribute> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CVPixelBufferAttribute.valueOf(o); } @MarshalsPointer
public boolean has(CVPixelBufferAttribute key) { return data.containsKey(key.value()); } public <T extends NativeObject> T get(CVPixelBufferAttribute key, Class<T> type) {
@MarshalsPointer public static List<CVPixelBufferAttribute> 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<CVPixelBufferAttribute> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CVPixelBufferAttribute.valueOf(o.get(i, CFString.class))); } return list; } @MarshalsPointer
public static /*<name>*/CVPixelBufferAttribute/*</name>*/ valueOf(/*<type>*/CFString/*</type>*/ value) { for (/*<name>*/CVPixelBufferAttribute/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/CVPixelBufferAttribute/*</name>*/.class.getName()); }
@MarshalsPointer public static CVPixelBufferAttribute toObject(Class<CVPixelBufferAttribute> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CVPixelBufferAttribute.valueOf(o); } @MarshalsPointer
@MarshalsPointer public static long toNative(CVPixelBufferAttribute o, long flags) { if (o == null) { return 0L; } return CFType.Marshaler.toNative(o.value(), flags); } }
@MarshalsPointer public static CVPixelBufferAttribute toObject(Class<CVPixelBufferAttribute> cls, long handle, long flags) { CFString o = (CFString) CFType.Marshaler.toObject(CFString.class, handle, flags); if (o == null) { return null; } return CVPixelBufferAttribute.valueOf(o); } @MarshalsPointer
public <T extends NativeObject> T get(CVPixelBufferAttribute key, Class<T> type) { if (has(key)) { return data.get(key.value(), type); } return null; } public CVPixelBufferAttributes set(CVPixelBufferAttribute key, NativeObject value) {
@MarshalsPointer public static List<CVPixelBufferAttribute> 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<CVPixelBufferAttribute> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CVPixelBufferAttribute.valueOf(o.get(i, CFString.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(List<CVPixelBufferAttribute> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CVPixelBufferAttribute o : l) { array.add(o.value()); } return CFType.Marshaler.toNative(array, flags); } }
@MarshalsPointer public static List<CVPixelBufferAttribute> 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<CVPixelBufferAttribute> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(CVPixelBufferAttribute.valueOf(o.get(i, CFString.class))); } return list; } @MarshalsPointer
public boolean has(CVPixelBufferAttribute key) { return data.containsKey(key.value()); } public <T extends NativeObject> T get(CVPixelBufferAttribute key, Class<T> type) {
public CVPixelBufferAttributes set(CVPixelBufferAttribute key, NativeObject value) { data.put(key.value(), value); return this; }
public CVPixelBufferAttributes set(CVPixelBufferAttribute key, NativeObject value) { data.put(key.value(), value); return this; }
public static /*<name>*/CVPixelBufferAttribute/*</name>*/ valueOf(/*<type>*/CFString/*</type>*/ value) { for (/*<name>*/CVPixelBufferAttribute/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/CVPixelBufferAttribute/*</name>*/.class.getName()); }
public static /*<name>*/CVPixelBufferAttribute/*</name>*/ valueOf(/*<type>*/CFString/*</type>*/ value) { for (/*<name>*/CVPixelBufferAttribute/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/CVPixelBufferAttribute/*</name>*/.class.getName()); }
public boolean has(CVPixelBufferAttribute key) { return data.containsKey(key.value()); } public <T extends NativeObject> T get(CVPixelBufferAttribute key, Class<T> type) {
@MarshalsPointer public static long toNative(CVPixelBufferAttribute o, long flags) { if (o == null) { return 0L; } return CFType.Marshaler.toNative(o.value(), flags); } }
public <T extends NativeObject> T get(CVPixelBufferAttribute key, Class<T> type) { if (has(key)) { return data.get(key.value(), type); } return null; } public CVPixelBufferAttributes set(CVPixelBufferAttribute key, NativeObject value) {