VLCEncodeEscBlock_AAC

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

Syntax

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

Parameters

pInputData

Pointer to the array of source values.

len

Size of values array pInputData.

ppBitStream

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

pBitOffset

Pointer 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_AAC is declared in the ippac.h header file. The function encodes an array of values from pInputData into destination ppBitstream and advance 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_AAC, rearrange inputTable before initialization in the same way as described in the description of ippsVLCDecodeEscBlock_AAC with one exception (because the large absolute value is equal to 16):

value = (first_sample_value << 6) + (second_sample_value + 16).

The function ippsVLCEncodeEscBlock_AAC_16s1u is used in the float-point and fixed-point versions of AAC 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.