SetOption

nn::jpeg::CTR::JpegMpDecoder::SetOption Member Function

Syntax

#include <nn/jpeg.h>

void SetOption(
     u32 option
);

Parameters

Name Description
in option Specifies the options. Values that can be specified are the bitwise OR of DecoderOption values. Specify JPEG_DECODER_OPTION_NONE (0) to restore default behavior of the decoding function.

Return Values

None.

Description

Specifies options for JPEG decoding.

You can change the behavior of decoding functions (StartJpegDecoder, StartJpegDecoderShrink, StartMpDecoderLR) by specifying options.

The options are enabled for two primary images when decoding with StartMpDecoderLR.

Call this function before calling the decoding function. The value specified by this function is cleared after the decoding function completes, regardless of whether the decoding function succeeded or failed. When decoding multiple times, you must call this function before each decoding function call. The values specified by this function are cleared if you reinitialize the decoder object using the Initialize function.

If this function is repeatedly called before calling a decoding function, the last specification is enabled.

Revision History

2010/10/21
Added Description.
2010/08/16
Initial version.

CONFIDENTIAL