GetMpEntry

nn::jpeg::CTR::JpegMpDecoder::GetMpEntry Member Function

Syntax

#include <nn/jpeg.h>

static bool GetMpEntry(
     MpEntry * pEntry,
     const MpIndex * pIndex,
     u32 index
);

Parameters

Name Description
out pEntry Specifies the buffer storing the MP entry.
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 entry differs from that of the original data.
in pIndex Specifies the MP Index IFD. To get this ahead of time, use the GetMpIndex function.
in index Specifies the storage order index within the MP entries.

Return Values

Returns true on success. Returns false on failure.
This is because this function ascertains whether the reason for failure is an invalid argument or an invalid MP entry.

Description

Gets an MP entry included in the data stored in MP format.

Gets one specified MP entry from among all MP entries. Specify the MP entry to get by its storage order index within all the MP entries. These begin from 0. This storage order is different from the individual image numbers in MP format. (The individual image numbers generally begin from 1, but there are sometimes cases where numbers are not sequential or are not assigned.)

Access the obtained MP entry using functions such as GetMpImageOffset or GetMpImageSize.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL