-
Avoid calling jpeg_mem_src and jpeg_mem_dest. The custom destination manager writes to the pipeline in smaller chunks to avoid having the whole image in memory at once. The source manager works directly with the Buffer object. Using customer managers avoids use of memory source and destination managers, which are not present in older versions of libjpeg still in use by some Linux distributions.
-
Slightly improve memory cleanup in Pl_DCT Make it easier to test with valgrind
-
Additional testing is added in later commits to be supported by additional changes in the library.