VLCEncodeOne

Performs VLC encoding of a single element.

Syntax

ippsVLCEncodeOne_16s1u (Ipp16s src, Ipp8u** ppDst, int* pDstBitsOffset, const IppsVLCEncodeSpec_32s* pVLCSpec);

Parameters

src

Source value.

ppDst

Double pointer to the destination bitstream.

pDstBitsOffset

Pointer to the input/output bit position in the pDst.

pVLCSpec

Pointer to the VLC encoder specification structure.

Description

The function ippsVLCEncodeOne is declared in the ippdc.h file. This function encodes a single element src and stores the result in the destination buffer pDst. After encoding the function shifts the pDst pointer by the number of successfully written bytes. The function updates pDstBitsOffset setting it to the actual bit position in the destination buffer.

The function ippsVLCEncodeOne uses 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.

ippStsVLCInputDataErr

Indicates an error if incorrect input is used.

Submit feedback on this help topic

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