#include "blread.h"
#include <cstdio>
#include "host.h"
#include "ocrblock.h"
#include "scanutils.h"
Go to the source code of this file.
◆ UNLV_EXT
◆ FullPageBlock()
void FullPageBlock |
( |
int |
width, |
|
|
int |
height, |
|
|
BLOCK_LIST * |
blocks |
|
) |
| |
Definition at line 65 of file blread.cpp.
66 BLOCK_IT block_it(blocks);
68 block_it.add_to_end(block);
◆ read_unlv_file()
bool read_unlv_file |
( |
STRING |
name, |
|
|
int32_t |
xsize, |
|
|
int32_t |
ysize, |
|
|
BLOCK_LIST * |
blocks |
|
) |
| |
Definition at line 34 of file blread.cpp.
46 BLOCK_IT block_it = blocks;
49 if ((pdfp = fopen (name.
string (),
"rb")) ==
nullptr) {
52 while (
tfscanf(pdfp,
"%d %d %d %d %*s", &x, &y, &width, &height) >= 4) {
55 (int16_t) x, (int16_t) (ysize - y - height),
56 (int16_t) (x + width), (int16_t) (ysize - y));
58 block_it.add_to_end (block);
int tfscanf(FILE *stream, const char *format,...)
const char * string() const