Contents

IOSurfaceGetBytesPerElementOfPlane(_:_:)

Returns the size of each element (in bytes) in the specified plane.

Declaration

func IOSurfaceGetBytesPerElementOfPlane(_ buffer: IOSurfaceRef, _ planeIndex: Int) -> Int

Discussion

If the planeIndex is greater than or equal to the plane count of the IOSurface, zero is returned…. with one exception. If this IOSurface has zero planes and a planeIndex of zero is passed in, the routines function just like the non-planar APIs. This is to allow higher level code to treat planar and non-planar buffers is a more uniform fashion.

See Also

Functions