bool CxImage::GetExifThumbnail(const char *filename, const char *outname, int type) { if (type == CXIMAGE_FORMAT_RAW) { CxImageRAW image; return image.GetExifThumbnail(filename, outname, type); } else { CxImageJPG image; return image.GetExifThumbnail(filename, outname, type); } }
bool CxImage::GetExifThumbnail(const TCHAR *filename, const TCHAR *outname, int32_t type) { switch (type){ #if CXIMAGE_SUPPORT_RAW case CXIMAGE_FORMAT_RAW: { CxImageRAW image; return image.GetExifThumbnail(filename, outname, type); } #endif //CXIMAGE_SUPPORT_RAW #if CXIMAGE_SUPPORT_JPG case CXIMAGE_FORMAT_JPG: { CxImageJPG image; return image.GetExifThumbnail(filename, outname, type); } #endif //CXIMAGE_SUPPORT_JPG default: return false; } }