code wiki / (root) / nx_color_meter.nx

nx_color_meter.nx

buildroot/runtime/nx_color_meter.nx

3337 B74 linesdepth 0pulls 0 transitivereach 1 importersview sourcekind librarytopic color
docsdependenciesstructsconstsfunctions

dependencies 0 imports · 1 importers

nx_color_meter.nx nx_color_meter_test.nx

imports: none

imported by: nx_color_meter_test.nx

structs

none

consts

1const NX_MAGIC_1000000: i64 = 1000000
2const NX_MAGIC_50000: i64 = 50000
3const NX_MAGIC_10000: i64 = 10000
13const NX_CMY_C: i64 = 0
14const NX_CMY_M: i64 = 1
15const NX_CMY_Y: i64 = 2
16const NX_CMY_K: i64 = 3
65const NX_CSUP_OK: i64 = 1
66const NX_CSUP_LOW: i64 = 2
67const NX_CSUP_EMPTY: i64 = 3
68const NX_CSUP_UNKNOWN: i64 = 4

functions

21func nx_color_coverage(rgb: *u8, npix: i64, out4: *i64) -> i64
called by 1: main
56func nx_color_remaining_bp(yield_pages: i64, consumed_ppm: i64) -> i64
called by 1: main
69func nx_color_status(remaining_bp: i64) -> i64
called by 1: main