/*!
Targa Image Code
 
 Bob Kuehne, rpk@blue-newt.com, 09/2005
 */

#include <string>

/*!
    Writes named 4-byte per-pixel image data to tga formatted file.
 
     \param[ in ]    name    Name of file to be created
     \param[ in ]    img     4-byte per-pixel image data
     \param[ in ]    width   Width of image data (pixels)
     \param[ in ]    height  Height of image data (pixels)
     \return                 true/false for success/failure
*/
bool saveTGA( std::string &name, const char * img, int width, int height);

/*!
Writes named 4-byte per-pixel image data to tga formatted file.
 
 \param[ in ]    img0    4-byte per-pixel image data
 \param[ in ]    img1    4-byte per-pixel image data
 \param[ in ]    width   Width of image data (pixels)
 \param[ in ]    height  Height of image data (pixels)
 \param[ out ]   npix    Number pixels different
 \param[ out ]   maxdiff Maximum delta between any pixel pair (total color diff, r+g+b)
 \return                 true/false for diff/no-diff
 */
bool diffImage( const char* img0, const char* img1, unsigned int width, unsigned int height,
                unsigned int & npix, unsigned int &maxdiff );
