VHLIB_OPTIMAL_PLATFORM_PC
VHLIB_OPTIMAL_PLATFORM_EMBEDDED
Or:
stspan 8 bytesVHOptimalFigure 16 bytes| Parameter | Example #1 | Example #2 | Example #3 | Example #4 |
|---|---|---|---|---|
| Maximum number of figures | 128 | 128 | 128 | 128 |
| Cell size | 8 px | 4 px | 2 px | 1 px |
| Resolution | 800×600 | 800×600 | 800×600 | 800×600 |
| Cells per frame | 100×75 | 200×150 | 400×300 | 800×600 |
| Bitmask (bits) | 7500 | 30000 | 120000 | 480000 |
| Bitmask (bytes) | 938 | 3750 | 15000 | 60000 |
| ×2 bitmasks (Global + Local) | 1876 | 7500 | 30000 | 120000 |
| Memory (Worst case) | 60000 bytes | 240000 bytes | 960000 bytes | 3840000 bytes |
| Memory (Typical) | 16000 bytes | 64000 bytes | 240000 bytes | 960000 bytes |
| +128 figures × 16 | 2048 bytes | 2048 bytes | 2048 bytes | 2048 bytes |
src/vhliboptimalstructs.hpp)stConfig — Scanning parameters (image boundaries, grid cell size, color thresholding tolerance minColorVal, and spccnt which defines the maximum consecutive empty cells allowed before breaking a span).strect — Bounding box structure representation (x1, y1 to x2, y2).stspan — Horizontal/vertical segments representing the continuous boundaries of a shape.target_compile_definitions(vhlib_optimal PUBLIC
VHLIB_OPTIMAL_GRID_FIXED
VHLIB_OPTIMAL_GRID_LX=8
VHLIB_OPTIMAL_GRID_LY=8
VHLIB_OPTIMAL_OBJS_MAX=256
VHLIB_OPTIMAL_SPNS_MAX=4096
)