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