GetLastError

nn::jpeg::CTR::JpegMpEncoder::GetLastError Member Function

Syntax

#include <nn/jpeg.h>

s32 GetLastError() const;

Parameters

None.

Return Values

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

Description

Gets the cause of the error generated by the immediately previous call to the StartMpEncoderFirst, StartMpEncoderNext, or StartMpEncoderLR functions.

Revision History

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

CONFIDENTIAL