code wiki / (root) / nx_h264_chroma_pred.nx

nx_h264_chroma_pred.nx

buildroot/runtime/nx_h264_chroma_pred.nx

3624 B102 linesdepth 3pulls 3 transitivereach 7 importersview sourcekind librarytopic h264
docsdependenciesstructsconstsfunctions

about

nx_h264_chroma_pred.nx -- Intra chroma 8x8 prediction (4:2:0), spec 8.3.4. mode 0 DC : per-quadrant (TL/TR/BL/BR) DC with the spec's availability fallbacks mode 1 Horiz: pred[y][x] = left[y] mode 2 Vert : pred[y][x] = top[x] mode 3 Plane: 8x8 plane fit (multiplier 34), Clip1 to [0,255] top[0..7]=p[x,-1], left[0..7]=p[-1,y], tl=p[-1,-1]. pred = 64 i64 raster. genealogy_id: itu_t_h264_sec8_3_4_intra_chroma lineage_id: intra_chroma_dc_quadrant + plane8x8 license_tier: ORIGINAL

dependencies 2 imports · 5 importers

nx_syscalls.nx nx_h264_idct.nx nx_h264_chroma_pred.nx nx_h264_brecon.nx nx_h264_chroma_pred_gate.nx nx_h264_decode_frame.nx nx_h264_iframe.nx nx_h264_pframe_recon.nx

imports: nx_syscalls.nxnx_h264_idct.nx

imported by: nx_h264_brecon.nxnx_h264_chroma_pred_gate.nxnx_h264_decode_frame.nxnx_h264_iframe.nxnx_h264_pframe_recon.nx

structs

none

consts

none

functions

14func sum4(a: *i64, off: i64) -> i64 { return a[off] + a[off+1] + a[off+2] + a[off+3] }
17func fill_quad(pred: *i64, qx: i64, qy: i64, dc: i64) -> i64
27func nx_intra_chroma_pred(mode: i64, top: *i64, left: *i64, tl: i64, avail_top: i64, avail_left: i64, pred: *i64) -> i64