h264: Intra_16x16 luma prediction — 4-mode C reference + spec gates #13
Reference in New Issue
Block a user
Delete Branch "noether/h264-intra-pred-16x16"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Second intra-prediction primitive after PR #12 (Intra_4x4). Covers Intra_16x16 luma per H.264 §8.3.2: 4 modes (V, H, DC, Plane).
Plane mode is the algorithmically heaviest of the four — spec §8.3.2.4 has two slope sums (H, V) over asymmetric top/left contexts, a clipped quadratic per cell, and a top-left-corner participant. Tested with a gradient context where
pred[0][0]=1andpred[15][15]=31are hand-derived from the spec arithmetic; the full chain (H = V = 400 → b = c = 31, a = 480) is in the test comment so the expected values are auditable.ALL 5 tests PASS first try — Plane mode being correct first-try is meaningful given the sign/index error opportunities.
Remaining intra-pred backlog: Intra_8x8 chroma (4 modes), Intra_8x8 luma High profile (9 modes + 1-2-1 smoothing pre-filter), availability fallbacks.