Skip to content

pdf-image: avoid intermediate sample allocations - #246

Merged
Velli20 merged 1 commit into
mainfrom
refactor-avoid-intermediate-sample-allocations
Aug 1, 2026
Merged

pdf-image: avoid intermediate sample allocations#246
Velli20 merged 1 commit into
mainfrom
refactor-avoid-intermediate-sample-allocations

Conversation

@Velli20

@Velli20 Velli20 commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Borrow eight-bit image samples directly from decoded input while retaining owned buffers for packed samples that require unpacking.

Use the shared indexed palette expander in image decoding and remove the redundant pdf-image indexed helpers. Document its clamping and error behavior.

Borrow eight-bit image samples directly from decoded input while
retaining owned buffers for packed samples that require unpacking.

Use the shared indexed palette expander in image decoding and remove
the redundant pdf-image indexed helpers. Document its clamping and
error behavior.

Co-authored-by: Codex <codex@openai.com>
@Velli20
Velli20 merged commit 00d999e into main Aug 1, 2026
4 checks passed
@Velli20
Velli20 deleted the refactor-avoid-intermediate-sample-allocations branch August 1, 2026 08:37
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