mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 00:38:14 +01:00
std/handsum: make 1:1 aspect ratio be landscape
This commit is contained in:
1 parent
ff4132b3ca
commit
2822b1a65d
3 files changed
+26
-10
No files matched your search
@@ -78,7 +78,9 @@ pri func decoder.do_decode_image_config?(dst: nptr base.image_config, src: base.
|
||||
}
|
||||
this.quality = (c32 >> 5) & 3
|
||||
|
||||
if (c32 & 0x10) == 0x00 { // Landscape.
|
||||
if (c32 & 0x1F) == 0x1F { // Reserved for future expansion.
|
||||
return "#bad header"
|
||||
} else if (c32 & 0x10) == 0x00 { // Landscape.
|
||||
this.width = 16
|
||||
this.height = (c32 & 0x0F) + 1
|
||||
} else { // Portrait.
|
||||
|
||||
Reference in new issue
Block a user