VLCCountBits

Computes a number of bits required to encode the source block.

Syntax

ippsVLCCountBits_16s32s (const Ipp16s* pSrc, int srcLen, Ipp32s* pCountBits, const IppsVLCEncodeSpec_32s* pVLCSpec);

Parameters

pSrc

Pointer to the source buffer.

srcLen

Number of elements in the pSrc.

pCounBits

Pointer to the computed length in bits required to encode pSrc.

pVLCSpec

Pointer to the VLC encoder specification structure.

Description

The function ippsVLCCountBits is declared in the ippdc.h file. This function computes a number of bits required to encode the source data pSrc using the VLC table from the encoder specification structure pVLCSpec that must be initialized by the functions ippsVLCEncodeInitAlloc or ippsVLCEncodeInit beforehand.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error if one of the specified pointers is NULL.

Submit feedback on this help topic

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