@MarshalsPointer public static CVImageBufferPixelAspectRatio toObject(Class<CVImageBufferPixelAspectRatio> cls, long handle, long flags) { CFDictionary o = (CFDictionary) CFType.Marshaler.toObject(CFDictionary.class, handle, flags); if (o == null) { return null; } return new CVImageBufferPixelAspectRatio(o); } @MarshalsPointer
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferAttributes setPixelAspectRatio(CVImageBufferPixelAspectRatio pixelAspectRatio) { set(CVImageBufferAttribute.PixelAspectRatio, pixelAspectRatio.getDictionary()); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferPixelAspectRatio setVerticalSpacing(long verticalSpacing) { set(Keys.VerticalSpacing(), CFNumber.valueOf(verticalSpacing)); return this; } /*</methods>*/
public <T extends NativeObject> T get(CFString key, Class<T> type) { if (has(key)) { return data.get(key, type); } return null; } public CVImageBufferPixelAspectRatio set(CFString key, NativeObject value) {
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferPixelAspectRatio setHorizontalSpacing(long horizontalSpacing) { set(Keys.HorizontalSpacing(), CFNumber.valueOf(horizontalSpacing)); return this; } /**
public <T extends NativeObject> T get(CFString key, Class<T> type) { if (has(key)) { return data.get(key, type); } return null; } public CVImageBufferPixelAspectRatio set(CFString key, NativeObject value) {
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferPixelAspectRatio getPixelAspectRatio() { if (has(CVImageBufferAttribute.PixelAspectRatio)) { CFDictionary val = get(CVImageBufferAttribute.PixelAspectRatio, CFDictionary.class); return new CVImageBufferPixelAspectRatio(val); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferPixelAspectRatio setVerticalSpacing(long verticalSpacing) { set(Keys.VerticalSpacing(), CFNumber.valueOf(verticalSpacing)); return this; } /*</methods>*/
@MarshalsPointer public static long toNative(List<CVImageBufferPixelAspectRatio> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (CVImageBufferPixelAspectRatio i : l) { array.add(i.getDictionary()); } return CFType.Marshaler.toNative(array, flags); } }
public <T extends NativeObject> T get(CFString key, Class<T> type) { if (has(key)) { return data.get(key, type); } return null; } public CVImageBufferPixelAspectRatio set(CFString key, NativeObject value) {
@MarshalsPointer public static List<CVImageBufferPixelAspectRatio> 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<CVImageBufferPixelAspectRatio> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new CVImageBufferPixelAspectRatio(o.get(i, CFDictionary.class))); } return list; } @MarshalsPointer
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferPixelAspectRatio setHorizontalSpacing(long horizontalSpacing) { set(Keys.HorizontalSpacing(), CFNumber.valueOf(horizontalSpacing)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferAttributes setPixelAspectRatio(CVImageBufferPixelAspectRatio pixelAspectRatio) { set(CVImageBufferAttribute.PixelAspectRatio, pixelAspectRatio.getDictionary()); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferPixelAspectRatio getPixelAspectRatio() { if (has(CVImageBufferAttribute.PixelAspectRatio)) { CFDictionary val = get(CVImageBufferAttribute.PixelAspectRatio, CFDictionary.class); return new CVImageBufferPixelAspectRatio(val); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferPixelAspectRatio setHorizontalSpacing(long horizontalSpacing) { set(Keys.HorizontalSpacing(), CFNumber.valueOf(horizontalSpacing)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferAttributes setPixelAspectRatio(CVImageBufferPixelAspectRatio pixelAspectRatio) { set(CVImageBufferAttribute.PixelAspectRatio, pixelAspectRatio.getDictionary()); return this; } /**