Data Compression VLC functions

Variable length coding (VLC) is a data compression method that uses statistical modeling to define which values occur more frequently than others to build tables for subsequent encoding and decoding operations. Data in the bitstream is encoded with VLC table so that the shortest codes correspond to the most frequent values and the longer codes correspond to the less frequent values. Intel IPP functions use the structure IppsVLCTable for storing the VLC table:

struct VLCTable_32s { Ipp32s value, Ipp32s code, Ipp32s length; } typedef struct VLCTable_32s IppsVLCTable_32s

Here

value - the current code,

code - the actual bit code for the value,

length - the bit length of the value.

The value can be both positive and negative. The code denotes the length least significant bits in binary representation of the code value. Thus, valid lengths are within the range of 0 to 32. Note that you are responsible for specifying correct tables with prefix codes for values specified in the value field of the IppsVLCTable structure.


Submit feedback on this help topic

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