nn::jpeg::CTR::JpegMpDecoder::GetMpIndex Member Function#include <nn/jpeg.h>
bool GetMpIndex(
MpIndex * pIndex,
const u8 * src,
size_t srcSize
);
| Name | Description | |
|---|---|---|
| out | pIndex | Specifies the buffer storing the MP Index IFD. The stored data has been converted to a format that is easier for the library to process, and thus the binary representation of a stored MP Index IFD differs from that of the original data. |
| in | src | Specifies the start of the MP-format data. The MP Index IFD only exists in the starting image, so specify the starting image here. |
| in | srcSize | Specifies the size of src in bytes. |
true on success. Returns false on failure.GetLastError function to get the reason for failure. Gets the MP Index IFD included in the data stored in MP format.
Obtained MP indices are accessed using functions such as GetMpEntry or GetMpAttribute. The region specified by the src and srcSize arguments must not be destroyed until the obtained MP indices are no longer needed.
This function only partially performs decoding and shared processing. Consequently, there are some functions you cannot call immediately after calling this function: the GetLastWidth, GetLastHeight, GetLastOutputBufferWidth, and GetLastOutputBufferHeight functions, and all functions that get EXIF information, such as the GetLastDateTime function. Calls to these functions will have undefined return values.
CONFIDENTIAL