Options used when decoding.
The default value is JPEG_DECODER_OPTION_NONE (0).
You can specify values that are the bitwise logical sum of these constants using JpegMpDecoder::SetOption.
- JPEG_DECODER_OPTION_NONE
Equal to 0, you can clear options by specifying this one by itself. -
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. This results in an error under the default behavior of the decoding functions. (The error code returned by JpegMpDecoder::GetLastError is JPEG_DECODER_ERROR_DHT_NOT_FOUND unless another error occurs.)
This option must be specified for encoded JPEG data for where DHT has not been recorded by the JpegMpEncoder class. - JPEG_DECODER_OPTION_MATCH_WIDTH_HEIGHT
Decoding is performed only if the image size matches the specified size; otherwise, an error results. The error code returned by (JpegMpDecoder::GetLastError will be JPEG_DECODER_ERROR_WIDTH_HEIGHT_DIFFERENT unless another error occurs.).
Under the default operation of the decoding functions, decoding is only performed when the values are within the specified range.
The return value of JpegMpDecoder::GetOption is the bitwise OR of these constants.