DecodeGITInit

Initializes the GIT decoding state structure.

Syntax

IppStatus ippsDecodeGITInit_8u (int maxDstLen, IppGITState_8u* pGITState);

Parameters

maxDstLen

Maximum length of the destination buffer.

pGITState

Pointer to memory allocated for the GIT decoding state structure.

Description

The function ippsDecodeGITInit is declared in the ippdc.h file. This function initializes the GIT decoding state structure pGITState in the external buffer. The size of this buffer must be computeded by the function ippsDecodeGITGetSize. Alternatively this structure can be initialized by the function ippsDecodeGITInitAlloc.

The size of the GIT decoding state structure depends on the value of the parameter maxDstLen, 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.

Note iconNote

The parameter maxDstLen of the ippsDecodeGITInit and ippsDecodeGITGetSize functions must be the same to avoid an error in the function ippsDecodeGIT.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error if the pointer pGITState is NULL.

ippStsSizeErr

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

Submit feedback on this help topic

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