static extern CVReturn CVPixelBufferCreateWithPlanarBytes ( /* CFAllocatorRef CV_NULLABLE */ IntPtr allocator, /* size_t */ nint width, /* size_t */ nint height, /* OSType */ CVPixelFormatType pixelFormatType, /* void * CV_NULLABLE */ IntPtr dataPtr, /* pass a pointer to a plane descriptor block, or NULL /* /* size_t */ nint dataSize, /* pass size if planes are contiguous, NULL if not */ /* size_t */ nint numberOfPlanes, /* void *[] CV_NULLABLE */ IntPtr[] planeBaseAddress, /* size_t[] */ nint [] planeWidth, /* size_t[] */ nint [] planeHeight, /* size_t[] */ nint [] planeBytesPerRow, CVPixelBufferReleasePlanarBytesCallback /* CV_NULLABLE */ releaseCallback, /* void * CV_NULLABLE */ IntPtr releaseRefCon, /* CFDictionaryRef CV_NULLABLE */ IntPtr pixelBufferAttributes, /* CV_RETURNS_RETAINED_PARAMETER CVPixelBufferRef CV_NULLABLE * CV_NONNULL */ out IntPtr pixelBufferOut); // __OSX_AVAILABLE_STARTING(__MAC_10_4,__IPHONE_4_0);