27#ifndef CCUTIL_OCRCLASS_H_
28#define CCUTIL_OCRCLASS_H_
123 end_time = std::chrono::time_point<std::chrono::steady_clock,
124 std::chrono::milliseconds>();
129 if (deadline_msecs > 0) {
130 end_time = std::chrono::steady_clock::now() +
131 std::chrono::milliseconds(deadline_msecs);
138 std::chrono::steady_clock::duration::zero()) {
141 auto now = std::chrono::steady_clock::now();
146 static bool default_progress_func(
ETEXT_DESC *ths,
int left,
int right,
147 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