Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify expand_strip #128

Merged
merged 3 commits into from
Apr 12, 2021
Merged

Conversation

fintelia
Copy link
Contributor

This refactors the strip decoding logic with the goal of making it simpler and easier to modify.

| (ColorType::CMYK(16), DecodingBuffer::I16(ref mut buffer)) => {
reader.read_i16_into(&mut buffer[..bytes / 2])?;
bytes / 2
for b in &mut buffer[bytes_written..] {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This addresses the FIXME from line 932

@HeroicKatora HeroicKatora merged commit 69c34ac into image-rs:master Apr 12, 2021
@fintelia fintelia deleted the simplify-expand3 branch December 22, 2021 16:34
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.

3 participants