Skip to content

Commit 397bcc6

Browse files
committed
opencl: Replace Tesseract data types by POSIX data types
Signed-off-by: Stefan Weil <[email protected]>
1 parent afd069c commit 397bcc6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

opencl/openclwrapper.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -2394,9 +2394,9 @@ int OpenclDevice::ThresholdRectToPixOCL(const unsigned char *imageData,
23942394
int retVal = 0;
23952395
/* create pix result buffer */
23962396
*pix = pixCreate(width, height, 1);
2397-
uinT32 *pixData = pixGetData(*pix);
2397+
uint32_t *pixData = pixGetData(*pix);
23982398
int wpl = pixGetWpl(*pix);
2399-
int pixSize = wpl * height * sizeof(uinT32); // number of pixels
2399+
int pixSize = wpl * height * sizeof(uint32_t); // number of pixels
24002400

24012401
cl_int clStatus;
24022402
KernelEnv rEnv;
@@ -2784,13 +2784,13 @@ void ThresholdRectToPix_Native(const unsigned char* imagedata,
27842784
int height = pixGetHeight(*pix);
27852785

27862786
*pix = pixCreate(width, height, 1);
2787-
uinT32* pixdata = pixGetData(*pix);
2787+
uint32_t* pixdata = pixGetData(*pix);
27882788
int wpl = pixGetWpl(*pix);
27892789
const unsigned char* srcdata = imagedata + top * bytes_per_line +
27902790
left * bytes_per_pixel;
27912791
for (int y = 0; y < height; ++y) {
2792-
const uinT8* linedata = srcdata;
2793-
uinT32* pixline = pixdata + y * wpl;
2792+
const uint8_t* linedata = srcdata;
2793+
uint32_t* pixline = pixdata + y * wpl;
27942794
for (int x = 0; x < width; ++x, linedata += bytes_per_pixel) {
27952795
bool white_result = true;
27962796
for (int ch = 0; ch < bytes_per_pixel; ++ch) {

0 commit comments

Comments
 (0)