vhliboptimal

VHLIBOPTIMAL Configuration

Target Configuration

VHLIB_OPTIMAL_PLATFORM_PC

VHLIB_OPTIMAL_PLATFORM_EMBEDDED

Before the startup procedure, image source parameters and settings are specified

Additionally:

Or:

Structure sizes


Configuration Examples

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



Key Data Structures (src/vhliboptimalstructs.hpp)



Compiler Tags

FIXED GRID CONFIGURATION

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
)