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

Encode type before header, simplify access to pixel data #6

Merged
merged 2 commits into from
Jun 10, 2023

Conversation

oblivioncth
Copy link
Owner

Write encode type to the second pixel in the encoding sequence as raw
bits (just as with BPC) before the fully encoded header. This allows
automatic detection of the encoding type by the decoder and greater
flexibility for future encoding strategies, given that all reading/
writing procedures after reading the first two pixels can be implemented
differently based on the type value.

Use PxAccessRead and PxAccessWrite to greatly simplify argument passing
and initialization of pixel reading/writing facilities, as well as
automatically handle reading/writing the first two meta pixels (BPC &
Encoding Type).

Also adds a couple tests that check for proper operation when filling a
medium near to or at full capacity, where dropped data or heap
corruption is a concern if pixel access is improperly designed

Write encode type to the second pixel in the encoding sequence as raw
bits (just as with BPC) before the fully encoded header. This allows
automatic detection of the encoding type by the decoder and greater
flexibility for future encoding strategies, given that all reading/
writing procedures after reading the first two pixels can be implemented
differently based on the type value.

Use PxAccessRead and PxAccessWrite to greatly simplify argument passing
and initialization of pixel reading/writing facilities, as well as
automatically handle reading/writing the first two meta pixels (BPC &
Encoding Type).

Also adds a couple tests that check for proper operation when filling a
medium near to or at full capacity, where dropped data or heap
corruption is a concern if pixel access is improperly designed
@oblivioncth oblivioncth merged commit a986a97 into dev Jun 10, 2023
@oblivioncth oblivioncth deleted the in_stream_type_info branch June 10, 2023 19:11
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