nn::jpeg::CTR::JpegMpDecoder::SetOption Member Function#include <nn/jpeg.h>
void SetOption(
u32 option
);
| Name | Description | |
|---|---|---|
| in | option | Specifies the options. The following constants can be combined in a bitwise OR. |
Specifies options for JPEG decoding.
You can change the behavior of the decoding function 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.
JPEG_DECODER_OPTION_ENABLE_DEFAULT_DHT
If no DHT (Huffman table) is found in the JPEG data, the library's standard Huffman table is used. The decoding function's default behavior produces an error.(If no other error has occurred, then GetLastError will return JPEG_DECODER_ERROR_DHT_NOT_FOUND as the error code.)
As of the present time, only the above-mentioned option has been implemented.
Specify 0 to return the decoding function to default behavior.
CONFIDENTIAL