Package org.robovm.apple.corevideo
Class CVPixelBuffer
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.apple.corefoundation.CFType
-
- org.robovm.apple.corevideo.CVBuffer
-
- org.robovm.apple.corevideo.CVImageBuffer
-
- org.robovm.apple.corevideo.CVPixelBuffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class CVPixelBuffer extends CVImageBuffer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CVPixelBuffer.CVPixelBufferPtr
static interface
CVPixelBuffer.ReleaseBytesCallback
static interface
CVPixelBuffer.ReleasePlanarBytesCallback
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler
-
-
Constructor Summary
Constructors Constructor Description CVPixelBuffer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CVPixelBuffer
create(long width, long height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes pixelBufferAttributes)
static CVPixelBuffer
create(long width, long height, CVPixelFormatType pixelFormatType, org.robovm.rt.bro.ptr.VoidPtr baseAddress, long bytesPerRow, CVPixelBuffer.ReleaseBytesCallback releaseCallback, CVPixelBufferAttributes pixelBufferAttributes)
static CVPixelBuffer
create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes pixelBufferAttributes)
protected static CVReturn
create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes pixelBufferAttributes, CVPixelBuffer.CVPixelBufferPtr pixelBufferOut)
protected static CVReturn
create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, org.robovm.rt.bro.ptr.VoidPtr dataPtr, long dataSize, long numberOfPlanes, org.robovm.rt.bro.ptr.VoidPtr.VoidPtrPtr planeBaseAddress, org.robovm.rt.bro.ptr.MachineSizedUIntPtr planeWidth, org.robovm.rt.bro.ptr.MachineSizedUIntPtr planeHeight, org.robovm.rt.bro.ptr.MachineSizedUIntPtr planeBytesPerRow, org.robovm.rt.bro.ptr.FunctionPtr releaseCallback, org.robovm.rt.bro.ptr.VoidPtr releaseRefCon, CVPixelBufferAttributes pixelBufferAttributes, CVPixelBuffer.CVPixelBufferPtr pixelBufferOut)
static CVPixelBuffer
create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, org.robovm.rt.bro.ptr.VoidPtr baseAddress, long bytesPerRow, CVPixelBuffer.ReleaseBytesCallback releaseCallback, CVPixelBufferAttributes pixelBufferAttributes)
protected static CVReturn
create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, org.robovm.rt.bro.ptr.VoidPtr baseAddress, long bytesPerRow, org.robovm.rt.bro.ptr.FunctionPtr releaseCallback, long releaseRefCon, CVPixelBufferAttributes pixelBufferAttributes, CVPixelBuffer.CVPixelBufferPtr pixelBufferOut)
protected static CVReturn
create(CFAllocator allocator, IOSurface surface, CVPixelBufferAttributes pixelBufferAttributes, CVPixelBuffer.CVPixelBufferPtr pixelBufferOut)
static CVPixelBufferAttributes
createResolvedAttributesDictionary(java.util.List<CVPixelBufferAttributes> attributes)
static CVPixelBufferAttributes
createResolvedAttributesDictionary(CFAllocator allocator, java.util.List<CVPixelBufferAttributes> attributes)
CVReturn
fillExtendedPixels()
org.robovm.rt.bro.ptr.VoidPtr
getBaseAddress()
org.robovm.rt.bro.ptr.VoidPtr
getBaseAddressOfPlane(long planeIndex)
long
getBytesPerRow()
long
getBytesPerRowOfPlane(long planeIndex)
static long
getClassTypeID()
long
getDataSize()
long[]
getExtendedPixels()
protected void
getExtendedPixels(org.robovm.rt.bro.ptr.MachineSizedUIntPtr extraColumnsOnLeft, org.robovm.rt.bro.ptr.MachineSizedUIntPtr extraColumnsOnRight, org.robovm.rt.bro.ptr.MachineSizedUIntPtr extraRowsOnTop, org.robovm.rt.bro.ptr.MachineSizedUIntPtr extraRowsOnBottom)
long
getHeight()
long
getHeightOfPlane(long planeIndex)
IOSurface
getIOSurface()
CVPixelFormatType
getPixelFormatType()
long
getPlaneCount()
long
getWidth()
long
getWidthOfPlane(long planeIndex)
boolean
isPlanar()
CVReturn
lockBaseAddress(CVPixelBufferLockFlags lockFlags)
CVReturn
unlockBaseAddress(CVPixelBufferLockFlags unlockFlags)
-
Methods inherited from class org.robovm.apple.corevideo.CVImageBuffer
createColorSpaceFromAttachments, getAttribute, getAttributeMode, getAttributes, getCleanRect, getDisplaySize, getEncodedSize, intCodePointToStringCVColorPrimaries, intCodePointToStringCVTransferFunction, intCodePointToStringCVYCbCrMatrix, isFlipped, propagateAttributes, removeAllAttributes, removeAttribute, setAttribute, setAttributes, toIntCodePointCVColorPrimaries, toIntCodePointCVTransferFunction, toIntCodePointCVYCbCrMatrix
-
Methods inherited from class org.robovm.apple.corevideo.CVBuffer
getAttachment, getAttachment, getAttachmentMode, getAttachments, propagateAttachments, removeAllAttachments, removeAttachment, setAttachment, setAttachments
-
Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
-
-
-
Method Detail
-
createResolvedAttributesDictionary
public static CVPixelBufferAttributes createResolvedAttributesDictionary(java.util.List<CVPixelBufferAttributes> attributes)
-
createResolvedAttributesDictionary
public static CVPixelBufferAttributes createResolvedAttributesDictionary(CFAllocator allocator, java.util.List<CVPixelBufferAttributes> attributes)
-
create
public static CVPixelBuffer create(long width, long height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes pixelBufferAttributes)
-
create
public static CVPixelBuffer create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes pixelBufferAttributes)
-
create
public static CVPixelBuffer create(long width, long height, CVPixelFormatType pixelFormatType, org.robovm.rt.bro.ptr.VoidPtr baseAddress, long bytesPerRow, CVPixelBuffer.ReleaseBytesCallback releaseCallback, CVPixelBufferAttributes pixelBufferAttributes)
-
create
public static CVPixelBuffer create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, org.robovm.rt.bro.ptr.VoidPtr baseAddress, long bytesPerRow, CVPixelBuffer.ReleaseBytesCallback releaseCallback, CVPixelBufferAttributes pixelBufferAttributes)
-
getExtendedPixels
public long[] getExtendedPixels()
-
getClassTypeID
public static long getClassTypeID()
- Since:
- Available in iOS 4.0 and later.
-
create
protected static CVReturn create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, CVPixelBufferAttributes pixelBufferAttributes, CVPixelBuffer.CVPixelBufferPtr pixelBufferOut)
- Since:
- Available in iOS 4.0 and later.
-
create
protected static CVReturn create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, org.robovm.rt.bro.ptr.VoidPtr baseAddress, long bytesPerRow, org.robovm.rt.bro.ptr.FunctionPtr releaseCallback, long releaseRefCon, CVPixelBufferAttributes pixelBufferAttributes, CVPixelBuffer.CVPixelBufferPtr pixelBufferOut)
- Since:
- Available in iOS 4.0 and later.
-
create
protected static CVReturn create(CFAllocator allocator, long width, long height, CVPixelFormatType pixelFormatType, org.robovm.rt.bro.ptr.VoidPtr dataPtr, long dataSize, long numberOfPlanes, org.robovm.rt.bro.ptr.VoidPtr.VoidPtrPtr planeBaseAddress, org.robovm.rt.bro.ptr.MachineSizedUIntPtr planeWidth, org.robovm.rt.bro.ptr.MachineSizedUIntPtr planeHeight, org.robovm.rt.bro.ptr.MachineSizedUIntPtr planeBytesPerRow, org.robovm.rt.bro.ptr.FunctionPtr releaseCallback, org.robovm.rt.bro.ptr.VoidPtr releaseRefCon, CVPixelBufferAttributes pixelBufferAttributes, CVPixelBuffer.CVPixelBufferPtr pixelBufferOut)
- Since:
- Available in iOS 4.0 and later.
-
lockBaseAddress
public CVReturn lockBaseAddress(CVPixelBufferLockFlags lockFlags)
- Since:
- Available in iOS 4.0 and later.
-
unlockBaseAddress
public CVReturn unlockBaseAddress(CVPixelBufferLockFlags unlockFlags)
- Since:
- Available in iOS 4.0 and later.
-
getWidth
public long getWidth()
- Since:
- Available in iOS 4.0 and later.
-
getHeight
public long getHeight()
- Since:
- Available in iOS 4.0 and later.
-
getPixelFormatType
public CVPixelFormatType getPixelFormatType()
- Since:
- Available in iOS 4.0 and later.
-
getBaseAddress
public org.robovm.rt.bro.ptr.VoidPtr getBaseAddress()
- Since:
- Available in iOS 4.0 and later.
-
getBytesPerRow
public long getBytesPerRow()
- Since:
- Available in iOS 4.0 and later.
-
getDataSize
public long getDataSize()
- Since:
- Available in iOS 4.0 and later.
-
isPlanar
public boolean isPlanar()
- Since:
- Available in iOS 4.0 and later.
-
getPlaneCount
public long getPlaneCount()
- Since:
- Available in iOS 4.0 and later.
-
getWidthOfPlane
public long getWidthOfPlane(long planeIndex)
- Since:
- Available in iOS 4.0 and later.
-
getHeightOfPlane
public long getHeightOfPlane(long planeIndex)
- Since:
- Available in iOS 4.0 and later.
-
getBaseAddressOfPlane
public org.robovm.rt.bro.ptr.VoidPtr getBaseAddressOfPlane(long planeIndex)
- Since:
- Available in iOS 4.0 and later.
-
getBytesPerRowOfPlane
public long getBytesPerRowOfPlane(long planeIndex)
- Since:
- Available in iOS 4.0 and later.
-
getExtendedPixels
protected void getExtendedPixels(org.robovm.rt.bro.ptr.MachineSizedUIntPtr extraColumnsOnLeft, org.robovm.rt.bro.ptr.MachineSizedUIntPtr extraColumnsOnRight, org.robovm.rt.bro.ptr.MachineSizedUIntPtr extraRowsOnTop, org.robovm.rt.bro.ptr.MachineSizedUIntPtr extraRowsOnBottom)
- Since:
- Available in iOS 4.0 and later.
-
fillExtendedPixels
public CVReturn fillExtendedPixels()
- Since:
- Available in iOS 4.0 and later.
-
getIOSurface
public IOSurface getIOSurface()
- Since:
- Available in iOS 4.0 and later.
-
create
protected static CVReturn create(CFAllocator allocator, IOSurface surface, CVPixelBufferAttributes pixelBufferAttributes, CVPixelBuffer.CVPixelBufferPtr pixelBufferOut)
- Since:
- Available in iOS 4.0 and later.
-
-