@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
@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
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) {
@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
@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
@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 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
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) {
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) {