Skip to content

fix: rounds 1-5 medium/low residual cleanup (26 files, 26 fixes) - #863

Merged
lusoris merged 1 commit into
masterfrom
worktree-wf_0ffeca2a-9d1-3
Jun 12, 2026
Merged

lusoris merged 1 commit into
masterfrom
worktree-wf_0ffeca2a-9d1-3

Conversation

@lusoris

@lusoris lusoris commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Cleanup pass targeting medium/low severity items from rounds 1-5 audits that were deferred from PRs #857/#858/#859.

Dead code removed (4 items):

  • threaded_read_pictures() in libvmaf.c — superseded by _batch variant, never called
  • hsum_epi32() in integer_ssim_avx2.c — helper defined but never invoked
  • load_module_fn() in integer_adm_hip.c — HIP module loading done differently, never called
  • init_index_cuda() in integer_adm_cuda.c — CUDA index helper defined but never invoked

Error-path return-value discipline (3 items):

  • ciede.c close(): add (void) casts on unchecked vmaf_picture_unref() calls
  • integer_motion_v2.c post-processing loop: add (void) casts on unchecked vmaf_feature_collector_append_with_dict() at motion2 and motion3 frame stamp

NOLINT ADR citation closure (19 files / ~19 items):

  • All bare NOLINTNEXTLINE(misc-use-internal-linkage) in feature extractor vmaf_fex_* structs now cite ADR-0278 (cross-TU registry pattern) per CLAUDE.md §12 r12
  • dnn_api.c and ort_backend.c stub readability-non-const-parameter NOLINTs now cite ADR-0040 (stub signatures must match ORT header)

Test plan

  • meson test --suite=fast 87/87 PASS
  • pre-commit run --files <changed> all hooks PASS
  • scripts/ci/check-copyright.sh PASS on all changed files
  • No Netflix golden assertions touched
  • No user-visible surface changed

Deep-dive deliverables (ADR-0108)

  • Research digest: no digest needed: trivial dead-code + citation fixes
  • Decision matrix: no alternatives: only-one-way fix per finding
  • AGENTS.md invariant note: no rebase-sensitive invariants
  • Reproducer: meson test -C build-wt --suite=fast — 87/87
  • changelog.d fragment: no changelog fragment needed: internal-only cleanup
  • docs/rebase-notes.md: no rebase impact

state.md

No bugs closed/opened by this PR (cleanup only).

🤖 Generated with Claude Code

…iles (rounds 1-5 medium/low residual)

Dead-code removals (4):
- Remove unused threaded_read_pictures() from libvmaf.c (superseded by _batch variant).
- Remove dead hsum_epi32() from integer_ssim_avx2.c (never called).
- Remove dead load_module_fn() from integer_adm_hip.c (never called).
- Remove dead init_index_cuda() from integer_adm_cuda.c (never called).

Error-path return-value discipline (3):
- ciede.c: add (void) casts on vmaf_picture_unref() calls in close().
- integer_motion_v2.c: add (void) casts on vmaf_feature_collector_append_with_dict()
  calls at motion2/motion3 post-processing loop (lines were bare, unchecked).

NOLINT ADR-0278 citation closure (19 files):
- Add inline ADR-0278 citation to every bare misc-use-internal-linkage NOLINT
  in feature extractors (float_ssim, ms_ssim, float_ms_ssim, ssim, integer_ssim,
  integer_adm, integer_motion_v2, cuda/ssim_cuda, hip/{ciede,float_moment,
  float_motion,float_psnr,float_ssim,float_vif,integer_adm,integer_motion_v2,
  integer_ms_ssim,integer_psnr,integer_psnr_hvs,integer_ssim}).
- dnn_api.c / ort_backend.c: add ADR-0040 citation to
  readability-non-const-parameter NOLINTs (stub signatures must match ORT header).

All 87/87 fast tests pass. pre-commit clean.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@lusoris
lusoris merged commit a6def8f into master Jun 12, 2026
57 of 63 checks passed
@lusoris
lusoris deleted the worktree-wf_0ffeca2a-9d1-3 branch June 12, 2026 18:17
@lusoris lusoris added this to the 1.0.0 — First release milestone Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant