/** * @since Available in iOS 4.0 and later. */ public CVImageBufferTransferFunction getTransferFunction() { if (has(CVImageBufferAttribute.TransferFunction)) { CFString val = get(CVImageBufferAttribute.TransferFunction, CFString.class); return CVImageBufferTransferFunction.valueOf(val); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public CVBufferAttributes setMovieTime(CVBufferMovieTime movieTime) { set(CVBufferAttribute.MovieTime, movieTime.getDictionary()); return this; } /*</methods>*/
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferAttributes setCleanAperture(CVImageBufferCleanAperture cleanAperture) { set(CVImageBufferAttribute.CleanAperture, cleanAperture.getDictionary()); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferChromaLocation getChromaLocationTopField() { if (has(CVImageBufferAttribute.ChromaLocationTopField)) { CFString val = get(CVImageBufferAttribute.ChromaLocationTopField, CFString.class); return CVImageBufferChromaLocation.valueOf(val); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public NSData getBlackBlock() { if (has(Keys.BlackBlock())) { NSData val = get(Keys.BlackBlock(), NSData.class); return val; } return null; } /**
public static CVPixelBufferPool create(CVPixelBufferPoolAttributes poolAttributes, CVPixelBufferAttributes pixelBufferAttributes) { CVPixelBufferPoolPtr ptr = new CVPixelBufferPoolPtr(); create(null, poolAttributes, pixelBufferAttributes, ptr); return ptr.get(); } public static CVPixelBufferPool create(CFAllocator allocator, CVPixelBufferPoolAttributes poolAttributes, CVPixelBufferAttributes pixelBufferAttributes) {
public CVPixelBuffer createPixelBuffer(CVPixelBufferPoolAuxiliaryAttributes auxAttributes) { CVPixelBuffer.CVPixelBufferPtr ptr = new CVPixelBuffer.CVPixelBufferPtr(); createPixelBuffer(null, this, auxAttributes, ptr); return ptr.get(); } public CVPixelBuffer createPixelBuffer(CFAllocator allocator, CVPixelBufferPoolAuxiliaryAttributes auxAttributes) {
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferCleanAperture getPreferredCleanAperture() { if (has(CVImageBufferAttribute.PreferredCleanAperture)) { CFDictionary val = get(CVImageBufferAttribute.PreferredCleanAperture, CFDictionary.class); return new CVImageBufferCleanAperture(val); } return null; } /**
/** * @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 void removeAttribute(CVImageBufferAttribute attribute) { removeAttachment(attribute.value()); } /**
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferAttributes setDisplayDimensions(CVImageBufferDisplayDimensions displayDimensions) { set(CVImageBufferAttribute.DisplayDimensions, displayDimensions.getDictionary()); return this; } /**
/** * @since Available in iOS 4.0 and later. */ public void setAttribute(CVImageBufferAttribute attribute, CFType value, CVAttachmentMode attachmentMode) { setAttachment(attribute.value(), value, attachmentMode); } /**
/** * @since Available in iOS 4.0 and later. */ public CVImageBufferChromaLocation getChromaLocationBottomField() { if (has(CVImageBufferAttribute.ChromaLocationBottomField)) { CFString val = get(CVImageBufferAttribute.ChromaLocationBottomField, CFString.class); return CVImageBufferChromaLocation.valueOf(val); } return null; } /**