tesseract
3.03
|
#include "host.h"
Go to the source code of this file.
Classes | |
class | ERRCODE |
Defines | |
#define | NO_ABORT_CODE 0 |
#define | LIST_ABORT 1 |
#define | MEMORY_ABORT 2 |
#define | FILE_ABORT 3 |
#define | LOC_UNUSED0 0 |
#define | LOC_UNUSED1 1 |
#define | LOC_UNUSED2 2 |
#define | LOC_INIT 3 |
#define | LOC_EDGE_PROG 4 |
#define | LOC_TEXT_ORD_ROWS 5 |
#define | LOC_TEXT_ORD_WORDS 6 |
#define | LOC_PASS1 7 |
#define | LOC_PASS2 8 |
#define | LOC_FUZZY_SPACE 14 |
#define | LOC_MM_ADAPT 21 |
#define | LOC_DOC_BLK_REJ 22 |
#define | LOC_WRITE_RESULTS 23 |
#define | LOC_ADAPTIVE 24 |
#define | SUBLOC_NORM 0 |
#define | SUBLOC_FIX_XHT 3 |
#define | SUBSUBLOC_OTHER 0 |
#define | SUBSUBLOC_TESS 1 |
#define | SUBSUBLOC_NN 2 |
#define | ASSERT_HOST(x) |
#define | ASSERT_HOST_MSG(x, msg...) |
Enumerations | |
enum | TessErrorLogCode { DBG = -1, TESSLOG = 0, TESSEXIT = 1, ABORT = 2 } |
Functions | |
void | signal_exit (int signal_code) |
void | set_global_loc_code (int loc_code) |
void | set_global_subloc_code (int loc_code) |
void | set_global_subsubloc_code (int loc_code) |
Variables | |
const ERRCODE | ASSERT_FAILED = "Assert failed" |
#define ASSERT_HOST | ( | x | ) |
#define ASSERT_HOST_MSG | ( | x, | |
msg... | |||
) |
#define FILE_ABORT 3 |
#define LIST_ABORT 1 |
#define LOC_ADAPTIVE 24 |
#define LOC_DOC_BLK_REJ 22 |
#define LOC_EDGE_PROG 4 |
#define LOC_FUZZY_SPACE 14 |
#define LOC_MM_ADAPT 21 |
#define LOC_TEXT_ORD_ROWS 5 |
#define LOC_TEXT_ORD_WORDS 6 |
#define LOC_UNUSED0 0 |
#define LOC_UNUSED1 1 |
#define LOC_UNUSED2 2 |
#define LOC_WRITE_RESULTS 23 |
#define MEMORY_ABORT 2 |
#define NO_ABORT_CODE 0 |
#define SUBLOC_FIX_XHT 3 |
#define SUBLOC_NORM 0 |
#define SUBSUBLOC_NN 2 |
#define SUBSUBLOC_OTHER 0 |
#define SUBSUBLOC_TESS 1 |
enum TessErrorLogCode |
void set_global_loc_code | ( | int | loc_code | ) |
Definition at line 79 of file globaloc.cpp.
{
// global_loc_code = loc_code;
}
void set_global_subloc_code | ( | int | loc_code | ) |
Definition at line 85 of file globaloc.cpp.
{
// global_subloc_code = loc_code;
}
void set_global_subsubloc_code | ( | int | loc_code | ) |
Definition at line 91 of file globaloc.cpp.
{
// global_subsubloc_code = loc_code;
}
void signal_exit | ( | int | signal_code | ) |
Definition at line 52 of file globaloc.cpp.
{ tprintf("Received signal %d!\n", signal_code); #ifdef __linux__ #ifndef ANDROID int thread_id = syscall(SYS_gettid) % kMaxNumThreadPixes; #else int thread_id = gettid() % kMaxNumThreadPixes; #endif if (global_crash_pixes[thread_id] != NULL) { fprintf(stderr, "Crash caused by image with resolution %d\n", pixGetYRes(global_crash_pixes[thread_id])); fprintf(stderr, "<Cut here>\n"); pixWriteStreamPng(stderr, global_crash_pixes[thread_id], 0.0); fprintf(stderr, "\n<End cut>\n"); } // Raise an uncaught signal, so as to get a useful stack trace. raise(SIGILL); #else abort(); #endif }
const ERRCODE ASSERT_FAILED = "Assert failed" |