forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibGfx/JBIG2: Implement decode_page_information()
Also make scan_for_page_size() not early return, so that it has the same behavior as the main decoding look. (Multiple page information segments for a single page are likely invalid and don't happen in practice, so this is mostly an academic change.) Add a BitBuffer class to store the bit image data, and introduce a Page struct for storing data associated with a page. We currently only handle a single page, but a) this makes it easier to decode multiple pages in the future if we want b) it makes the code easier to understand.
- Loading branch information
Showing
1 changed file
with
117 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters