- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I need to implement a jpeg lossless compression to compress 16bit grayscale image data. I'm not so good at C/C++. After I looked into the UIC sample source code and the IPP documents, I still could not figure out how to use function ippiEncodeHuffmanRow_JPEG_16s1u_P4C1. If I'm not wrong, I need to call this function for each row of the input image? And how to use the last input parameter bFlushState? Currently I set it to 1 after all the rows has been huff encoded. Could anyone give me some advice? Thanks in advance.
Guanshuo
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
You may look at some high level sample code: In the jpeg.cpp file, the function
IM_ERROR SaveImageJPEG(..)
shows how to encode the image into the lossless jpeg.
The function support one mode on lossless JPEG encoding.
Thanks,
Chao
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