@MarshalsPointer public static CVPixelFormatDescription toObject(Class<CVPixelFormatDescription> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CVPixelFormatDescription(o); } @MarshalsPointer
/** * @since Available in iOS 4.0 and later. */ public static CVPixelFormatDescription create(CVPixelFormatType pixelFormat) { return create(null, pixelFormat); } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelFormatDescription setBlackBlock(NSData blackBlock) { set(Keys.BlackBlock(), blackBlock); return this; } /**
@MarshalsPointer public static long toNative(List<CVPixelFormatDescription> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CVPixelFormatDescription i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 4.0 and later. */ public void register(CVPixelFormatType pixelFormat) { registerDescription(this, pixelFormat); }
/** * @since Available in iOS 4.0 and later. */ public static List<CVPixelFormatType> getAllPixelFormatTypes() { return getAllPixelFormatTypes(null); } /**
public <T extends NativeObject> T get(CFString key, Class<T> type) { if (has(key)) { return data.get(key, type); } return null; } public CVPixelFormatDescription set(CFString key, NativeObject value) {
/** * @since Available in iOS 8.0 and later. */ public CVPixelFormatDescription setContainsYCbCr(boolean containsYCbCr) { set(Keys.ContainsYCbCr(), CFBoolean.valueOf(containsYCbCr)); return this; } /**
@MarshalsPointer public static long toNative(List<CVPixelFormatDescription> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CVPixelFormatDescription i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 4.0 and later. */ public void register(CVPixelFormatType pixelFormat) { registerDescription(this, pixelFormat); }
/** * @since Available in iOS 4.0 and later. */ public static List<CVPixelFormatType> getAllPixelFormatTypes() { return getAllPixelFormatTypes(null); } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelFormatDescription setBlockWidth(int blockWidth) { set(Keys.BlockWidth(), CFNumber.valueOf(blockWidth)); return this; } /**
@MarshalsPointer public static List<CVPixelFormatDescription> 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<CVPixelFormatDescription> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new CVPixelFormatDescription(o.get(i, CFDictionary.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(List<CVPixelFormatDescription> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CVPixelFormatDescription i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
/** * @since Available in iOS 4.0 and later. */ public void register(CVPixelFormatType pixelFormat) { registerDescription(this, pixelFormat); }
/** * @since Available in iOS 4.0 and later. */ public static CVPixelFormatDescription create(CVPixelFormatType pixelFormat) { return create(null, pixelFormat); } /**
/** * @since Available in iOS 4.0 and later. */ public static List<CVPixelFormatType> getAllPixelFormatTypes() { return getAllPixelFormatTypes(null); } /**