Function

IOSurfaceGetPixelFormat

Returns an unsigned integer that contains the traditional macOS buffer format.

Declaration

OSType IOSurfaceGetPixelFormat(IOSurfaceRef buffer);

Return Value

Returns 0 if buffer is invalid.