Calculates the number of bits necessary for encoding in MP3 format.
IppStatus ippsVLCCountEscBits_MP3_16s32s(const Ipp16s* pInputData, int len, int linbits, Ipp32s* pCountBits, const IppsVLCEncodeSpec_32s* pVLCSpec);
pInputData |
Pointer to the array of source values. |
len |
Size of values array pInputData. |
linbits |
Length of escape sequence. |
pCountBits |
Pointer to calculated length in bits to encode pInputData. |
pVLCSpec |
Pointer to VLCEncoder specification structure. |
The function ippsVLCCountEscBits_MP3 is declared in the ippac.h header file. The function calculates the number of bits necessary for encoding source data in pInputData, using the VLCEncoder specification structure built by the function ippsVLCEncodeInit_32s or ippsVLCEncodeInitAlloc_32s from data compression domain. To use the function ippsVLCCountEscBits_MP3, rearrange inputTable before initialization in the same way as described in the description of ippsVLCDecodeEscBlock_MP3 with one exception (because the large absolute value is equal to 15):
value= (first_sample_value << 5) + (second_sample_value + 15).
The function ippsVLCCountEscBits_MP3_16s32s is used in the float-point and fixed-point versions of MP3 encoder included into IPP Samples. See introduction to this section.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when one of the specified pointers is NULL. |
ippStsContextMatchErr |
Indicates an error when pVLCSpec structure does not match the operation. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.