code wiki / (root) / nx_vdeblock.nx

nx_vdeblock.nx

buildroot/runtime/nx_vdeblock.nx

2265 B45 linesdepth 3pulls 3 transitivereach 2 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_vdeblock.nx -- wires the already-built H.264 luma deblocking edge filter (nx_h264_deblock, spec 8.7.2.3) into a FRAME-LEVEL pass. Block-transform codecs leave a DC "blocking" step at 4x4/MB edges after quantization; this filter smooths those false edges while preserving true ones (it only acts when |p0-q0|<alpha && |p1-p0|<beta && |q1-q0|<beta, the signature of a quantization artifact rather than real content). Applied as a DISPLAY/post pass here so the inter-prediction reference stays pre-filter and encoder+decoder remain in sync; making it IN-LOOP (deblocked frame = reference) is the next refinement. Composes nx_h264_deblock; caller owns scratch line[8]. license_tier: ORIGINAL

dependencies 1 imports · 2 importers

nx_h264_deblock.nx nx_vdeblock.nx nx_vcodec_inloop_gate.nx nx_vdeblock_gate.nx

imports: nx_h264_deblock.nx

imported by: nx_vcodec_inloop_gate.nxnx_vdeblock_gate.nx

structs

none

consts

none

functions

11func vc_deblock_frame(recon: *u8, W: i64, H: i64, qp: i64, bs: i64, line: *i64) -> i64
called by 2: mainmain calls 1: nx_deblock_luma_edge