You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It really only checks that the header is correct and that the sequence of bytes isn't longer than the header claims.
Since decoding a QOI image only takes one pass, this is probably the correct implementation. However, the documentation makes no mention that isQOI doesn't guarantee that its input actually is a Quite Okay Image.
The text was updated successfully, but these errors were encountered:
Ah, good point 👍
I'll improve the comment (and API) of the library soon. I wanna expose a pure stream encoder/decoder as well, where you have zero allocations involved
It really only checks that the header is correct and that the sequence of bytes isn't longer than the header claims.
Since decoding a QOI image only takes one pass, this is probably the correct implementation. However, the documentation makes no mention that isQOI doesn't guarantee that its input actually is a Quite Okay Image.
The text was updated successfully, but these errors were encountered: