[][src]Type Definition ofx_sys::OfxInverseDistortionFunctionV1

type OfxInverseDistortionFunctionV1 = Option<unsafe extern "C" fn(customData: *const c_void, distortedX: f64, distortedY: f64, wantsJacobian: bool, undistortedX: *mut f64, undistortedY: *mut f64, gotJabobian: *mut bool, jacobian: *mut f64)>;

@brief Prototype of the distortion passed to the kOfxPropInverseDistortionFunction property. It takes in input the distorted position and should output the undistorted position, both in canonical coordinates. Optionnally the Jacobian may be output. @param customData These are custom datas that were returned by the plug-in in the kOfxImageEffectActionGetInverseDistortion action in kOfxPropInverseDistortionFunctionData @param wantsJacobian True if the caller would like the function to return a Jacobian, if possible. Note that the function may not return a Jacobian even if it was asked for, in which case the caller will have to compute it using for example finite differences. @param gotJaboian True if the jacobian was computed and set in output. If wantsJacobian is set to false, this parameter may be NULL. @param jacobian The 4 partial derivatives of the function: [dFx/dx, dFx/dy, dFy/dx, dFy/dy]. If wantsJacobian is set to false, this parameter may be NULL.