PutNonIntraBlock

Encodes, rearranges and puts non-intra block into bit stream.

Syntax

IppStatus ippiPutNonIntraBlock(Ipp32u** ppBitStream, int* pOffset, Ipp16s* pSrcBlock, IppVCHuffmanSpec_32s* pACTable, Ipp32s* pScanMatrix, Ipp32s EOBLen, Ipp32s EOBCode, Ipp32s count);

Parameters

ppBitStream

Double pointer to the current position in the bit stream.

pOffset

Pointer to the offset between the bit that ppBitStream points to and the start of the code.

pSrcBlock

Pointer to the block.

pACTable

Pointer to the table containing Run-Level codes for AC coefficients, that is, all DCT coefficients except the first coefficient.

pScanMatrix

Pointer to the scanning matrix.

EOBLen

Length of the block end code.

EOBCode

Value of the block end code.

count

Number of the non-zero coefficients.

Description

This function is declared in the ippvc.h header file. The function ippiPutNonIntraBlock is applied to predicted and bi-predicted non-intra blocks and encodes a block of 8x8 DCT coefficients. The function encodes both DC and AC coefficients using the pACTable.

The pointer pScanMatrix points to the scanning matrix that is described in MPEG standard. See Figure "Default Scanning Sequence" for the simple scanning matrix and sequence. After encoding, the data should be rearranged from linear sequence to scanning sequence.

Return Values

IppStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when at least one input pointer is NULL.


Submit feedback on this help topic

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