DecodeGetBufSize_JPEG2K

Computes the size of the work buffer for decoding routine.

Syntax

IppStatus ippiDecodeGetBufSize_JPEG2K(IppiSize codeBlockMaxSize, int* pSize);

Parameters

codeBlockMaxSize

Maximum size of code block in pixels.

pSize

Pointer to the variable that returns the size of the work buffer.

Description

The function ippiDecodeGetBufSize_JPEG2K is declared in the ippj.h file. This function computes the size (in bytes) of the work buffer that corresponds to the specified maximum size of a code block (in pixels).

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsSizeErr

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

Submit feedback on this help topic

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