DecodeCBProgrAttach_JPEG2K

Attaches the buffer with data for progressive decoding.

Syntax

IppStatus ippiDecodeCBProgrAttach_JPEG2K_32s_C1R(Ipp32s* pDst, int dstStep, IppiSize codeBlockSize, IppiDecodeCBProgrState_JPEG2K* pState, IppiWTSubband subband, int sfBits, int codeStyleFlags);

Parameters

pDst

Pointer to the destination buffer.

dstStep

Step in bytes throught the destination buffer.

codeBlockSize

Size of the codeblock.

pState

Pointer to the decoder state structure.

subband

Wavelet transform subband contained the given code block. Possible values are listed in the Table “Subband Parameter for the JPEG2000 Entropy Coder Functions”.

sfBits

Number of significant bits in code-block.

codeStyleFlags

Specifies the options for encoding procedure. The possible values are listed in the Table “CodeStyleFlag Argument for the JPEG2000 Entropy Coder Functions”.

Description

The function ippiDecodeCBProgrAttach_JPEG2K is declared in the ippj.h file. This function attaches a destination buffer pDst for the code-block rectangle and fix its parameters to perform the progressive decoding.

Caution iconCaution

The image data buffer should not be moved in memory and should not be freed during whole decoding procedure, that is until the last step of decoding progression and damage correction will be completed.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error if one of the specified pointers is NULL.

ippStsStepErr

Indicates an error condition if the value of dstStep is zero or negative.

ippStsContextMatchErr

Indicates an error condition if a pointer to the invalid structure is passed.

Submit feedback on this help topic

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