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

Use positive indexes to acces the line buffer during decoding #313

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

vbaderks
Copy link
Contributor

@vbaderks vbaderks commented Aug 2, 2024

The line buffer is 2 pixels longer then required to make is easier to decode pixels on the edges. The start of the pointers was set to the first real pixel. This caused the problem that negative indexes needed to be used in the code, which looks incorrect at first sight and makes the code harder to port.

The line buffer is 2 pixels longer then required to make is easier to decode pixels on the edges. The start of the pointers was set to the first real pixel.
This caused the problem that negative indexes needed to be used in the code, which looks incorrect at first sight and makes the code harder to port.
Copy link

sonarcloud bot commented Aug 2, 2024

@vbaderks vbaderks merged commit e9ebb7e into main Aug 2, 2024
32 checks passed
@vbaderks vbaderks deleted the zero-index branch August 2, 2024 15:24
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