Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Implement reading mask data (#56)
* [feature] implement reading mask data * bugfix: decoding mask channels turns out in certain cases given length is much more than real length of a channel - and we need to read scanline sizes in order to calulcate that. Also, in case of masks, number of scanlines is proportional to mask height, not layer height. * bugfix: group frame may be undefined * bring back previous bugfix (9cd2d8f) Originally from here: 9cd2d8f NOTE: I cannot reproduce it on my sample files, and there's no test file. So I can only hope to preserve compatibility :) * Remove obsolete comment * Describe what masks should look like, assert hash This is easier than having full binary dump on disk and just as useful ;) * Use `height` helper also for layerRecord * Fix test name
- Loading branch information
Showing
9 changed files
with
399 additions
and
33 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
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
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
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
Oops, something went wrong.