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

Commits on Jun 10, 2023

  1. Encode type before header, simplify access to pixel data

    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 committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    c066d60 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a24bd5e View commit details
    Browse the repository at this point in the history