KDcraw

dcrawinfocontainer.h
1/*
2 SPDX-FileCopyrightText: 2007-2015 Gilles Caulier <caulier dot gilles at gmail dot com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#ifndef DCRAW_INFO_CONTAINER_H
8#define DCRAW_INFO_CONTAINER_H
9
10// Qt includes
11
12#include <QString>
13#include <QDateTime>
14#include <QSize>
15#include <QDebug>
16
17// Local includes
18
19#include "libkdcraw_export.h"
20
21namespace KDcrawIface
22{
23
24/** A container for RAW image information
25 */
26class LIBKDCRAW_EXPORT DcrawInfoContainer
27{
28
29public:
30
31 /** The RAW image orientation values
32 */
34 {
35 ORIENTATION_NONE = 0,
36 ORIENTATION_180 = 3,
37 ORIENTATION_Mirror90CCW = 4,
38 ORIENTATION_90CCW = 5,
39 ORIENTATION_90CW = 6
40 };
41
42public:
43
44 /** Standard constructor */
46
47 /** Standard destructor */
48 virtual ~DcrawInfoContainer();
49
50 /** Return 'true' if container is empty, else 'false' */
51 bool isEmpty();
52
53public:
54
55 /** True if RAW file include an ICC color profile. */
57 /** True is RAW file is decodable by dcraw. */
59
60 /** The number of RAW colors. */
62
63 /** The number of RAW images. */
65
66 /** Black level from Raw histogram. */
67 unsigned int blackPoint;
68
69 /** Channel black levels from Raw histogram. */
70 unsigned int blackPointCh[4];
71
72 /** White level from Raw histogram. */
73 unsigned int whitePoint;
74
75 /** Top margin of raw image. */
76 unsigned int topMargin;
77
78 /** Left margin of raw image. */
79 unsigned int leftMargin;
80
81 /** The raw image orientation */
83
84 /** The sensitivity in ISO used by camera to take the picture. */
86
87 /** ==> 1/exposureTime = exposure time in seconds. */
89 /** ==> Aperture value in APEX. */
90 float aperture;
91 /** ==> Focal Length value in mm. */
93 /** The pixel Aspect Ratio if != 1.0. NOTE: if == 1.0, dcraw do not show this value. */
95
96 /** White color balance settings. */
97 double daylightMult[3];
98 /** Camera multipliers used for White Balance adjustments */
99 double cameraMult[4];
100
101 /** Camera Color Matrix */
102 float cameraColorMatrix1[3][4];
103 float cameraColorMatrix2[3][4];
104 float cameraXYZMatrix[4][3];
105
106 /** The used Color Keys */
108
109 /** The camera maker. */
111 /** The camera model. */
113 /** The artist name who have picture owner. */
115 /** The demosaising filter pattern. */
117 /** The DNG version. NOTE: it is only shown with DNG RAW files. */
119
120 /** Date & time when the picture has been taken. */
122
123 /** The image dimensions in pixels. */
125
126 /** The thumb dimensions in pixels. */
128
129 /** The full RAW image dimensions in pixels. */
131
132 /** The output dimensions in pixels. */
134};
135
136//! qDebug() stream operator. Writes container @a c to the debug output in a nicely formatted way.
137LIBKDCRAW_EXPORT QDebug operator<<(QDebug dbg, const DcrawInfoContainer& c);
138
139} // namespace KDcrawIface
140
141#endif /* DCRAW_INFO_CONTAINER_H */
A container for RAW image information.
QString owner
The artist name who have picture owner.
float sensitivity
The sensitivity in ISO used by camera to take the picture.
QSize fullSize
The full RAW image dimensions in pixels.
QDateTime dateTime
Date & time when the picture has been taken.
ImageOrientation orientation
The raw image orientation.
QSize thumbSize
The thumb dimensions in pixels.
bool isDecodable
True is RAW file is decodable by dcraw.
QString DNGVersion
The DNG version.
float focalLength
==> Focal Length value in mm.
unsigned int whitePoint
White level from Raw histogram.
QString filterPattern
The demosaising filter pattern.
bool hasIccProfile
True if RAW file include an ICC color profile.
QSize outputSize
The output dimensions in pixels.
int rawImages
The number of RAW images.
QSize imageSize
The image dimensions in pixels.
unsigned int leftMargin
Left margin of raw image.
unsigned int blackPoint
Black level from Raw histogram.
float pixelAspectRatio
The pixel Aspect Ratio if != 1.0.
unsigned int topMargin
Top margin of raw image.
float aperture
==> Aperture value in APEX.
ImageOrientation
The RAW image orientation values.
int rawColors
The number of RAW colors.
QString colorKeys
The used Color Keys.
float exposureTime
==> 1/exposureTime = exposure time in seconds.
Main namespace of libKDcraw.
QDebug operator<<(QDebug dbg, const DcrawInfoContainer &c)
qDebug() stream operator. Writes container c to the debug output in a nicely formatted way.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Apr 27 2024 22:13:57 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.