Description
I'm currently in the process of porting my BMP decoding library from JS to AS, and I have a version that is compiling with both tsc
and asc
at the moment. Everything works when using the output from tsc
, but when using the output from asc
I'm running into a strange decoding artifact.
The code is in this branch: https://github.com/LinusU/decode-bmp/tree/wasm
For some reason, the decoded file comes out as this when using the output from asc
:
The tsc
version correctly decodes the image like this:
I'm using the branch with the changes in #316, so potentially something in the DataView
is wrong. But since the metadata (magic byte, width, height, color depth, header size) is correct, and that is the only part read with DataView
, I think that the problem is elsewhere.
I'll continue to investigate to pin down the exactly where the problem is, but wanted to open early to hopefully get some help getting in the right direction