code wiki / (root) / nx_vcodec_color_frame.nx

nx_vcodec_color_frame.nx

buildroot/runtime/nx_vcodec_color_frame.nx

3786 B75 linesdepth 3pulls 3 transitivereach 10 importersview sourcekind tooltopic vcodec
docsdependenciesstructsconstsfunctions

about

nx_vcodec_color_frame.nx -- RUNG H5 of the sovereign s-class video codec: the COLOR frame codec. Takes an RGB frame -> YCbCr (H4) -> 4:2:0 (chroma at half resolution = half the chroma data) -> per-plane 4x4 integer transform + quantization (the proven WHT block codec) -> reconstruct -> upsample -> RGB. This is the grayscale-demo's successor: real color, real compression, pure integer, built on the ALU/transform hardware rungs. No float, no third-party. license_tier: ORIGINAL

dependencies 1 imports · 4 importers

nx_vcodec_color.nx nx_vcodec_color_frame.nx nx_vcodec_color_codec.nx nx_vcodec_color_frame_test.nx nx_vcodec_inter.nx nx_vcodec_stream.nx

imports: nx_vcodec_color.nx

imported by: nx_vcodec_color_codec.nxnx_vcodec_color_frame_test.nxnx_vcodec_inter.nxnx_vcodec_stream.nx

structs

none

consts

none

functions

9func wht4(X: *i64, tmp: *i64, out: *i64) -> i64
called by 2: enc_blockdec_block
17func enc_block(blk: *i64, tmp: *i64, T: *i64, q: *i64, QSTEP: i64) -> i64
24func dec_block(q: *i64, tmp: *i64, T: *i64, out: *i64, QSTEP: i64) -> i64
31func code_plane(plane: *u8, W: i64, H: i64, QSTEP: i64, rec: *u8) -> i64
called by 2: mainmain calls 2: enc_blockdec_block
51func subsample420(plane: *u8, W: i64, H: i64, out: *u8) -> i64
63func upsample420(ps: *u8, Ws: i64, Hs: i64, out: *u8) -> i64
75func main() -> i64 { return 0 }