Decodes one Huffman coded difference.
IppStatus ippiDecodeHuffmanOne_JPEG_1u16s_C1(const Ipp8u* pSrc, int nSrcLenBytes, int* pSrcCurrPos, Ipp16s* pDst, int* pMarker, const IppiDecodeHuffmanSpec* pDecHuffTable, IppiDecodeHuffmanState* pDecHuffState);
pSrc |
Pointer to the input bitstream. |
nSrcLenBytes |
Number of available bytes in the input buffer. |
pSrcCurrPos |
Pointer to the current byte in the input buffer. This pointer is updated in the function. |
pDst |
Pointer to the output buffer to store the decoded difference. |
pMarker |
Pointer to a variable that will receive JPEG marker detected during decoding. |
pDecHuffTable |
Pointer to the IppiDecodeHuffmanSpec structure that contains the Huffman code table. |
pDecHuffState |
Pointer to the IppiDecodeHuffmanState structure that contains the Huffman decoder state. |
The function ippiDecodeHuffmanOne_JPEG is declared in the ippj.h file. This function decodes one Huffman coded difference pointed to in the bitstream by pSrc and stores the result in the output buffer pDst. The function uses Huffman code table pDecHuffTable.
If a JPEG marker is detected during decoding, the function stops decoding and writes the marker to a location indicated by pMarker.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error condition if one of the specified pointers is NULL. |
ippStsSizeErr |
Indicates an error condition if the nSrcLenBytes parameter has zero or negative value, or if pSrcCurrPos is out of nSrcLenBytes limit. |
ippStsJPEGMarkerWarn |
Indicates a warning if a JPEG marker is detected. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.