nn::jpeg::CTR::JpegMpDecoder::ExtractExif Member Function

Syntax

#include <nn/jpeg.h>

bool ExtractExif(
     const u8 * src,
     size_t srcSize,
     bool extractThumbnail
);

Arguments

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 main image size.
Fails if true is specified but no thumbnail is found.

Return Values

Returns true on success. Even if no Exif information exists this function will return true if it is possible to obtain the image size. Returns false on failure. Use the GetLastError function to get the reason for failure.

Description

Extracts Exif information.

Because this function does not decode the image, it can get information more quickly than the StartJpegDecoder function.

To get the information actually included in Exif, use one of the GetLast functions listed below after this function has succeeded.
GetLastDateTime
GetLastSoftwarePointer
GetLastSoftwareLength
GetLastUserMakerNotePointer
GetLastUserMakerNoteSize
GetLastTwlPhotoMakerNote
GetLastTwlUserMakerNotePointer
GetLastTwlUserMakerNoteSize
GetLastImageUid
GetLastOrientation
・GetLastGpsData

Use the GetLastWidth and GetLastHeight functions to get the image size of either the main or thumbnail images.

Image decoding might fail even if this function succeeds.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL