Skip to content

Add opt-in incremental bounded HEIC decoding - #2

Closed
laurens-pilot wants to merge 3 commits into
mainfrom
feat/incremental-bounded-decode
Closed

laurens-pilot wants to merge 3 commits into
mainfrom
feat/incremental-bounded-decode

Conversation

@laurens-pilot

Copy link
Copy Markdown
Owner

Add feature-gated incremental reconstruction for supported opaque 8-bit 4:2:0 HEVC still images, including non-grid images and grids with oversized tiles. Complete prediction and filtering in rolling bands before conversion and downsampling, so source raster storage grows with width rather than total pixels. Existing APIs and production callers retain their behavior.

A 199.8 MP photograph re-encoded as a single HEIC item produces 6000×4500 output with 103.3 MiB measured peak heap under a 128 MiB budget; all 299,635,200 reconstructed YUV samples match FFmpeg. This is host evidence for the supported subset, not native camera compatibility or a universal RSS guarantee. WPP, alpha, higher bit depths and other coding structures remain follow-up work.

Include allocation ceilings and portable reference checks that keep native samples exact while allowing at most one RGB8 code value for display rounding. A pinned fixture explicitly records the libheif chroma-border defect; the existing exact normal-decoder comparison policy stays intact.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-30T13:17:40.998517Z b050e4a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@laurens-pilot

Copy link
Copy Markdown
Owner Author

Superseded by ente#12.

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.

2 participants