12 #if defined(PFCIMAGEFILEDLL_LIBRARY) 13 # define PFCIMAGEFILEDLLSHARED_EXPORT __declspec(dllexport) 15 # define PFCIMAGEFILEDLLSHARED_EXPORT __declspec(dllimport) 18 # define PFCIMAGEFILEDLLSHARED_EXPORT 69 PFCImageFile(
int width,
int height,
int bytes_per_pixel,
int stride);
78 PFC_FILE_LOAD_STATUS LoadImageFile(
const char *filename,
bool bConvertToSRGB,
const char *iccFolderPath);
86 bool SaveImageFile(
const char *filename,
int jpegQuality,
bool bConvertToOriginalColorSpace,
bool bEmbedOriginalMetadata);
87 void AllocBuffer(
int width,
int height,
int bytes_per_pixel,
int stride);
94 unsigned char *raw_image = NULL;
110 PFC_FILE_LOAD_STATUS read_jpeg_file(
const char *filename,
bool bConvertToSRGB,
const char *iccFolderPath);
111 int write_jpeg_file(
const char *filename,
int quality,
bool bConvertToOriginalColorSpace,
bool bEmbedOriginalMetadata );
112 bool ConvertToSRGB();
113 bool ConvertFromSRGBToOriginal();
114 bool applyColorTransform(
void* hTransform);
116 bool write_rawdump(
const char *basename);
118 void* hTransformToSRGB;
119 void* hTransformSRGBToOriginal;
120 unsigned int embeddedICCLen;
121 unsigned char* embeddedICCBuf;
123 bool bIgnoreNonembeddedIcc;
125 std::string originalPath;
128 #endif // PFCIMAGEFILE_H
Error: failed to convert to sRGB.
PFCImageFile Class to encapsulate file handling.
PFC_FILE_LOAD_STATUS
Return status values.