• Home
  • Raw
  • Download

Lines Matching refs:uchar

28 #ifndef uchar
29 typedef unsigned char uchar; typedef
40 extern int writePPM( const char *filename, uchar *buf, int xsize, int ysize );
73 static void read_imagef( int x, int y, int w, int h, int nChannels, uchar *src, float *srcRgb ) in read_imagef()
90 static void write_imagef( uchar *dst, int x, int y, int w, int h, int nChannels, float *dstRgb ) in write_imagef()
98 dst[indx+i] = (uchar)dstRgb[i]; in write_imagef()
103 …, int m, int xsize, int ysize, int nChannels, const float *filter_weights, uchar *src, uchar *dst ) in basicFilterPixel()
129 static uchar *createImage( int elements, MTdata d) in createImage()
132 uchar *ptr = (uchar *)malloc( elements * sizeof( cl_uchar ) ); in createImage()
137 ptr[i] = (uchar)genrand_int32(d); in createImage()
145 static int verifyImages( uchar *ptr0, uchar *ptr1, uchar tolerance, int xsize, int ysize, int nChan… in verifyImages()
148 uchar *p0 = ptr0; in verifyImages()
149 uchar *p1 = ptr1; in verifyImages()
154 if( (uchar)abs( (int)( *p0++ - *p1++ ) ) > tolerance ){ in verifyImages()
169 uchar *inptr, uchar *outptr ) in kernelFilter()
350 static int basicFilter( int w, int h, int nChannels, uchar *inptr, uchar *outptr ) in basicFilter()
369 uchar *inptr; in test_execute()
370 uchar *outptr[2]; in test_execute()
389 outptr[0] = (uchar *)malloc( nElements * sizeof( cl_uchar ) ); in test_execute()
396 outptr[1] = (uchar *)malloc( nElements * sizeof( cl_uchar ) ); in test_execute()
410 err = verifyImages( outptr[0], outptr[1], (uchar)0x1, w, h, nChannels ); in test_execute()