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 
21 namespace KDcrawIface
22 {
23 
24 /** A container for RAW image information
25  */
26 class LIBKDCRAW_EXPORT DcrawInfoContainer
27 {
28 
29 public:
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 
42 public:
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 
53 public:
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. */
61  int rawColors;
62 
63  /** The number of RAW images. */
64  int rawImages;
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. */
85  float sensitivity;
86 
87  /** ==> 1/exposureTime = exposure time in seconds. */
88  float exposureTime;
89  /** ==> Aperture value in APEX. */
90  float aperture;
91  /** ==> Focal Length value in mm. */
92  float focalLength;
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.
137 LIBKDCRAW_EXPORT QDebug operator<<(QDebug dbg, const DcrawInfoContainer& c);
138 
139 } // namespace KDcrawIface
140 
141 #endif /* DCRAW_INFO_CONTAINER_H */
float exposureTime
==> 1/exposureTime = exposure time in seconds.
QString filterPattern
The demosaising filter pattern.
QDateTime dateTime
Date & time when the picture has been taken.
ImageOrientation
The RAW image orientation values.
unsigned int whitePoint
White level from Raw histogram.
A container for RAW image information.
ImageOrientation orientation
The raw image orientation.
float sensitivity
The sensitivity in ISO used by camera to take the picture.
QSize outputSize
The output dimensions in pixels.
float aperture
==> Aperture value in APEX.
QString colorKeys
The used Color Keys.
QSize imageSize
The image dimensions in pixels.
QDebug operator<<(QDebug dbg, const DcrawInfoContainer &c)
qDebug() stream operator. Writes container c to the debug output in a nicely formatted way...
unsigned int leftMargin
Left margin of raw image.
int rawColors
The number of RAW colors.
int rawImages
The number of RAW images.
QString DNGVersion
The DNG version.
bool isDecodable
True is RAW file is decodable by dcraw.
QSize fullSize
The full RAW image dimensions in pixels.
QString make
The camera maker.
QSize thumbSize
The thumb dimensions in pixels.
float focalLength
==> Focal Length value in mm.
unsigned int topMargin
Top margin of raw image.
QString model
The camera model.
unsigned int blackPoint
Black level from Raw histogram.
bool hasIccProfile
True if RAW file include an ICC color profile.
Main namespace of libKDcraw.
QString owner
The artist name who have picture owner.
float pixelAspectRatio
The pixel Aspect Ratio if != 1.0.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Sep 25 2021 22:36:20 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.