MonobjcMonobjc Documented Class Library
CreateWithPlanarBytes Method (allocator, width, height, pixelFormatType, dataPtr, dataSize, numberOfPlanes, planeBaseAddress, planeWidth, planeHeight, planeBytesPerRow, releaseCallback, releaseRefCon, pixelBufferAttributes, pixelBufferOut)
NamespacesMonobjc.QuartzCoreCVPixelBufferCreateWithPlanarBytes(IntPtr, NSUInteger, NSUInteger, UInt32, IntPtr, NSUInteger, NSUInteger, IntPtr, IntPtr, IntPtr, IntPtr, IntPtr, IntPtr, NSDictionary, IntPtr)

Creates a single pixel buffer in planar format for a given size and pixel format containing data specified by a memory location.

Original signature is 'CVReturn CVPixelBufferCreateWithPlanarBytes ( CFAllocatorRef allocator, size_t width, size_t height, OSType pixelFormatType, void *dataPtr, size_t dataSize, size_t numberOfPlanes, void *planeBaseAddress[], size_t planeWidth[], size_t planeHeight[], size_t planeBytesPerRow[], CVPixelBufferReleasePlanarBytesCallback releaseCallback, void *releaseRefCon, CFDictionaryRef pixelBufferAttributes, CVPixelBufferRef *pixelBufferOut );'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static int CreateWithPlanarBytes(
	IntPtr allocator,
	NSUInteger width,
	NSUInteger height,
	uint pixelFormatType,
	IntPtr dataPtr,
	NSUInteger dataSize,
	NSUInteger numberOfPlanes,
	IntPtr planeBaseAddress,
	IntPtr planeWidth,
	IntPtr planeHeight,
	IntPtr planeBytesPerRow,
	IntPtr releaseCallback,
	IntPtr releaseRefCon,
	NSDictionary pixelBufferAttributes,
	IntPtr pixelBufferOut
)
Public Shared Function CreateWithPlanarBytes ( _
	allocator As IntPtr, _
	width As NSUInteger, _
	height As NSUInteger, _
	pixelFormatType As UInteger, _
	dataPtr As IntPtr, _
	dataSize As NSUInteger, _
	numberOfPlanes As NSUInteger, _
	planeBaseAddress As IntPtr, _
	planeWidth As IntPtr, _
	planeHeight As IntPtr, _
	planeBytesPerRow As IntPtr, _
	releaseCallback As IntPtr, _
	releaseRefCon As IntPtr, _
	pixelBufferAttributes As NSDictionary, _
	pixelBufferOut As IntPtr _
) As Integer
public:
static int CreateWithPlanarBytes(
	IntPtr allocator, 
	NSUInteger width, 
	NSUInteger height, 
	unsigned int pixelFormatType, 
	IntPtr dataPtr, 
	NSUInteger dataSize, 
	NSUInteger numberOfPlanes, 
	IntPtr planeBaseAddress, 
	IntPtr planeWidth, 
	IntPtr planeHeight, 
	IntPtr planeBytesPerRow, 
	IntPtr releaseCallback, 
	IntPtr releaseRefCon, 
	NSDictionary^ pixelBufferAttributes, 
	IntPtr pixelBufferOut
)
Parameters
allocator (IntPtr)
MISSING
width (NSUInteger)
MISSING
height (NSUInteger)
MISSING
pixelFormatType (UInt32)
MISSING
dataPtr (IntPtr)
MISSING
dataSize (NSUInteger)
MISSING
numberOfPlanes (NSUInteger)
MISSING
planeBaseAddress (IntPtr)
MISSING
planeWidth (IntPtr)
MISSING
planeHeight (IntPtr)
MISSING
planeBytesPerRow (IntPtr)
MISSING
releaseCallback (IntPtr)
MISSING
releaseRefCon (IntPtr)
MISSING
pixelBufferAttributes (NSDictionary)
MISSING
pixelBufferOut (IntPtr)
MISSING
Return Value
A Core Video result code. See Core Video Constants Reference for possible values.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)