digiKam
Loading...
Searching...
No Matches
drawinfo.h
Go to the documentation of this file.
1/* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2007-05-02
7 * Description : RAW file identification information container
8 * Note: this container permit to not expose the rest of
9 * digiKam code to libraw API and use Qt internal
10 * containers when possible.
11 *
12 * SPDX-FileCopyrightText: 2007-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
13 *
14 * SPDX-License-Identifier: GPL-2.0-or-later
15 *
16 * ============================================================ */
17
18#pragma once
19
20// Qt includes
21
22#include <QByteArray>
23#include <QString>
24#include <QDateTime>
25#include <QSize>
26#include <QDebug>
27#include <QImage>
28
29// Local includes
30
31#include "digikam_export.h"
32
33namespace Digikam
34{
35
36class DIGIKAM_EXPORT DRawInfo
37{
38
39public:
40
45 {
46 ORIENTATION_NONE = 0,
47 ORIENTATION_180 = 3,
48 ORIENTATION_Mirror90CCW = 4,
49 ORIENTATION_90CCW = 5,
50 ORIENTATION_90CW = 6
51 };
52
53public:
54
58 explicit DRawInfo();
59
63 ~DRawInfo() = default;
64
65public:
66
70 bool hasIccProfile = false;
71
75 bool isDecodable = false;
76
80 int rawColors = -1;
81
85 int rawImages = -1;
86
90 unsigned int blackPoint = 0;
91
95 unsigned int blackPointCh[4] = { 0 };
96
100 unsigned int whitePoint = 0;
101
105 unsigned int topMargin = 0;
106
110 unsigned int leftMargin = 0;
111
115 ImageOrientation orientation = ORIENTATION_NONE;
116
120 float sensitivity = -1.0F;
121
125 float exposureTime = -1.0F;
126
130 float aperture = -1.0F;
131
135 float focalLength = -1.0F;
136
141 float pixelAspectRatio = 1.0F;
142
147 float baselineExposure = -999.0F;
148
153 float ambientTemperature = -1000.0F;
154
159 float ambientHumidity = -1000.0F;
160
165 float ambientPressure = -1000.0F;
166
171 float ambientWaterDepth = 1000.0F;
172
177 float ambientAcceleration = -1000.0F;
178
183 float ambientElevationAngle = -1000.0F;
184
189 int flashUsed = -1;
190
195 int meteringMode = -1;
196
201 int exposureProgram = -1;
202
207 float exposureIndex = -1.0F;
208
212 double daylightMult[3] = { 0.0 };
213
217 double cameraMult[4] = { 0.0 };
218
222 float cameraColorMatrix1[3][4];
223 float cameraColorMatrix2[3][4];
224 float cameraXYZMatrix[4][3];
225
229 double latitude = 0.0F;
230 double longitude = 0.0F;
231 double altitude = 0.0F;
232 bool hasGpsInfo = false;
233
237 QString colorKeys;
238
242 QString make;
243
247 QString model;
248
252 QString owner;
253
257 QString software;
258
262 QString firmware;
263
267 QString description;
268
272 unsigned int serialNumber = 0;
273
278
282 QString DNGVersion;
283
288
293
297 QString imageID;
298
303
308
312 QDateTime dateTime;
313
318
323
327 QSize fullSize;
328
333
337 QByteArray xmpData;
338
342 QByteArray iccData;
343
347 QByteArray thumbnail;
348
352 QString lensModel;
353 QString lensMake;
354 QString lensSerial;
355 int focalLengthIn35mmFilm = -1;
356 float maxAperture = -1.0F;
357};
358
360QDebug operator<<(QDebug dbg, const DRawInfo& c);
361
362} // namespace Digikam
Definition drawinfo.h:37
QSize thumbSize
Definition drawinfo.h:322
~DRawInfo()=default
QSize fullSize
Definition drawinfo.h:327
QDateTime dateTime
Definition drawinfo.h:312
QString firmware
Definition drawinfo.h:262
QString uniqueCameraModel
Definition drawinfo.h:287
QString owner
Definition drawinfo.h:252
QString description
Definition drawinfo.h:267
ImageOrientation
Definition drawinfo.h:45
QSize imageSize
Definition drawinfo.h:317
QString imageID
Definition drawinfo.h:297
QString localizedCameraModel
Definition drawinfo.h:292
QString lensModel
Definition drawinfo.h:352
QString filterPattern
Definition drawinfo.h:277
QString DNGVersion
Definition drawinfo.h:282
QString originalRawFileName
Definition drawinfo.h:307
QString software
Definition drawinfo.h:257
QString lensMake
Definition drawinfo.h:353
QString lensSerial
Definition drawinfo.h:354
QByteArray thumbnail
Definition drawinfo.h:347
QSize outputSize
Definition drawinfo.h:332
QByteArray iccData
Definition drawinfo.h:342
QString rawDataUniqueID
Definition drawinfo.h:302
QString colorKeys
Definition drawinfo.h:237
QByteArray xmpData
Definition drawinfo.h:337
QString make
Definition drawinfo.h:242
QString model
Definition drawinfo.h:247
Definition datefolderview.cpp:34
QDebug operator<<(QDebug dbg, const DbEngineParameters &p)
Definition dbengineparameters.cpp:930