Create a recompress library to embedding in other sources
This pull request splits out the recompression logic in jpeg-recompress.c into its own source file.
The reason I want to do this is I'm interested in building a Go app that will recompress JPEG files in-place and in parallel. I have a prototype of that working, but don't worry, that's not in this request. I know I could use jpeg-archive or just do a child execution of jpeg-recompress, but I wanted one deliverable binary.
In addition to extracting the library, I did the following:
- Added
*.exeto.gitignore. - Added
.editorconfigfile to ensure consistent use of spaces/tabs. - Updated
Makefileto account to 64 bit builds of MozJPEG on Linux - Updated
readFilesignature to take aconst char *to avoid unnecessary casting.
Testing
I've tested on 64bit Linux and Windows 10.
BTW, the broken build is with just the GCC part and had an error message of "An error occurred while generating the build script.". So I think the build is OK. I'm not sure how to re-run the CI build again to be sure.
Ping. Any thoughts on this?
Re-ping :)
FYI - this branch now includes #85 .