code wiki / (root) / nx_vcodec_color.nx

nx_vcodec_color.nx

buildroot/runtime/nx_vcodec_color.nx

1802 B39 linesdepth 2pulls 2 transitivereach 12 importersview sourcekind tooltopic vcodec
docsdependenciesstructsconstsfunctions

about

nx_vcodec_color.nx -- sovereign COLOR foundation for the s-class video codec (operator 2026-06-23: "s class exceed no matter the investment, from the hardware rung up, no third-party"). The luma-128 codec is grayscale; s-class is COLOR. Color starts here: integer BT.601 RGB<->YCbCr (no float, built straight on the ALU/integer hardware rung). The codec encodes the Y/Cb/Cr planes; the camera gives RGB, the display wants RGB, so this is the gateway both ways. Pure integer, sovereign, our own. license_tier: ORIGINAL

dependencies 1 imports · 2 importers

nx_syscalls.nx nx_vcodec_color.nx nx_vcodec_color_frame.nx nx_vcodec_color_test.nx

imports: nx_syscalls.nx

imported by: nx_vcodec_color_frame.nxnx_vcodec_color_test.nx

structs

none

consts

none

functions

8func clamp8(v: i64) -> i64 { if v < 0 { return 0 } if v > 255 { return 255 } return v }
11func rgb_to_ycbcr(r: i64, g: i64, b: i64, out: *i64) -> i64
18func ycbcr_to_rgb(y: i64, cb: i64, cr: i64, out: *i64) -> i64
28func rgb_frame_to_yuv(rgb: *u8, n: i64, yp: *u8, up: *u8, vp: *u8) -> i64
39func main() -> i64 { return 0 }