27 #ifndef CCUTIL_OCRCLASS_H_ 28 #define CCUTIL_OCRCLASS_H_ 41 #define MAX_FONT_NAME 34 42 #define MAX_OCR_NAME 32 43 #define MAX_OCR_VERSION 17 139 progress_callback(NULL),
148 inT32 deadline_secs = deadline_msecs / 1000;
150 end_time.tv_usec += (deadline_msecs - deadline_secs * 1000) * 1000;
167 #endif // CCUTIL_OCRCLASS_H_ void set_deadline_msecs(inT32 deadline_msecs)
bool deadline_exceeded() const
volatile inT8 ocr_alive
true if not last
void * cancel_this
called whenever progress increases
inT8 err_code
ocr sets to 1, HP 0
PROGRESS_FUNC progress_callback
returns true to cancel
inT8 more_to_come
percent complete increasing (0-100)
ETEXT_DESC()
character data
CANCEL_FUNC cancel
for errcode use
struct timeval end_time
this or other data for cancel
int gettimeofday(struct timeval *tp, struct timezone *tzp)
bool(* PROGRESS_FUNC)(int progress, int left, int right, int top, int bottom)
inT16 progress
chars in this buffer(0)
bool(* CANCEL_FUNC)(void *cancel_this, int words)