DecodeHuffmanRow_JPEG

Decodes one row for each color component of Huffman coded differences.

Syntax

IppStatus ippiDecodeHuffmanRow_JPEG_1u16s_C1P4(const Ipp8u* pSrc, int nSrcLenBytes, int* pSrcCurrPos, Ipp16s* pDst[4], int nDstLen, int nDstRows, int* pMarker, const IppiDecodeHuffmanSpec* pDecHuffTable[4], IppiDecodeHuffmanState* pDecHuffState);

Parameters

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

Array of pointers to the output buffer for each color component in the JPEG scan to store the decoded difference.

pDstLen

Number of elements to decode, must be equal to the image width or JPEG restart interval.

pDstRows

Number of output rows, must be equal to the number of color components.

pMarker

Pointer to a variable that will receive JPEG marker detected during decoding.

pDecHuffTable

Array of pointers to the IppiDecodeHuffmanSpec structures (one for each color component) that contains the Huffman decode table.

pDecHuffState

Pointer to the IppiDecodeHuffmanState structure that contains the Huffman decoder state.

Description

The function ippiDecodeHuffmanRow_JPEG is declared in the ippj.h file. This function decodes pDstLen Huffman coded difference for nDstRows rows (one for each color component) using corresponding pDecHuffTable table from the bitstream pointed by pSrc, and places it to the output buffer pointed by the appropriate pointer in the array pDst.

If a JPEG marker is detected during decoding, the function stops decoding and writes the marker to a location indicated by pMarker.

Return Values

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.

Submit feedback on this help topic

Copyright © 2000 - 2010, Intel Corporation. All rights reserved.