nx_media_convert.nx
buildroot/runtime/nx_media_convert.nx
about
nx_media_convert.nx -- the user-facing media CONVERT: a real image FILE in,
decode -> selectable-model resample -> encode -> real image FILE out, one call.
Composes the existing sovereign decoder + the selectable resampler + the
sovereign PNG encoder -- ZERO 3rd-party. This is the literal "upscaling /
downscaling when media is converted, with easily selectable models" ask.
RUNG: RGB PNG in/out (nx_png_write_rgb is RGB). JPEG input (nx_jpeg_decode)
+ RGBA/gray channel adaptation = flagged next rung.
license_tier: ORIGINAL
dependencies 6 imports · 2 importers
imports: nx_syscalls.nxnx_img_resample.nxnx_png_decoder.nxnx_png_write.nxnx_seg_store.nxnx_jpeg_ascii.nx
imported by: nx_img_adapt_gate.nxnx_media_convert_jpeg_gate.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 21 | func nx_media_convert_png(in_path: *u8, model: i64, dw: i64, dh: i64, out_path: *u8) -> i64 |
| 36 | func nx_img_to_rgb(src: *u8, w: i64, h: i64, nc: i64, dst: *u8) -> i64 |
| 59 | func _mc_finish(rgb: *u8, w: i64, h: i64, model: i64, dw: i64, dh: i64, out_path: *u8) -> i64 called by 2: nx_media_convert_jpegnx_media_convert_file calls 3: sys_mmapnx_img_resamplenx_png_write_rgb |
| 66 | func nx_media_convert_jpeg(in_path: *u8, model: i64, dw: i64, dh: i64, out_path: *u8) -> i64 |
| 80 | func nx_media_convert_file(in_path: *u8, model: i64, dw: i64, dh: i64, out_path: *u8) -> i64 called by 2: mainmain calls 6: sys_mmapss_readallnx_png_decodenx_img_to_rgb_mc_finishnx_jpeg_decode_rgb |
| 110 | func main() -> i64 |