Lines Matching refs:margin

49 static	void	lcomp_test_short	(const char *filename, int filetype, int chan, double margin) ;
50 static void lcomp_test_int (const char *filename, int filetype, int chan, double margin) ;
51 static void lcomp_test_float (const char *filename, int filetype, int chan, double margin) ;
52 static void lcomp_test_double (const char *filename, int filetype, int chan, double margin) ;
54 static void sdlcomp_test_short (const char *filename, int filetype, int chan, double margin) ;
55 static void sdlcomp_test_int (const char *filename, int filetype, int chan, double margin) ;
56 static void sdlcomp_test_float (const char *filename, int filetype, int chan, double margin) ;
57 static void sdlcomp_test_double (const char *filename, int filetype, int chan, double margin) ;
61 static int error_function (double data, double orig, double margin) ;
649 lcomp_test_short (const char *filename, int filetype, int channels, double margin)
713 { if (error_function (data [k], orig [k], margin))
759 if (error_function (1.0 * data [k], 1.0 * orig [k + channels * m * 11], margin))
778 if (error_function (1.0 * data [0], 1.0 * orig [seekpos * channels], margin))
791 if (error_function (1.0 * data [0], 1.0 * orig [seekpos * channels], margin) || k != seekpos)
801 if (error_function (1.0 * data [0], 1.0 * orig [seekpos * channels], margin) || k != seekpos)
821 if (error_function (1.0 * data [0], 1.0 * orig [5 * channels], margin))
836 lcomp_test_int (const char *filename, int filetype, int channels, double margin)
911 { if (error_function (data [k] / scale, orig [k] / scale, margin))
958 if (error_function (data [k] / scale, orig [k + channels * m * 11] / scale, margin))
977 if (error_function (1.0 * data [0], 1.0 * orig [seekpos * channels], margin))
990 if (error_function (1.0 * data [0], 1.0 * orig [seekpos * channels], margin) || k != seekpos)
999 if (error_function (1.0 * data [0], 1.0 * orig [seekpos * channels], margin) || k != seekpos)
1019 if (error_function (data [0] / scale, orig [5 * channels] / scale, margin))
1034 lcomp_test_float (const char *filename, int filetype, int channels, double margin)
1106 { if (error_function (data [k], orig [k], margin))
1153 if (error_function (data [k], orig [k + channels * m * 11], margin))
1172 if (error_function (data [0], orig [seekpos * channels], margin))
1185 if (error_function (data [0], orig [seekpos * channels], margin) || k != seekpos)
1194 if (error_function (data [0], orig [seekpos * channels], margin) || k != seekpos)
1214 if (error_function (data [0], orig [5 * channels], margin))
1229 lcomp_test_double (const char *filename, int filetype, int channels, double margin)
1301 { if (error_function (data [k], orig [k], margin))
1348 if (error_function (data [k], orig [k + channels * m * 11], margin))
1367 if (error_function (data [0], orig [seekpos * channels], margin))
1380 if (error_function (data [0], orig [seekpos * channels], margin) || k != seekpos)
1389 if (error_function (data [0], orig [seekpos * channels], margin) || k != seekpos)
1409 if (error_function (data [0], orig [5 * channels], margin))
1425 sdlcomp_test_short (const char *filename, int filetype, int channels, double margin)
1530 { if (error_function (1.0 * data [k], 1.0 * smooth [k], margin))
1571 if (error_function (1.0 * data [k], 1.0 * smooth [k], margin))
1589 if (error_function (1.0 * data [0], 1.0 * orig [seekpos * channels], margin))
1602 if (error_function (1.0 * data [0], 1.0 * orig [seekpos * channels], margin) || k != seekpos)
1611 if (error_function (1.0 * data [0], 1.0 * orig [seekpos * channels], margin) || k != seekpos)
1632 if (error_function (1.0 * data [0], 1.0 * orig [5 * channels], margin))
1645 sdlcomp_test_int (const char *filename, int filetype, int channels, double margin)
1748 { if (error_function (data [k] / scale, smooth [k] / scale, margin))
1795 if (error_function (data [k] / scale, smooth [k] / scale, margin))
1813 if (error_function (1.0 * data [0], 1.0 * orig [seekpos * channels], margin))
1826 if (error_function (1.0 * data [0], 1.0 * orig [seekpos * channels], margin) || k != seekpos)
1835 if (error_function (1.0 * data [0], 1.0 * orig [seekpos * channels], margin) || k != seekpos)
1856 if (error_function (data [0] / scale, orig [5] / scale, margin))
1869 sdlcomp_test_float (const char *filename, int filetype, int channels, double margin)
2000 { if (error_function (data [k] * scale, smooth [k] * scale, margin))
2042 if (error_function (data [k] * scale, smooth [k] * scale, margin))
2060 if (error_function (data [0] * scale, orig [seekpos * channels] * scale, margin))
2073 if (error_function (data [0] * scale, orig [seekpos * channels] * scale, margin) || k != seekpos)
2082 if (error_function (data [0] * scale, orig [seekpos * channels] * scale, margin) || k != seekpos)
2103 if (error_function (data [0] * scale, orig [5 * channels] * scale, margin))
2116 sdlcomp_test_double (const char *filename, int filetype, int channels, double margin)
2245 { if (error_function (data [k] * scale, smooth [k] * scale, margin))
2286 if (error_function (data [k] * scale, smooth [k] * scale, margin))
2304 if (error_function (data [0] * scale, orig [seekpos * channels] * scale, margin))
2317 if (error_function (data [0] * scale, orig [seekpos * channels] * scale, margin) || k != seekpos)
2326 if (error_function (data [0] * scale, orig [seekpos * channels] * scale, margin) || k != seekpos)
2347 if (error_function (data [0] * scale, orig [5 * channels] * scale, margin))
2484 error_function (double data, double orig, double margin)
2494 if (error > margin)
2495 { printf ("\n\nerror_function (data = %f, orig = %f, margin = %f) -> %f\n", data, orig, margin, error) ;