GetLastError

nn::jpeg::CTR::JpegMpDecoder::GetLastError Member Function

Syntax

#include <nn/jpeg.h>

s32 GetLastError() const;

Parameters

None.

Return Values

Returns JPEG_DECODER_ERROR_NONE (0) if the previous encoding process succeeded.Also returns 0 when the decoder object has just been initialized or reinitialized.
Returns a non-zero error code (DecoderErrorCode) if the function fails.

Description

Gets the reason for failure of the previous decoding operation.

The reason for failure is updated after calls to the following functions (the value is 0 if these functions succeed).

Revision History

2010/10/22
Added a link to DecoderErrorCode.
2010/08/16
Initial version.

CONFIDENTIAL