VLCEncodeEscBlock_MP3

Encodes an array of values into destination bitstream in MP3 format and advances bitstream pointer.

Syntax

IppStatus ippsVLCEncodeEscBlock_MP3_16s1u(const Ipp16s* pInputData, int len, int linbits, Ipp8u** ppBitStream, int* pBitOffset, const IppsVLCEncodeSpec_32s* pVLCSpec);

Parameters

pInputData

Pointer to the array of source values.

len

Size of values array pInputData.

linbits

Length of escape sequence.

ppBitStream

Pointer to pointer to the current byte in the bitstream buffer. ppBitStream is updated by the function.

pBitOffset

Ppointer to the bit position in the byte pointed by ppBitStream. pBitOffset is updated by the function.

pVLCSpec

Pointer to VLCEncoder specification structure.

Description

The function ippsVLCEncodeEscBlock_MP3is declared in the ippac.h header file. The function encodes an array of values from pInputData into destination Bitstream and advances the bitstream pointer, using the VLCEncoder specification structure built by the function ippsVLCEncodeInit_32s or ippsVLCEncodeInitAlloc_32s from data compression domain. To use the function ippsVLCEncodeEscBlock_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 ippsVLCEncodeEscBlock_MP3_16s1u is used in the float-point and fixed-point versions of MP3 encoder included into IPP Samples. See introduction to this section.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when one of the specified pointers is NULL.

ippStsBitOffsetErr

Indicates an error when pBitOffset is less than 0 or more than 7.

ippStsContextMatchErr

Indicates an error when pVLCSpec structure does not match the operation.

Submit feedback on this help topic

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