mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 08:47:28 +01:00
Roll back the two previous "@I/O redirect" commits
See the previous commit for the rationale.
This commit is contained in:
1 parent
49023afd48
commit
6537a817b7
4 files changed
+11
-8
No files matched your search
@@ -72,7 +72,7 @@ pub func decoder.decode_image_config?(dst: nptr base.image_config, src: base.io_
|
||||
if (this.call_sequence <> 0) or (this.io_redirect_fourcc == 1) {
|
||||
return base."#bad call sequence"
|
||||
} else if this.io_redirect_fourcc <> 0 {
|
||||
return base."@metadata reported" // XXX
|
||||
return base."@I/O redirect"
|
||||
}
|
||||
|
||||
// Read the BITMAPFILEHEADER (14 bytes).
|
||||
@@ -130,10 +130,10 @@ pub func decoder.decode_image_config?(dst: nptr base.image_config, src: base.io_
|
||||
if bits_per_pixel == 0 {
|
||||
if compression == 4 {
|
||||
this.io_redirect_fourcc = 'JPEG'be
|
||||
return base."@metadata reported" // XXX
|
||||
return base."@I/O redirect"
|
||||
} else if compression == 5 {
|
||||
this.io_redirect_fourcc = 'PNG 'be
|
||||
return base."@metadata reported" // XXX
|
||||
return base."@I/O redirect"
|
||||
}
|
||||
return "#unsupported BMP file"
|
||||
} else if bits_per_pixel == 24 {
|
||||
|
||||
Reference in new issue
Block a user