nn::jpeg::CTR::JpegMpDecoder::ExtractExif Member Function#include <nn/jpeg.h>
bool ExtractExif(
const u8 * src,
size_t srcSize,
bool extractThumbnail
);
| Name | Description | |
|---|---|---|
| in | src | Specifies the JPEG data to decode. |
| in | srcSize | Specifies the size of src in bytes. |
| in | extractThumbnail | Specify true to extract the thumbnail image size.Specify false to extract the primary image size.Fails if true is specified but no thumbnail is found. |
true on success. Even if no Exif information exists this function will return true if it is possible to obtain the image size.false on failure. Use the GetLastError function to get the reason for failure. Extracts Exif information.
Because this function does not decode the image, it can get information more quickly than the StartJpegDecoder function.
To actually get the information included in EXIF, call this function first, and after it has succeeded, use the GetLast functions below.
GetLastDateTime GetLastSoftwarePointer GetLastSoftwareLength GetLastUserMakerNotePointer GetLastUserMakerNoteSize GetLastTwlPhotoMakerNote GetLastTwlUserMakerNotePointer GetLastTwlUserMakerNoteSize GetLastImageUid GetLastOrientation Use the GetLastWidth and GetLastHeight functions to get the image size of either the primary or thumbnail images.
Image decoding might fail even if this function succeeds.
CONFIDENTIAL