EncodeHuffman8x8_Direct_JPEG

Directly performs Huffman baseline encoding of an 8x8 block of quantized DCT coefficients.

Syntax

IppStatus ippiEncodeHuffman8x8_Direct_JPEG_16s1u_C1(const Ipp16s* pSrc, Ipp8u* pDst, int* pDstBitsLen, Ipp16s* pLastDC, const IppiEncodeHuffmanSpec* pDcTable, const IppiEncodeHuffmanSpec* pAcTable);

Parameters

pSrc

Pointer to the 8x8 block of the quantized DCT coefficients.

pDst

Pointer to the buffer for the output bit stream.

pDstBitsLen

Length in bits of the buffer for the bit stream.

pLastDC

Pointer to the DC coefficient of the previous 8x8 block of the same color component.

pDcTable

Pointer to the Huffman table for the DC coefficients.

pAcTable

Pointer to the Huffman table for the AC coefficients.

Description

The function ippiEncodeHuffman8x8_Direct_JPEG is declared in the ippj.h file. This function directly performs encoding of an 8x8 block of the quantized DCT coefficients using pDcTable and pAcTable tables. The function does not require any additional structure for operation. Encoding procedure is specified in [ISO10918], Annex F.1.2, Baseline Huffman Encoding Procedures.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error condition if one or all of the specified pointers are NULL.

Submit feedback on this help topic

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