Skip to content

Release j2k 0.7.1 with safe Metal resident ownership#51

Merged
jcwal1516 merged 23 commits into
mainfrom
release/0.7.1-local
Jul 15, 2026
Merged

Release j2k 0.7.1 with safe Metal resident ownership#51
jcwal1516 merged 23 commits into
mainfrom
release/0.7.1-local

Conversation

@jcwal1516

Copy link
Copy Markdown
Member

What changed

  • stages the 0.7.1 accelerated codec release candidate
  • adds opaque ResidentMetalImage ownership with validated layouts and device identity
  • retains Metal inputs and outputs through command completion with SubmittedMetalImages
  • adds safe resident JPEG and J2K encoder entry points while keeping raw interop unsafe
  • updates stable API, semver review, unsafe-audit, and release-gate evidence
  • classifies the interactive Metal capture test separately from the unattended release inventory

Why

The previous Metal handoff exposed raw buffers without expressing immutable ownership or the lifetime of in-flight GPU work. The resident image boundary keeps the buffer private, validates range and device invariants, and makes resource retention part of the submission owner.

Impact

Downstream Metal users can pass decoded images directly into encoders without a copy or readback. Audited external producers can still adopt and access raw buffers through documented unsafe APIs. ResidentPrivateJpegTile::into_buffer is now unsafe; the safe replacement is into_resident_image.

Validation

  • cargo xtask ci
  • cargo xtask release-cpu
  • cargo xtask release-metal
  • cargo xtask stable-api
  • CARGO_NET_OFFLINE=true cargo xtask semver
  • cargo xtask release-integrity
  • cargo xtask package
  • gitleaks 8.30.1 worktree and 1,327-commit history scans

CUDA hardware validation is intentionally pending on the repository's self-hosted runner and must pass for this exact SHA before merge or tag publication.

@jcwal1516
jcwal1516 marked this pull request as ready for review July 15, 2026 00:26
@jcwal1516
jcwal1516 merged commit 84cbd2f into main Jul 15, 2026
32 of 47 checks passed
@jcwal1516
jcwal1516 deleted the release/0.7.1-local branch July 15, 2026 00:29
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