

void SSP_SetJpegEncoderMakerNoteEx(SSPJpegMakernote tag, u8 *buffer, u16 size);
| tag | Specifies the type of data items to embed.SSP_MAKERNOTE_PHOTO indicates data for the DSi camera, and SSP_MAKERNOTE_USER indicates data for applications. |
| buffer | Data to embed. |
| size | Size of data to embed. |
None.
Registers each type of data to embed in the MakerNote part of a JPEG file.
There are two types of data that can be embedded: SSP_MAKERNOTE_PHOTO, which represents data for the DSi camera, and SSP_MAKERNOTE_USER, for the application embedding any data.
The data to embed should have an even number of bytes.
Maximum Size That Can Be Registered
The size of data that can be registered in the MakerNote depends on the overall size of the APP1 segment. The MakerNote is included in the Exif data and thus only represents a part of the APP1 segment, and this APP1 segment can only handle sizes up to 0xFFFF. As a result, the size of data that can be embedded in the MakerNote will vary with the size of the thumbnail and other data in the APP1 region. As a guideline, we recommend that when you encode 640x480 images to have attached thumbnails, YUV422 format, and quality 90, you use a size no greater than the total 0xE000.
Note:
After the SSP_StartJpegEncoder function completes, data set by this function is cleared, regardless of whether encoding succeeds or fails.
If multiple images are to be encoded, note that the data must be registered before each encoding.
2008/09/15 Initial version.
CONFIDENTIAL