- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
![](/skins/images/B7BA37F9CE4B52FF7CAE1FB0388839C8/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page