I need a C++ module that creates MPO files. These are JPEG/EXIF images which contain multiple images and APP2 extensions. In particular it must create disparity type MPO images. The image must be fully standards compliant to both the EXIF and the MPO standards.
It must also contain all the fields (EXIF and MPO) that are present in the attached sample file.
The C++ module must be in the form of a C++ object. It must take in a buffer and image dimensions using the following prototype:
bool WriteMPO(unsigned char* buffer, long width, long height, long stride, char* filename);
The module will write the MPO file out to a filename with the passed in filename. The code should be well commented and free of bugs including memory leaks.
## Deliverables
The routines must be provided as a standalone object (cpp file and header) which is has no dependencies (other than on the standard C libraries). Code should be commented.
it must not contain any GPL'd or LGPL'd code.
Code must compile in Visual C++ Express 2008. Standards compliant code is preferred.