Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

jpeg recompression

Deleted_U_Intel
Employee
350 Views
hi, im owner of ipp 4 for linux, and i need simple sample for this:
i have jpeg image in memory in buffer data with size 50000 bytes. i need recompress it to 50% quality jpeg and put it to buffer2.
how can i do it?
0 Kudos
1 Reply
Vladimir_Dudnik
Employee
350 Views
Hi,
you need to decompress your JPEG to intermediate buffer and after that you can compress it with any desired compression ratio.
There is some performance trick. You can decompress only DCT coefficients, dequantize them, after that you can requantize them with new quality setting and compress with huffman function. Right now we have no such sample in IPP, but if you are familiar enough with JPEG technology it is not complicated task to write such code yourself (or modify our existing IPP sample).
Regards,
Vladimir
0 Kudos
Reply