nx_intra_pred.nx
buildroot/runtime/nx_intra_pred.nx
about
nx_intra_pred.nx -- sovereign directional intra prediction for 4x4 luma blocks (DC / vertical / horizontal /
diagonal-down-right), predicting from already-available neighbor samples (top row, left column, top-left corner),
exactly as H.264/AVC intra-4x4 does. The codec is intra-DC-only today; this is the lever to close the measured
real-content efficiency gap (RT-003 R1b). Built as a reusable lib so the codec's intra path can adopt it, and so
nx_intra_pred_gate can MEASURE the residual reduction on a real frame before any core-codec change. No syscalls here.
dependencies 0 imports · 1 importers
imports: none
imported by: nx_intra_pred_gate.nx
structs
| none |
consts
| 7 | const IP_DC: i64 = 0 |
| 8 | const IP_V: i64 = 1 |
| 9 | const IP_H: i64 = 2 |
| 10 | const IP_DDR: i64 = 3 |
| 11 | const IP_NMODES: i64 = 4 |
functions
| 13 | func ip_abs(v: i64) -> i64 { if v < 0 { return 0 - v } return v } called by 1: ip_sad4 |
| 18 | func ip_predict4(src: *u8, W: i64, px: i64, py: i64, mode: i64, pred: *u8) -> i64 |
| 50 | func ip_sad4(src: *u8, W: i64, px: i64, py: i64, pred: *u8) -> i64 |
| 58 | func ip_best4(src: *u8, W: i64, px: i64, py: i64, pred: *u8, outmode: *i64) -> i64 |