Function

IOSurfaceGetPropertyAlignment

Returns the alignment requirements for a property (if any).

Declaration

size_t IOSurfaceGetPropertyAlignment(CFStringRef property);

Discussion

If the property has no alignment requirement then this function returns 1. The following properties should always be aligned if you choose to calculate them yourself:

  • kIOSurfaceBytesPerRow

  • kIOSurfaceOffset

  • kIOSurfacePlaneBase

  • kIOSurfacePlaneOffset

  • kIOSurfacePlaneBytesPerRow