/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setPixelFormatType(CVPixelFormatType type) { set(CVPixelBufferAttribute.PixelFormatType, CFNumber.valueOf(type.value())); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setPixelFormatTypes(List<CVPixelFormatType> types) { CFArray array = CFMutableArray.create(); for (CVPixelFormatType i : types) { array.add(CFNumber.valueOf(i.value())); } set(CVPixelBufferAttribute.PixelFormatType, array); return this; }
@MarshalsPointer public static long toNative(List<CVPixelFormatType> l, long flags) { if (l == null) { return 0L; } NSMutableArray<NSNumber> array = new NSMutableArray<>(); for (CVPixelFormatType i : l) { array.add(NSNumber.valueOf(i.value())); } return NSObject.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setPixelFormatType(CVPixelFormatType type) { set(CVPixelBufferAttribute.PixelFormatType, CFNumber.valueOf(type.value())); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setPixelFormatType(CVPixelFormatType type) { set(CVPixelBufferAttribute.PixelFormatType, CFNumber.valueOf(type.value())); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setPixelFormatTypes(List<CVPixelFormatType> types) { CFArray array = CFMutableArray.create(); for (CVPixelFormatType i : types) { array.add(CFNumber.valueOf(i.value())); } set(CVPixelBufferAttribute.PixelFormatType, array); return this; }
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setPixelFormatTypes(List<CVPixelFormatType> types) { CFArray array = CFMutableArray.create(); for (CVPixelFormatType i : types) { array.add(CFNumber.valueOf(i.value())); } set(CVPixelBufferAttribute.PixelFormatType, array); return this; }
@MarshalsPointer public static long toNative(List<CVPixelFormatType> l, long flags) { if (l == null) { return 0L; } NSMutableArray<NSNumber> array = new NSMutableArray<>(); for (CVPixelFormatType i : l) { array.add(NSNumber.valueOf(i.value())); } return NSObject.Marshaler.toNative(array, flags); } }
@MarshalsPointer public static long toNative(List<CVPixelFormatType> l, long flags) { if (l == null) { return 0L; } NSMutableArray<NSNumber> array = new NSMutableArray<>(); for (CVPixelFormatType i : l) { array.add(NSNumber.valueOf(i.value())); } return NSObject.Marshaler.toNative(array, flags); } }