44/* Set up for C function definitions, even when using C++ */
45#ifdef __cplusplus
46extern"C" {
47#endif
48
49/**
50 * \brief Compares a surface and with reference image data for equality
51 *
52 * \param surface Surface used in comparison
53 * \param referenceSurface Test Surface used in comparison
54 * \param allowable_error Allowable difference (=sum of squared difference for each RGB component) in blending accuracy.
55 *
56 * \returns 0 if comparison succeeded, >0 (=number of pixels for which the comparison failed) if comparison failed, -1 if any of the surfaces were NULL, -2 if the surface sizes differ.