-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Raise ValueError if FPX tile size is not 64px by 64px #9660
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -142,6 +142,10 @@ def _open_subimage(self, index: int = 1, subimage: int = 0) -> None: | |
| size = i32(s, 4), i32(s, 8) | ||
| # tilecount = i32(s, 12) | ||
| xtile, ytile = i32(s, 16), i32(s, 20) | ||
| if xtile != 64 or ytile != 64: | ||
| msg = "Tile must be 64 pixels by 64 pixels" | ||
| raise ValueError(msg) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Maybe use
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could go either way. I'm more inclined towards what is theoretically correct. |
||
|
|
||
| # channels = i32(s, 24) | ||
| offset = i32(s, 28) | ||
| length = i32(s, 32) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.