Lines Matching refs:refptr
366 static int verifyImageFloat ( cl_double *refptr, cl_float *outptr, int w, int h ) in verifyImageFloat() argument
372 if (outptr[i] != (float)refptr[i]) in verifyImageFloat()
374 float ulps = Ulp_Error( outptr[i], refptr[i]); in verifyImageFloat()
379 (int)i, refptr[i], outptr[ i ], ulps ); in verifyImageFloat()
391 double *refptr = (double *)malloc( w * h * 4*sizeof( double ) ); in prepareReference() local
392 if ( !refptr ) in prepareReference()
398 refptr[i] = ((double)inptr[i])/255; in prepareReference()
400 return refptr; in prepareReference()
410 double *refptr = NULL; in write_image() local
601 refptr = prepareReference( (cl_uchar *)inptr, w, h ); in write_image()
602 if ( refptr ) in write_image()
604 err = verifyImageFloat( refptr, (cl_float *)dst, w, h ); in write_image()
605 free ( refptr ); in write_image()