nn::jpeg::CTR::JpegMpEncoder::SetDateTime Member Function#include <nn/jpeg.h>
void SetDateTime(
const char * pBuffer
);
| Name | Description | |
|---|---|---|
| in | pBuffer | Specify the date and time. Use a string with the format YYYY:MM:DD HH:MM:DD terminated with 0x00, for a total of 20 characters.Specify NULL to clear the value. |
Registers the date and time an image was taken, for embedding in the JPEG file.
This information is registered as the IFD0's DateTime and as the ExifIFD's DateTimeOriginal and DateTimeDigitized tags. The default is not to register, in which case the encoding function calls GetDateTimeNow and registers the current time when it encodes.
Call this function before calling the encoding function. 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, or if you reinitialize the encoder object using the Initialize function.
CONFIDENTIAL