nn::jpeg::CTR::JpegMpEncoder::SetUserMakerNote Member Function

Syntax

#include <nn/jpeg.h>

void SetUserMakerNote(
     const u8 * pBuffer,
     size_t size
);

Arguments

Name Description
in pBuffer Specifies the data to embed. Specify NULL to clear the value.
in size Specifies the size in bytes of the data to embed. Specify 0 to clear this value.

Return Values

None.

Description

Registers various pieces of data to embed in the MakerNote part of a JPEG file.

To get embedded data, first decode the image or extract its EXIF information, and then call the JpegMpDecoder::GetLastUserMakerNotePointer and JpegMpDecoder::GetLastUserMakerNoteSize functions.

Call this function before calling the encoding function. Do not destroy the data to embed until after the encoding function completes. The values specified by this function are cleared after the encoding function completes, regardless of whether the encoding function succeeded or failed. When encoding multiple times, you must call this function before each encoding function call. The values specified by this function are also cleared if you specify NULL for the pBuffer argument, if you specify 0 for the size argument, or if you reinitialize the encoder object using the Initialize function.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL