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 primary 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 actually get the information included in EXIF, call this function first, and after it has succeeded, use the GetLast functions below.

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.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL