26 #ifndef CCUTIL_OCRCLASS_H_
27 #define CCUTIL_OCRCLASS_H_
122 end_time = std::chrono::time_point<std::chrono::steady_clock,
123 std::chrono::milliseconds>();
128 if (deadline_msecs > 0) {
129 end_time = std::chrono::steady_clock::now() +
130 std::chrono::milliseconds(deadline_msecs);
137 std::chrono::steady_clock::duration::zero()) {
140 auto now = std::chrono::steady_clock::now();
145 static bool default_progress_func(
ETEXT_DESC *ths,
int left,
int right,
146 int top,
int bottom) {
bool(*)(void *, int) CANCEL_FUNC
bool(*)(int, int, int, int, int) PROGRESS_FUNC
bool(*)(ETEXT_DESC *, int, int, int, int) PROGRESS_FUNC2
volatile int8_t ocr_alive
true if not last
bool deadline_exceeded() const
void * cancel_this
monitor-aware progress callback
PROGRESS_FUNC progress_callback
returns true to cancel
PROGRESS_FUNC2 progress_callback2
called whenever progress increases
int16_t progress
chars in this buffer(0)
void set_deadline_msecs(int32_t deadline_msecs)
std::chrono::steady_clock::time_point end_time
this or other data for cancel
int8_t more_to_come
percent complete increasing (0-100)
ETEXT_DESC()
character data
CANCEL_FUNC cancel
for errcode use
int8_t err_code
ocr sets to 1, HP 0