nx_media_index.nx
buildroot/runtime/nx_media_index.nx
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
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
| 21 | const NX_MIDX_OK: i64 = 0 |
| 22 | const NX_MIDX_NOFILE: i64 = 1 |
| 23 | const NX_MIDX_NOTPNG: i64 = 2 |
| 24 | const NX_MIDX_DECERR: i64 = 3 |
| 26 | const NX_MIDX_MIN_SKIN: i64 = 50 |
| 27 | const NX_MIDX_MIN_CONC: i64 = 500 |
functions
| 30 | func nx_mindex_png_to_image(r: *NxPngResult) -> *Image |
| 42 | func nx_mindex_rgb_to_image(rgb: *u8, w: i64, h: i64) -> *Image |
| 57 | func nx_mindex_tag_path(path: *u8, out: *i64) -> i64 |