Closed Deledrius closed 7 months ago
For some reason Mac homebrew's libjpeg-turbo is failing in the CI. I've checked my own install, and the version installed by homebrew has the necessary #defines
in the library header. I'm not sure what the problem is here.
I've added the commit from #256 so that this PR can successfully build.
This PR has been rebased onto master and review suggestions have been incorporated.
This adds the previously-unimplemented JPEG writer, as well as two new functions to read PNG and JPG files directly into a plMipmap. The existing readers were intended to be used only when reading from a data stream where the size of the buffer is already known by the calling function, and as such are inconvenient when reading directly from a file.
Depends on #127.