decomp(odh): match LineConv11 and huffmanDecoder, link odh #1301

Merged
coah80 merged 1 commits from agent/w0929/opus-odh-land into main 2026-10-09 02:32:36 +00:00
coah80 commented 2026-10-09 02:32:34 +00:00 (Migrated from github.com)

worker 9b2c5837. instruction-exact functions: 28/28 gate: 0 regressions, 0 forbidden, 0 readability, dol sha1 26116613f624061ba99c8d1a299aaa6efa85670d

worker 9b2c5837. instruction-exact functions: 28/28 gate: 0 regressions, 0 forbidden, 0 readability, dol sha1 26116613f624061ba99c8d1a299aaa6efa85670d
graphify-labs[bot] (Migrated from github.com) reviewed 2026-10-09 02:38:11 +00:00
graphify-labs[bot] (Migrated from github.com) left a comment

Graphify reviewed this change.

Worth a look — the grounded gate found no coupling regressions or blocking issues, but 3 advisory finding(s) below merit a look before merge.


Graphify review — findings

Marks odh.cpp as Matching and rewrites LineConv11 and huffmanDecoder to match the original code. LineConv11 now indexes pixels directly by the loop counter and reads chroma through precomputed Cb/Cr plane pointers. huffmanDecoder uses early ODH_ERROR_INVALID_BITSTREAM returns instead of a threaded decodeResult, and splits into a DC table walk followed by a separate AC loop over huffmanTables[1], which caps codes at 6 bits and handles category 7 specially.

Worth a look

  • Bit-buffer construction left-shifts promoted signed bytes into the sign bit — src/system/odh.cpp:2030 · Escalate · medium
    • agreed by 2 of 2 members but NOT verified (no proof, no reproducing execution) — consensus is not a verdict; needs human review
  • Bitstream reload shifts signed ints into the sign bit — src/system/odh.cpp · Escalate · medium
    • agreed by 2 of 2 members but NOT verified (no proof, no reproducing execution) — consensus is not a verdict; needs human review
  • LineConv11 plane offsets can overflow signed int — src/system/odh.cpp:894 · Escalate · medium
    • agreed by 2 of 2 members but NOT verified (no proof, no reproducing execution) — consensus is not a verdict; needs human review
Analysis details — impact, health, verification

Impact & health

Graphify review

Impact — 103 functions depend on the 100 functions this change touches.

Health — grade A; no new coupling hotspots.

Verification — 103 functions in the blast radius were not formally verified this run (proofs are advisory here).

Gate & verification

graphify gate

PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.

Advisory (not blocking):

  • verification_scope: 103 function(s) in the blast radius were not formally verified this run
<!-- graphify-inline:4c412ccf0da0eb16336a48590b06fec6861f3ce7 --> **Graphify reviewed this change.** **Worth a look** — the grounded gate found no coupling regressions or blocking issues, but 3 advisory finding(s) below merit a look before merge. --- ## Graphify review — findings Marks `odh.cpp` as `Matching` and rewrites `LineConv11` and `huffmanDecoder` to match the original code. `LineConv11` now indexes pixels directly by the loop counter and reads chroma through precomputed Cb/Cr plane pointers. `huffmanDecoder` uses early `ODH_ERROR_INVALID_BITSTREAM` returns instead of a threaded `decodeResult`, and splits into a DC table walk followed by a separate AC loop over `huffmanTables[1]`, which caps codes at 6 bits and handles category 7 specially. **Worth a look** - **Bit-buffer construction left-shifts promoted signed bytes into the sign bit** — `src/system/odh.cpp:2030` · _Escalate · medium_ - agreed by 2 of 2 members but NOT verified (no proof, no reproducing execution) — consensus is not a verdict; needs human review - **Bitstream reload shifts signed ints into the sign bit** — `src/system/odh.cpp` · _Escalate · medium_ - agreed by 2 of 2 members but NOT verified (no proof, no reproducing execution) — consensus is not a verdict; needs human review - **LineConv11 plane offsets can overflow signed int** — `src/system/odh.cpp:894` · _Escalate · medium_ - agreed by 2 of 2 members but NOT verified (no proof, no reproducing execution) — consensus is not a verdict; needs human review <details> <summary>Analysis details — impact, health, verification</summary> ### Impact & health ## Graphify review **Impact** — 103 functions depend on the 100 functions this change touches. **Health** — grade A; no new coupling hotspots. **Verification** — 103 functions in the blast radius were not formally verified this run (proofs are advisory here). ### Gate & verification ## graphify gate **PASS** — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed. Advisory (not blocking): - verification_scope: 103 function(s) in the blast radius were not formally verified this run </details>
Sign in to join this conversation.