fix prototype
add pixel format check for iosurfaces