Changeset View
Changeset View
Standalone View
Standalone View
src/kexiv2_p.cpp
Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Line(s) | 118 | { | |||
---|---|---|---|---|---|
119 | if (!finfo.isWritable()) | 119 | if (!finfo.isWritable()) | ||
120 | { | 120 | { | ||
121 | qCDebug(LIBKEXIV2_LOG) << "File '" << finfo.fileName().toLatin1().constData() << "' is read only. Metadata not written."; | 121 | qCDebug(LIBKEXIV2_LOG) << "File '" << finfo.fileName().toLatin1().constData() << "' is read only. Metadata not written."; | ||
122 | return false; | 122 | return false; | ||
123 | } | 123 | } | ||
124 | 124 | | |||
125 | QStringList rawTiffBasedSupported, rawTiffBasedNotSupported; | 125 | QStringList rawTiffBasedSupported, rawTiffBasedNotSupported; | ||
126 | 126 | | |||
127 | // Raw files supported by Exiv2 0.21 | 127 | // Raw files supported by Exiv2 0.23 | ||
128 | rawTiffBasedSupported << QString::fromLatin1("dng") | 128 | rawTiffBasedSupported << QString::fromLatin1("dng") | ||
129 | << QString::fromLatin1("nef") | 129 | << QString::fromLatin1("nef") | ||
130 | << QString::fromLatin1("pef") | 130 | << QString::fromLatin1("pef") | ||
131 | << QString::fromLatin1("orf") | 131 | << QString::fromLatin1("orf") | ||
132 | << QString::fromLatin1("srw"); | 132 | << QString::fromLatin1("srw") | ||
133 | << QString::fromLatin1("cr2"); | ||||
133 | 134 | | |||
134 | if (Exiv2::testVersion(0,23,0)) | 135 | // Raw files not supported by Exiv2 0.23 | ||
135 | { | | |||
136 | rawTiffBasedSupported << QString::fromLatin1("cr2"); | | |||
137 | } | | |||
138 | | ||||
139 | // Raw files not supported by Exiv2 0.21 | | |||
140 | rawTiffBasedNotSupported << QString::fromLatin1("3fr") | 136 | rawTiffBasedNotSupported << QString::fromLatin1("3fr") | ||
141 | << QString::fromLatin1("arw") | 137 | << QString::fromLatin1("arw") | ||
142 | << QString::fromLatin1("dcr") | 138 | << QString::fromLatin1("dcr") | ||
143 | << QString::fromLatin1("erf") | 139 | << QString::fromLatin1("erf") | ||
144 | << QString::fromLatin1("k25") | 140 | << QString::fromLatin1("k25") | ||
145 | << QString::fromLatin1("kdc") | 141 | << QString::fromLatin1("kdc") | ||
146 | << QString::fromLatin1("mos") | 142 | << QString::fromLatin1("mos") | ||
147 | << QString::fromLatin1("raw") | 143 | << QString::fromLatin1("raw") | ||
148 | << QString::fromLatin1("sr2") | 144 | << QString::fromLatin1("sr2") | ||
149 | << QString::fromLatin1("srf") | 145 | << QString::fromLatin1("srf") | ||
150 | << QString::fromLatin1("rw2"); | 146 | << QString::fromLatin1("rw2"); | ||
151 | 147 | | |||
152 | if (!Exiv2::testVersion(0,23,0)) | | |||
153 | { | | |||
154 | rawTiffBasedNotSupported << QString::fromLatin1("cr2"); | | |||
155 | } | | |||
156 | | ||||
157 | QString ext = finfo.suffix().toLower(); | 148 | QString ext = finfo.suffix().toLower(); | ||
158 | 149 | | |||
159 | if (!writeRawFiles && (rawTiffBasedSupported.contains(ext) || rawTiffBasedNotSupported.contains(ext)) ) | 150 | if (!writeRawFiles && (rawTiffBasedSupported.contains(ext) || rawTiffBasedNotSupported.contains(ext)) ) | ||
160 | { | 151 | { | ||
161 | qCDebug(LIBKEXIV2_LOG) << finfo.fileName() | 152 | qCDebug(LIBKEXIV2_LOG) << finfo.fileName() | ||
162 | << "is a TIFF based RAW file, writing to such a file is disabled by current settings."; | 153 | << "is a TIFF based RAW file, writing to such a file is disabled by current settings."; | ||
163 | return false; | 154 | return false; | ||
164 | } | 155 | } | ||
▲ Show 20 Lines • Show All 568 Lines • Show Last 20 Lines |