Returns the base address of the pixel buffer.
- iOS 4.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Video
The pixel buffer whose base address you want to obtain.
The base address of the pixel buffer.
The pointer returned by this function depends on the type of buffer and the conditions under which it was created.
For chunky buffers, returns a pointer to the pixel at (0,0) in the buffer.
For planar buffers, returns a pointer to a
NULLif no such structure is present.
Because this function returns
NULL for some planar buffers, you should call
CVPixel to get information about a planar buffer.
Retrieving the base address for a pixel buffer requires that the buffer base address be locked using the