code wiki / (root) / nx_media_index.nx

nx_media_index.nx

buildroot/runtime/nx_media_index.nx

3871 B105 linesdepth 9pulls 34 transitivereach 5 importersview sourcekind librarytopic media
docsdependenciesstructsconstsfunctions

about

nx_media_index.nx -- EXPOSURE rung X1 (library): tag a real media file by running the detectors over it, producing a record the portal can filter and search. REUSES the shipped sovereign decoder (nx_png_decode) + R2 presence -- no new decode/detect code. This is how the capabilities reach the real library instead of synthetic in-memory pixels. PNG today (the gallery is PNG, verified end-to-end on a real 1024x768 file). JPEG is a drop-in extension via the existing nx_jpeg_decode; NAS .jpg paths also need an SMB-reachable mount -- both deliberately deferred, not faked. genealogy_id: media_studio_exposure_index (record-hint) lineage_id: decode + presence + tag_record license_tier: ORIGINAL

dependencies 6 imports · 5 importers

nx_syscalls.nx nx_tier.nx nx_image.nx nx_png_decoder.nx nx_jpeg_ascii.nx nx_presence.nx nx_media_index.nx nx_media_gallery.nx nx_media_index_gate.nx nx_media_index_run.nx nx_media_player.nx nx_skin_diag.nx

imports: nx_syscalls.nxnx_tier.nxnx_image.nxnx_png_decoder.nxnx_jpeg_ascii.nxnx_presence.nx

imported by: nx_media_gallery.nxnx_media_index_gate.nxnx_media_index_run.nxnx_media_player.nxnx_skin_diag.nx

structs

none

consts

21const NX_MIDX_OK: i64 = 0
22const NX_MIDX_NOFILE: i64 = 1
23const NX_MIDX_NOTPNG: i64 = 2
24const NX_MIDX_DECERR: i64 = 3
26const NX_MIDX_MIN_SKIN: i64 = 50
27const NX_MIDX_MIN_CONC: i64 = 500

functions

30func nx_mindex_png_to_image(r: *NxPngResult) -> *Image
called by 2: nx_mindex_tag_pathmain calls 1: sys_mmap
42func nx_mindex_rgb_to_image(rgb: *u8, w: i64, h: i64) -> *Image
called by 1: nx_mindex_tag_path calls 1: sys_mmap
57func nx_mindex_tag_path(path: *u8, out: *i64) -> i64