EncodeInitAlloc_JPEG2K

Allocates memory and initializes an entropy encoder state structure.

Syntax

IppStatus ippiEncodeInitAlloc_JPEG2K(IppiEncodeState_JPEG2K** pState, IppiSize codeBlockMaxSize);

Parameters

pState

Pointer to variable that returns the pointer to allocated and initialized encoder state structure.

codeBlockMaxSize

Maximum size of code block in pixels.

Description

The function ippiEncodeInitAlloc_JPEG2K is declared in the ippj.h file. This function allocates and initializes the entropy encoder state structure that is used in the encoding procedures.

Return Values

ippStsNoErr

Indicates no error.

ippStsSizeErr

Indicates an error condition if the width or height of the code block has zero or negative value.

ippStsMemAllocErr

Indicates an error condition if memory allocation fails.

Submit feedback on this help topic

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