Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.
6656 Discussions

about huffman decoding state structure in jpeg ipp..

Intel_C_Intel
Employee
162 Views
Hi~
We areusing the IPP 5.0 jpegsample code and IXP library in this site.
As the IPP reference manual p 971(document number,A70805-016),
"the fields of the structure of "IppiDecodeHuffmanstate" are hidden from user."
But, we would like to know the structure.
How can we know that?
0 Kudos
2 Replies
Vladimir_Dudnik
Employee
162 Views

Hi,

fields of this structure are hidden because they may be different on different architectures.

You can tract IppiDecodeHuffmanState as

typedef struct _ownpjDecodeHuffmanState
{
Ipp64u uBitBuffer;
int nBitsValid;
int nEndOfBlockRun;
.....
} ownpjDecodeHuffmanState;

Or, you can use ippiDecodeHuffman8x8_Direct_JPEG_1u16s_C1 function, which do exactly the same job but all fields which are hidden in structure are available as a parameters.

Regards,
Vladimir

Intel_C_Intel
Employee
162 Views
Thank you for your kind explanation.
We will try to adopt your suggestion.
Have a nice day.
Reply