| Summary: | [Patch] Add USE_STBIMAGE for LoadPNG/LoadJPG, USE_TINYJPEG for SaveJPG | ||
|---|---|---|---|
| Product: | SDL_image | Reporter: | Ethan Lee <flibitijibibo> |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | NEW --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P2 | ||
| Version: | 2.0.3 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: |
stb_image/tinyjpeg support patch
stb_image/tinyjpeg support patch [v2] stb_image/tinyjpeg support patch [v3] |
||
|
Description
Ethan Lee
2018-09-04 17:17:22 UTC
Oh yeah, one more thing: You'll notice that IsPNG and IsJPG are duplicated for the fallback paths - I wasn't sure how to isolate that, but this could definitely be made smaller by taking the existing copies of the function and expose them to other implementations of PNG/JPG support. Created attachment 3336 [details]
stb_image/tinyjpeg support patch [v2]
Patch has been updated with some warning fixes for WinRT. Still need to figure out the best way to incorporate this into the projects and merge the IsPNG/IsJPG paths, need feedback on that before this can move forward.
Created attachment 4183 [details]
stb_image/tinyjpeg support patch [v3]
New version to fix a leak in the stb loader.
|