@MarshalsPointer public static CVPixelBufferAttributes toObject(Class<CVPixelBufferAttributes> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CVPixelBufferAttributes(o); } @MarshalsPointer
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setMemoryAllocator(CFAllocator memoryAllocator) { set(CVPixelBufferAttribute.MemoryAllocator, memoryAllocator); return this; } /**
@MarshalsPointer public static long toNative(List<CVPixelBufferAttributes> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CVPixelBufferAttributes i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, 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) {
@MarshalsPointer public static long toNative(List<CVPixelBufferAttributes> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CVPixelBufferAttributes i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, 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) {
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setIOSurfaceProperties(NSDictionary iOSurfaceProperties) { set(CVPixelBufferAttribute.IOSurfaceProperties, iOSurfaceProperties); return this; } /**
@MarshalsPointer public static List<CVPixelBufferAttributes> 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<CVPixelBufferAttributes> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new CVPixelBufferAttributes(o.get(i, CFDictionary.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(List<CVPixelBufferAttributes> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CVPixelBufferAttributes i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setExtendedPixelsLeft(long extendedPixelsLeft) { set(CVPixelBufferAttribute.ExtendedPixelsLeft, CFNumber.valueOf(extendedPixelsLeft)); return this; } /**
public static CVPixelBufferAttributes createResolvedAttributesDictionary(CFAllocator allocator, List<CVPixelBufferAttributes> attributes) { CFDictionary.CFDictionaryPtr ptr = new CFDictionary.CFDictionaryPtr(); createResolvedAttributesDictionary(allocator, attributes, ptr); return new CVPixelBufferAttributes(ptr.get()); } public static CVPixelBuffer create(long width, long height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes pixelBufferAttributes) {
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setExtendedPixelsRight(long extendedPixelsRight) { set(CVPixelBufferAttribute.ExtendedPixelsRight, CFNumber.valueOf(extendedPixelsRight)); return this; } /**
@MarshalsPointer public static CVPixelBufferAttributes toObject(Class<CVPixelBufferAttributes> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CVPixelBufferAttributes(o); } @MarshalsPointer
/** * @since Available in iOS 8.0 and later. */ public CVPixelBufferAttributes setCompatibleWithMetal(boolean compatibleWithMetal) { set(CVPixelBufferAttribute.MetalCompatibility, CFBoolean.valueOf(compatibleWithMetal)); return this; } /*</methods>*/
@MarshalsPointer public static CVPixelBufferAttributes toObject(Class<CVPixelBufferAttributes> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CVPixelBufferAttributes(o); } @MarshalsPointer