nx_img_place.nx
buildroot/runtime/nx_img_place.nx
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
imports: none
imported by: nx_img_place_test.nxnx_img_print.nx
structs
| none |
consts
| none |
functions
| 10 | func nx_img_to_gray(src: *u8, sw: i64, sh: i64, n_channels: i64, bit_depth: i64, out: *u8) -> i64 |
| 38 | func nx_img_fit(sw: i64, sh: i64, maxW: i64, maxH: i64, out_w: *i64, out_h: *i64) -> i64 |
| 56 | func nx_img_blit(page: *u8, W: i64, H: i64, dx: i64, dy: i64, |