SSP_SetJpegEncoderDateTimeNow

Syntax


BOOL SSP_SetJpegEncoderDateTimeNow(void);

Arguments

None.

Return Values

Returns TRUE if successful.
Returns FALSE if it fails.

Description

Registers the current date and time, which will be embedded in the JPEG file as the date and time the photo was taken. Internally, this function calls the RTC_GetDateTime function and then performs processing equivalent to the SSP_SetJpegEncoderDateTime function, so the RTC_Init function must be called in advance. This function returns a nonzero value only when the RTC_GetDateTime function has failed.

This information is registered as the IFD0 DateTime, ExifIFD DateTimeOriginal and DateTimeDigitized tags.

Note: After the SSP_StartJpegEncoder function completes, date and time information set by this function are cleared, regardless of whether encoding succeeds or fails.
If multiple images are to be encoded, note that date and time information must be registered before each encoding.

See Also

RTC_Init
RTC_GetDateTime
SSP_StartJpegEncoder

Revision History

2008/11/04 Added a description of conditions under which date and time information is cleared.
2008/09/15 Initial version.


CONFIDENTIAL