VLCEncode_JPEGXR

Performs VLC encoding.

Syntax

IppStatus ippiVLCEncode4x4Flex_JPEGXR_32s1u_C1R(const Ipp32s* pSrc, Ipp32u srcStep, IppBool chroma, Ipp32u numModelBits, Ipp32u numTrimBits, Ipp32s pDstResidual[16], Ipp8u** ppBitStream, Ipp32u* pBitsBuf, Ipp32u* pNumBits, Ipp32u* pNumNonZero, IppiVLCState_JPEGXR* pVLCState);

IppStatus ippiVLCEncode4x4Flex_JPEGXR_16s1u_C1R(const Ipp16s* pSrc, Ipp32u srcStep, IppBool chroma, Ipp32u numModelBits, Ipp32u numTrimBits, Ipp32s pDstResidual[16], Ipp8u** ppBitStream, Ipp32u* pBitsBuf, Ipp32u* pNumBits, Ipp32u* pNumNonZero, IppiVLCState_JPEGXR* pVLCState);

IppStatus ippiVLCEncode4x4_JPEGXR_32s1u_C1R(const Ipp32s* pSrc, Ipp32u srcStep, IppBool chroma, Ipp32u numModelBits, Ipp8u** ppBitStream, Ipp32u* pBitsBuf, Ipp32u* pNumBits, Ipp32u* pNumNonZero, IppiVLCState_JPEGXR* pVLCState);

IppStatus ippiVLCEncode4x4_JPEGXR_16s1u_C1R(const Ipp16s* pSrc, Ipp32u srcStep, IppBool chroma, Ipp32u numModelBits, Ipp8u** ppBitStream, Ipp32u* pBitsBuf, Ipp32u* pNumBits, Ipp32u* pNumNonZero, IppiVLCState_JPEGXR* pVLCState);

IppStatus ippiVLCEncodeDC444_JPEGXR_32s1u_C1R(const Ipp32s* pSrcCoeffsScan, Ipp32s numCoeffs, IppBool chroma, Ipp8u** ppBitStream, Ipp32u* pBitsBuf, Ipp32u* pNumBits, IppiVLCState_JPEGXR* pVLCState);

IppStatus ippiVLCEncodeDC422_JPEGXR_32s1u_C1R(const Ipp32s* pSrcCoeffsScan[14], Ipp32s numCoeffs, Ipp8u** ppBitStream, Ipp32u* pBitsBuf, Ipp32u* pNumBits, IppiVLCState_JPEGXR* pVLCState);

IppStatus ippiVLCEncodeDC420_JPEGXR_32s1u_C1R(const Ipp32s* pSrcCoeffsScan[6], Ipp32s numCoeffs, Ipp8u** ppBitStream, Ipp32u* pBitsBuf, Ipp32u* pNumBits, IppiVLCState_JPEGXR* pVLCState);

Parameters

pSrc

Pointer to to the source 4x4 block of samples.

srcStep

Distance in bytes between starts of consecutive lines in the source image.

pSrcCoeffsScan

Pointer to to the source vector of DC coefficients scanned.

chroma

Channel type flag: ippFalse - luma channel, ippTrue - chroma channel.

numModelBits

Maximal number of bits to encode.

numTrimBits

Number of bits to trim.

pDstResidual

Pointer to the destination prediction residuals.

ppBitStream

Pointer to the moving pointer to the memory using for destination bitstream.

pBitsBuf

Pointer to the prefetch buffer with encoded bits that are not written into the bitstream.

pNumBits

Number of valid bits in the prefetch buffer.

pNumNonZero

Pointer to the number of coefficients with non-zero model bits.

pVLCState

Pointer to the VLC state structure.

Description

The functions ippiVLCEncode are declared in the ippj.h file.

These functions perform entropy encoding of 4x4 block or DC samples with or without prediction residual calculation.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error condition if one of the specified pointers isNULL.

ippStsRangeErr

Indicates an error condition if pNumBits is greater than 32 or numTrimBits is greater than 15.

Submit feedback on this help topic

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