code wiki / (root) / nx_img_place.nx

nx_img_place.nx

buildroot/runtime/nx_img_place.nx

3079 B76 linesdepth 0pulls 0 transitivereach 2 importersview sourcekind librarytopic img
docsdependenciesstructsconstsfunctions

about

nx_img_place.nx -- place a decoded image onto a grayscale print page: luminance conversion + aspect-fit + nearest-neighbor scale-blit. The back half of "print documents WITH images". Works on the raw pixels from nx_png_decoder (any color type, 8/16-bit) and writes into the same 0=black..255=white page bitmap the document renderer + URF encoder use. PURE (operates on caller buffers) -> never-brick. Sovereign. genealogy_id: project-printer-management-ipp-sclass-2026-06-20 ; license_tier: ORIGINAL

dependencies 0 imports · 2 importers

nx_img_place.nx nx_img_place_test.nx nx_img_print.nx

imports: none

imported by: nx_img_place_test.nxnx_img_print.nx

structs

none

consts

none

functions

10func nx_img_to_gray(src: *u8, sw: i64, sh: i64, n_channels: i64, bit_depth: i64, out: *u8) -> i64
called by 2: mainmain
38func nx_img_fit(sw: i64, sh: i64, maxW: i64, maxH: i64, out_w: *i64, out_h: *i64) -> i64
called by 2: mainmain
56func nx_img_blit(page: *u8, W: i64, H: i64, dx: i64, dy: i64,
called by 2: mainmain