digiKam
|
Public Types | |
enum | DNGBayerPattern { Unknown = 1 , LinearRaw , Standard , Fuji , Fuji6x6 , FourColor } |
Public Member Functions | |
int | backupRaw (DNGWriterHost &host, AutoPtr< dng_negative > &negative) |
void | cleanup () |
int | createNegative (AutoPtr< dng_negative > &negative, DRawInfo *const identify) |
int | debugExtractedRAWData (const QByteArray &rawData) |
QString | dngBayerPatternToString (int pattern) const |
dng_date_time | dngDateTime (const QDateTime &qDT) const |
QString | dngErrorCodeToString (int errorCode) const |
int | exifToolPostProcess () |
int | exportTarget (DNGWriterHost &host, AutoPtr< dng_negative > &negative, AutoPtr< dng_image > &image) |
bool | fujiRotate (QByteArray &rawData, DRawInfo &identify) const |
int | identMosaic (DRawInfo *const identify, DRawInfo *const identifyMake) |
int | importRaw (DRawInfo *const identify, DRawInfo *const identifyMake) |
Private (DNGWriter *const dd) | |
void | reset () |
int | storeExif (DNGWriterHost &host, AutoPtr< dng_negative > &negative, DRawInfo *const identify, DRawInfo *const identifyMake, DMetadata *const meta) |
int | storeMakernote (DNGWriterHost &host, AutoPtr< dng_negative > &negative, DRawInfo *const identify, DRawInfo *const identifyMake, DMetadata *const meta) |
int | storeXmp (DNGWriterHost &host, AutoPtr< dng_negative > &negative, DRawInfo *const identify, DRawInfo *const identifyMake, DMetadata *const meta) |
~Private () | |
Public Attributes | |
dng_rect | activeArea |
int | activeHeight |
int | activeWidth |
bool | backupOriginalRawFile |
DNGBayerPattern | bayerPattern |
bool | cancel |
QString | dngFilePath |
dng_exif * | exif |
Instance to Exif DNG SDK container. More... | |
QDateTime | fileDate |
uint32 | filter |
int | height |
QString | inputFile |
QFileInfo | inputInfo |
bool | jpegLossLessCompression |
bool | metaLoaded |
Set to true if metadata are properly loaded at Exif stage. More... | |
dng_date_time_info | orgDateTimeInfo |
QString | outputFile |
int | outputHeight |
QFileInfo | outputInfo |
int | outputWidth |
DNGWriter * | parent |
Parent class instance. More... | |
int | previewMode |
QByteArray | rawData |
bool | updateFileDate |
int | width |
|
explicit |
References reset(), and Digikam::Unknown.
Digikam::DNGWriter::Private::~Private | ( | ) |
int Digikam::DNGWriter::Private::backupRaw | ( | DNGWriterHost & | host, |
AutoPtr< dng_negative > & | negative | ||
) |
void Digikam::DNGWriter::Private::cleanup | ( | ) |
References Digikam::DNGWriter::outputFile().
int Digikam::DNGWriter::Private::createNegative | ( | AutoPtr< dng_negative > & | negative, |
DRawInfo *const | identify | ||
) |
References activeArea, activeHeight, activeWidth, bayerPattern, Digikam::DRawInfo::blackPoint, Digikam::DRawInfo::blackPointCh, Digikam::DRawInfo::cameraMult, Digikam::DRawInfo::cameraXYZMatrix, cancel, Digikam::DRawInfo::colorKeys, dngBayerPatternToString(), Digikam::DNGWriter::FILE_NOT_SUPPORTED, filter, FourColor, Fuji, Fuji6x6, inputInfo, LinearRaw, Digikam::DRawInfo::make, Digikam::Matrix::matrix(), Digikam::DRawInfo::model, Digikam::DRawInfo::orientation, Digikam::DRawInfo::ORIENTATION_180, Digikam::DRawInfo::ORIENTATION_90CCW, Digikam::DRawInfo::ORIENTATION_90CW, Digikam::DRawInfo::ORIENTATION_Mirror90CCW, outputHeight, outputWidth, Digikam::DNGWriter::PROCESS_CANCELED, Digikam::DNGWriter::PROCESS_CONTINUE, Digikam::DRawInfo::rawColors, Standard, and Digikam::DRawInfo::whitePoint.
Referenced by Digikam::DNGWriter::convert().
int Digikam::DNGWriter::Private::debugExtractedRAWData | ( | const QByteArray & | rawData | ) |
Code to hack RAW data extraction.
References Digikam::DNGWriter::PROCESS_CONTINUE, and Digikam::DNGWriter::PROCESS_FAILED.
QString Digikam::DNGWriter::Private::dngBayerPatternToString | ( | int | pattern | ) | const |
Referenced by createNegative().
dng_date_time Digikam::DNGWriter::Private::dngDateTime | ( | const QDateTime & | qDT | ) | const |
Referenced by storeExif().
QString Digikam::DNGWriter::Private::dngErrorCodeToString | ( | int | errorCode | ) | const |
Referenced by Digikam::DNGWriter::convert().
int Digikam::DNGWriter::Private::exifToolPostProcess | ( | ) |
References Digikam::ExifToolProcess::COPY_IPTC, Digikam::ExifToolProcess::COPY_MAKERNOTES, Digikam::ExifToolProcess::COPY_XMP, Digikam::ExifToolParser::copyTags(), Digikam::ExifToolProcess::CREATE_NEW_GROUPS, Digikam::ExifToolProcess::CREATE_NEW_TAGS, dngFilePath, Digikam::ExifToolParser::exifToolAvailable(), inputInfo, Digikam::DNGWriter::PROCESS_CONTINUE, Digikam::DNGWriter::PROCESS_FAILED, Digikam::ExifToolProcess::TRANS_ALL_IPTC, Digikam::ExifToolProcess::TRANS_ALL_XMP, and Digikam::ExifToolParser::translateTags().
Referenced by Digikam::DNGWriter::convert().
int Digikam::DNGWriter::Private::exportTarget | ( | DNGWriterHost & | host, |
AutoPtr< dng_negative > & | negative, | ||
AutoPtr< dng_image > & | image | ||
) |
References cancel, Digikam::digiKamVersion(), dngFilePath, fileDate, jpegLossLessCompression, Digikam::DNGWriter::MEDIUM, Digikam::DNGWriter::NONE, orgDateTimeInfo, outputInfo, previewMode, Digikam::DNGWriter::PROCESS_CANCELED, Digikam::DNGWriter::PROCESS_CONTINUE, Digikam::DFileOperations::setModificationTime(), updateFileDate, and width.
Referenced by Digikam::DNGWriter::convert().
bool Digikam::DNGWriter::Private::fujiRotate | ( | QByteArray & | rawData, |
DRawInfo & | identify | ||
) | const |
References Digikam::DRawInfo::orientation, Digikam::DRawInfo::ORIENTATION_Mirror90CCW, and Digikam::DRawInfo::outputSize.
Referenced by identMosaic().
int Digikam::DNGWriter::Private::identMosaic | ( | DRawInfo *const | identify, |
DRawInfo *const | identifyMake | ||
) |
References activeArea, activeHeight, activeWidth, bayerPattern, cancel, Digikam::DNGWriter::FILE_NOT_SUPPORTED, filter, Digikam::DRawInfo::filterPattern, FourColor, Fuji, Fuji6x6, fujiRotate(), height, LinearRaw, Digikam::DRawInfo::make, outputHeight, Digikam::DRawInfo::outputSize, outputWidth, Digikam::DNGWriter::PROCESS_CANCELED, Digikam::DNGWriter::PROCESS_CONTINUE, Digikam::DNGWriter::PROCESS_FAILED, Digikam::DRawInfo::rawColors, rawData, Standard, and width.
Referenced by Digikam::DNGWriter::convert().
int Digikam::DNGWriter::Private::importRaw | ( | DRawInfo *const | identify, |
DRawInfo *const | identifyMake | ||
) |
References Digikam::DRawInfo::blackPoint, Digikam::DRawInfo::cameraXYZMatrix, cancel, Digikam::DRawInfo::dateTime, dngFilePath, Digikam::DNGWriter::FILE_NOT_SUPPORTED, Digikam::DRawInfo::filterPattern, Digikam::DRawInfo::fullSize, Digikam::DRawInfo::imageSize, Digikam::DNGWriter::inputFile(), inputInfo, Digikam::DRawInfo::leftMargin, Digikam::DRawInfo::make, Digikam::DRawInfo::model, Digikam::DRawInfo::orientation, Digikam::DNGWriter::outputFile(), outputHeight, outputInfo, Digikam::DRawInfo::outputSize, outputWidth, parent, Digikam::DNGWriter::PROCESS_CANCELED, Digikam::DNGWriter::PROCESS_CONTINUE, Digikam::DNGWriter::PROCESS_FAILED, Digikam::DRawInfo::rawColors, rawData, Digikam::DRawInfo::topMargin, and Digikam::DRawInfo::whitePoint.
Referenced by Digikam::DNGWriter::convert().
void Digikam::DNGWriter::Private::reset | ( | ) |
int Digikam::DNGWriter::Private::storeExif | ( | DNGWriterHost & | host, |
AutoPtr< dng_negative > & | negative, | ||
DRawInfo *const | identify, | ||
DRawInfo *const | identifyMake, | ||
DMetadata *const | meta | ||
) |
References cancel, Digikam::digiKamVersion(), dngDateTime(), exif, fileDate, Digikam::MetaEngine::getDigitizationDateTime(), Digikam::MetaEngine::getExifTagLong(), Digikam::MetaEngine::getExifTagRational(), Digikam::MetaEngine::getExifTagString(), Digikam::MetaEngine::getItemDateTime(), Digikam::DNGWriter::inputFile(), Digikam::DMetadata::load(), Digikam::DRawInfo::make, metaLoaded, Digikam::DRawInfo::model, orgDateTimeInfo, parent, Digikam::DNGWriter::PROCESS_CANCELED, and Digikam::DNGWriter::PROCESS_CONTINUE.
Referenced by Digikam::DNGWriter::convert().
int Digikam::DNGWriter::Private::storeMakernote | ( | DNGWriterHost & | host, |
AutoPtr< dng_negative > & | negative, | ||
DRawInfo *const | identify, | ||
DRawInfo *const | identifyMake, | ||
DMetadata *const | meta | ||
) |
References cancel, metaLoaded, Digikam::DNGWriter::PROCESS_CANCELED, and Digikam::DNGWriter::PROCESS_CONTINUE.
Referenced by Digikam::DNGWriter::convert().
int Digikam::DNGWriter::Private::storeXmp | ( | DNGWriterHost & | host, |
AutoPtr< dng_negative > & | negative, | ||
DRawInfo *const | identify, | ||
DRawInfo *const | identifyMake, | ||
DMetadata *const | meta | ||
) |
References cancel, metaLoaded, Digikam::DNGWriter::PROCESS_CANCELED, and Digikam::DNGWriter::PROCESS_CONTINUE.
Referenced by Digikam::DNGWriter::convert().
dng_rect Digikam::DNGWriter::Private::activeArea |
Referenced by createNegative(), and identMosaic().
int Digikam::DNGWriter::Private::activeHeight |
Referenced by createNegative(), and identMosaic().
int Digikam::DNGWriter::Private::activeWidth |
Referenced by createNegative(), and identMosaic().
bool Digikam::DNGWriter::Private::backupOriginalRawFile |
DNGBayerPattern Digikam::DNGWriter::Private::bayerPattern |
Referenced by Digikam::DNGWriter::convert(), createNegative(), and identMosaic().
bool Digikam::DNGWriter::Private::cancel |
QString Digikam::DNGWriter::Private::dngFilePath |
Referenced by exifToolPostProcess(), exportTarget(), and importRaw().
dng_exif* Digikam::DNGWriter::Private::exif |
Instance to Exif DNG SDK container.
Referenced by Digikam::DNGWriter::convert(), and storeExif().
QDateTime Digikam::DNGWriter::Private::fileDate |
Referenced by exportTarget(), and storeExif().
uint32 Digikam::DNGWriter::Private::filter |
Referenced by createNegative(), and identMosaic().
int Digikam::DNGWriter::Private::height |
Referenced by Digikam::DNGWriter::convert(), and identMosaic().
QString Digikam::DNGWriter::Private::inputFile |
Referenced by Digikam::DNGWriter::inputFile(), and Digikam::DNGWriter::setInputFile().
QFileInfo Digikam::DNGWriter::Private::inputInfo |
Referenced by backupRaw(), createNegative(), exifToolPostProcess(), and importRaw().
bool Digikam::DNGWriter::Private::jpegLossLessCompression |
bool Digikam::DNGWriter::Private::metaLoaded |
Set to true if metadata are properly loaded at Exif stage.
Referenced by storeExif(), storeMakernote(), and storeXmp().
dng_date_time_info Digikam::DNGWriter::Private::orgDateTimeInfo |
Referenced by exportTarget(), and storeExif().
QString Digikam::DNGWriter::Private::outputFile |
Referenced by Digikam::DNGWriter::outputFile(), and Digikam::DNGWriter::setOutputFile().
int Digikam::DNGWriter::Private::outputHeight |
Referenced by createNegative(), identMosaic(), and importRaw().
QFileInfo Digikam::DNGWriter::Private::outputInfo |
Referenced by exportTarget(), and importRaw().
int Digikam::DNGWriter::Private::outputWidth |
Referenced by createNegative(), identMosaic(), and importRaw().
DNGWriter* Digikam::DNGWriter::Private::parent |
Parent class instance.
Referenced by backupRaw(), importRaw(), and storeExif().
int Digikam::DNGWriter::Private::previewMode |
Referenced by exportTarget(), Digikam::DNGWriter::previewMode(), and Digikam::DNGWriter::setPreviewMode().
QByteArray Digikam::DNGWriter::Private::rawData |
Referenced by Digikam::DNGWriter::convert(), identMosaic(), and importRaw().
bool Digikam::DNGWriter::Private::updateFileDate |
Referenced by exportTarget(), Digikam::DNGWriter::setUpdateFileDate(), and Digikam::DNGWriter::updateFileDate().
int Digikam::DNGWriter::Private::width |
Referenced by Digikam::DNGWriter::convert(), exportTarget(), and identMosaic().