next up previous contents index
Next: Blocks are more than Up: blockFinder Previous: Block types   Contents   Index

Finding blocks

Once you find a block, you have to notify GOCR:

int gocr_blockAdd ( gocrBlock *b );
You are responsible for filling the x0, x1, y0, y1 and t fields of the block structure, and only those (well, if you fill anything else nothing will happen, you'll just be wasting processor time). You can pass the address of a derived block type to it. The function returns 0 if OK, -1 if error (if the block type isn't registered, it's considered an error). If two blocks overlap, and the BLOCK_OVERLAP flag is set to 0, the function returns -2.3.5



root 2002-02-17