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_t deadline_secs = deadline_msecs / 1000;
150 end_time.tv_usec += (deadline_msecs - deadline_secs * 1000) * 1000;
167 #endif // CCUTIL_OCRCLASS_H_ volatile int8_t ocr_alive
true if not last
int gettimeofday(struct timeval *tp, struct timezone *tzp)
void * cancel_this
called whenever progress increases
PROGRESS_FUNC progress_callback
returns true to cancel
bool deadline_exceeded() const
struct timeval end_time
this or other data for cancel
void set_deadline_msecs(int32_t deadline_msecs)
ETEXT_DESC()
character data
CANCEL_FUNC cancel
for errcode use
int8_t more_to_come
percent complete increasing (0-100)
int8_t err_code
ocr sets to 1, HP 0
bool(* CANCEL_FUNC)(void *cancel_this, int words)
bool(* PROGRESS_FUNC)(int progress, int left, int right, int top, int bottom)
int16_t progress
chars in this buffer(0)