DecodeGITInitAlloc

Allocates memory and initializes the GIT decoding state structure.

Syntax

IppStatus ippsDecodeGITInitAlloc_8u (int maxSrcLen, int maxDstLen, IppGITState_8u** ppGITState);

Parameters

maxSrcLen

Maximum length of the source buffer.

maxDstLen

Maximum length of the destination buffer.

ppGITState

Double pointer to the GIT decoding state structure.

Description

The function ippsDecodeGITInitAlloc is declared in the ippdc.h file. This function allocates memory and initializes the GIT decoding state structure ppGITState. This structure is used by the function ippsDecodeGIT.

The size of the GIT decoding state structure depends on the value of the maxDstLen parameter, which sets the upper bound on the lengths of the source and destination buffers. In subsequent functions, do not specify a greater size of the buffers, as the functions will return an error message.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error if the pointer ppGITState is NULL.

ippStsSizeErr

Indicates an error if maxSrcLen or maxDstLen is less than or equal to 0.

Submit feedback on this help topic

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