/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setMemoryAllocator(CFAllocator memoryAllocator) { set(CVPixelBufferAttribute.MemoryAllocator, memoryAllocator); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setIOSurfaceProperties(NSDictionary iOSurfaceProperties) { set(CVPixelBufferAttribute.IOSurfaceProperties, iOSurfaceProperties); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setExtendedPixelsBottom(long extendedPixelsBottom) { set(CVPixelBufferAttribute.ExtendedPixelsBottom, CFNumber.valueOf(extendedPixelsBottom)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setCompatibleWithCGBitmapContext(boolean compatibleWithCGBitmapContext) { set(CVPixelBufferAttribute.CGBitmapContextCompatibility, CFBoolean.valueOf(compatibleWithCGBitmapContext)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setExtendedPixelsLeft(long extendedPixelsLeft) { set(CVPixelBufferAttribute.ExtendedPixelsLeft, CFNumber.valueOf(extendedPixelsLeft)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setExtendedPixelsRight(long extendedPixelsRight) { set(CVPixelBufferAttribute.ExtendedPixelsRight, CFNumber.valueOf(extendedPixelsRight)); return this; } /**
/** * @since Available in iOS 8.0 and later. */ public CVPixelBufferAttributes setCompatibleWithMetal(boolean compatibleWithMetal) { set(CVPixelBufferAttribute.MetalCompatibility, CFBoolean.valueOf(compatibleWithMetal)); return this; } /*</methods>*/
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setHeight(long height) { set(CVPixelBufferAttribute.Height, CFNumber.valueOf(height)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setCompatibleWithCGImage(boolean compatibleWithCGImage) { set(CVPixelBufferAttribute.CGImageCompatibility, CFBoolean.valueOf(compatibleWithCGImage)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setPlaneAlignment(long planeAlignment) { set(CVPixelBufferAttribute.PlaneAlignment, CFNumber.valueOf(planeAlignment)); return this; } /**
/** * @since Available in iOS 6.0 and later. */ public CVPixelBufferAttributes setCompatibleWithOpenGLES(boolean compatibleWithOpenGLES) { set(CVPixelBufferAttribute.OpenGLESCompatibility, CFBoolean.valueOf(compatibleWithOpenGLES)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setBytesPerRowAlignment(long bytesPerRowAlignment) { set(CVPixelBufferAttribute.BytesPerRowAlignment, CFNumber.valueOf(bytesPerRowAlignment)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setCompatibleWithOpenGL(boolean compatibleWithOpenGL) { set(CVPixelBufferAttribute.OpenGLCompatibility, CFBoolean.valueOf(compatibleWithOpenGL)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setWidth(long width) { set(CVPixelBufferAttribute.Width, CFNumber.valueOf(width)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setExtendedPixelsTop(long extendedPixelsTop) { set(CVPixelBufferAttribute.ExtendedPixelsTop, CFNumber.valueOf(extendedPixelsTop)); 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 setWidth(long width) { set(CVPixelBufferAttribute.Width, CFNumber.valueOf(width)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setHeight(long height) { set(CVPixelBufferAttribute.Height, CFNumber.valueOf(height)); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVPixelBufferAttributes setExtendedPixelsRight(long extendedPixelsRight) { set(CVPixelBufferAttribute.ExtendedPixelsRight, CFNumber.valueOf(extendedPixelsRight)); return this; } /**