#include "globaloc.h"
#include <csignal>
#include "allheaders.h"
#include "errcode.h"
#include "tprintf.h"
Go to the source code of this file.
◆ err_exit()
◆ SavePixForCrash()
void SavePixForCrash |
( |
int |
resolution, |
|
|
Pix * |
pix |
|
) |
| |
Definition at line 35 of file globaloc.cpp.
42 pixDestroy(&global_crash_pixes[thread_id]);
44 Pix* clone = pixClone(pix);
45 pixSetXRes(clone, resolution);
46 pixSetYRes(clone, resolution);
47 global_crash_pixes[thread_id] = clone;
const int kMaxNumThreadPixes
◆ set_global_loc_code()
void set_global_loc_code |
( |
int |
loc_code | ) |
|
◆ set_global_subloc_code()
void set_global_subloc_code |
( |
int |
loc_code | ) |
|
◆ set_global_subsubloc_code()
void set_global_subsubloc_code |
( |
int |
loc_code | ) |
|
◆ signal_exit()
void signal_exit |
( |
int |
signal_code | ) |
|
Definition at line 53 of file globaloc.cpp.
54 tprintf(
"Received signal %d!\n", signal_code);
61 if (global_crash_pixes[thread_id] !=
nullptr) {
62 fprintf(stderr,
"Crash caused by image with resolution %d\n",
63 pixGetYRes(global_crash_pixes[thread_id]));
64 fprintf(stderr,
"<Cut here>\n");
65 pixWriteStreamPng(stderr, global_crash_pixes[thread_id], 0.0);
66 fprintf(stderr,
"\n<End cut>\n");
const int kMaxNumThreadPixes
DLLSYM void tprintf(const char *format,...)
◆ kMaxNumThreadPixes
const int kMaxNumThreadPixes = 32768 |