FLCEncode_JPEGXR

Performs FLC encoding.

Syntax

IppStatus ippiFLCEncode4x4_JPEGXR_16s1u_C1R(const Ipp16s* pSrc, Ipp32u srcStep, const Ipp32s* pSrcResidual, Ipp8u** ppBitStream, Ipp32u* pBitsBuf, Ipp32u* pNumBits, Ipp32u numFlexBits, Ipp32u numTrimBits, IppBool acFlag);

IppStatus ippiFLCEncode4x4_JPEGXR_32s1u_C1R(const Ipp32s* pSrc, Ipp32u srcStep, const Ipp32s* pSrcResidual, Ipp8u** ppBitStream, Ipp32u* pBitsBuf, Ipp32u* pNumBits, Ipp32u numFlexBits, Ipp32u numTrimBits, IppBool acFlag);

Parameters

pSrc

Pointer to to the source 4x4 block of samples.

srcStep

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

pSrcResidual

Pointer to to the source 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

Pointer to number of valid bits in the prefetch buffer.

numFlexBits

Number of flexbits to encode.

numTrimBits

Number of bits to trim.

acFlag

Adaptive coding flag: if ippTrue - use residual data, if ippFalse - process only flexbits.

Description

The function ippiFLCEncode4x4_JPEGXR is declared in the ippj.h file.

These functions perform fixed length encoding of the 4x4 block of sample flexbits.

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 if numFlexBits or numTrimBits is greater than 15.

Submit feedback on this help topic

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