• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

libs/libkdcraw/libkdcraw

  • sources
  • kde-4.14
  • kdegraphics
  • libs
  • libkdcraw
  • libkdcraw
dcrawinfocontainer.cpp
Go to the documentation of this file.
1 
26 // Local includes
27 
28 #include "dcrawinfocontainer.h"
29 
30 namespace KDcrawIface
31 {
32 
33 DcrawInfoContainer::DcrawInfoContainer()
34 {
35  sensitivity = -1.0;
36  exposureTime = -1.0;
37  aperture = -1.0;
38  focalLength = -1.0;
39  pixelAspectRatio = 1.0; // Default value. This can be unavailable (depending of camera model).
40  rawColors = -1;
41  rawImages = -1;
42  hasIccProfile = false;
43  isDecodable = false;
44  daylightMult[0] = 0.0;
45  daylightMult[1] = 0.0;
46  daylightMult[2] = 0.0;
47  cameraMult[0] = 0.0;
48  cameraMult[1] = 0.0;
49  cameraMult[2] = 0.0;
50  cameraMult[3] = 0.0;
51  blackPoint = 0;
52 
53  for (int ch=0; ch<4; ch++)
54  {
55  blackPointCh[ch] = 0;
56  }
57 
58  whitePoint = 0;
59  topMargin = 0;
60  leftMargin = 0;
61  orientation = ORIENTATION_NONE;
62 
63  for (int x=0 ; x<3 ; x++)
64  {
65  for (int y=0 ; y<4 ; y++)
66  {
67  cameraColorMatrix1[x][y] = 0.0;
68  cameraColorMatrix2[x][y] = 0.0;
69  cameraXYZMatrix[y][x] = 0.0; // NOTE: see B.K.O # 253911 : [y][x] not [x][y]
70  }
71  }
72 }
73 
74 DcrawInfoContainer::~DcrawInfoContainer()
75 {
76 }
77 
78 bool DcrawInfoContainer::isEmpty()
79 {
80  if (make.isEmpty() &&
81  model.isEmpty() &&
82  filterPattern.isEmpty() &&
83  colorKeys.isEmpty() &&
84  DNGVersion.isEmpty() &&
85  exposureTime == -1.0 &&
86  aperture == -1.0 &&
87  focalLength == -1.0 &&
88  pixelAspectRatio == 1.0 &&
89  sensitivity == -1.0 &&
90  rawColors == -1 &&
91  rawImages == -1 &&
92  blackPoint == 0 &&
93  blackPointCh[0] == 0 &&
94  blackPointCh[1] == 0 &&
95  blackPointCh[2] == 0 &&
96  blackPointCh[3] == 0 &&
97  whitePoint == 0 &&
98  topMargin == 0 &&
99  leftMargin == 0 &&
100  !dateTime.isValid() &&
101  !imageSize.isValid() &&
102  !fullSize.isValid() &&
103  !outputSize.isValid() &&
104  !thumbSize.isValid() &&
105  cameraColorMatrix1[0][0] == 0.0 &&
106  cameraColorMatrix1[0][1] == 0.0 &&
107  cameraColorMatrix1[0][2] == 0.0 &&
108  cameraColorMatrix1[0][3] == 0.0 &&
109  cameraColorMatrix1[1][0] == 0.0 &&
110  cameraColorMatrix1[1][1] == 0.0 &&
111  cameraColorMatrix1[1][2] == 0.0 &&
112  cameraColorMatrix1[1][3] == 0.0 &&
113  cameraColorMatrix1[2][0] == 0.0 &&
114  cameraColorMatrix1[2][1] == 0.0 &&
115  cameraColorMatrix1[2][2] == 0.0 &&
116  cameraColorMatrix1[2][3] == 0.0 &&
117  cameraColorMatrix2[0][0] == 0.0 &&
118  cameraColorMatrix2[0][1] == 0.0 &&
119  cameraColorMatrix2[0][2] == 0.0 &&
120  cameraColorMatrix2[0][3] == 0.0 &&
121  cameraColorMatrix2[1][0] == 0.0 &&
122  cameraColorMatrix2[1][1] == 0.0 &&
123  cameraColorMatrix2[1][2] == 0.0 &&
124  cameraColorMatrix2[1][3] == 0.0 &&
125  cameraColorMatrix2[2][0] == 0.0 &&
126  cameraColorMatrix2[2][1] == 0.0 &&
127  cameraColorMatrix2[2][2] == 0.0 &&
128  cameraColorMatrix2[2][3] == 0.0 &&
129  cameraXYZMatrix[0][0] == 0.0 &&
130  cameraXYZMatrix[0][1] == 0.0 &&
131  cameraXYZMatrix[0][2] == 0.0 &&
132  cameraXYZMatrix[1][0] == 0.0 &&
133  cameraXYZMatrix[1][1] == 0.0 &&
134  cameraXYZMatrix[1][2] == 0.0 &&
135  cameraXYZMatrix[2][0] == 0.0 &&
136  cameraXYZMatrix[2][1] == 0.0 &&
137  cameraXYZMatrix[2][2] == 0.0 &&
138  cameraXYZMatrix[3][0] == 0.0 &&
139  cameraXYZMatrix[3][1] == 0.0 &&
140  cameraXYZMatrix[3][2] == 0.0 &&
141  orientation == ORIENTATION_NONE
142  )
143  {
144  return true;
145  }
146  else
147  {
148  return false;
149  }
150 }
151 
152 QDebug operator<<(QDebug dbg, const DcrawInfoContainer& c)
153 {
154  dbg.nospace() << "DcrawInfoContainer::sensitivity: " << c.sensitivity << ", ";
155  dbg.nospace() << "DcrawInfoContainer::exposureTime: " << c.exposureTime << ", ";
156  dbg.nospace() << "DcrawInfoContainer::aperture: " << c.aperture << ", ";
157  dbg.nospace() << "DcrawInfoContainer::focalLength: " << c.focalLength << ", ";
158  dbg.nospace() << "DcrawInfoContainer::pixelAspectRatio: " << c.pixelAspectRatio << ", ";
159  dbg.nospace() << "DcrawInfoContainer::rawColors: " << c.rawColors << ", ";
160  dbg.nospace() << "DcrawInfoContainer::rawImages: " << c.rawImages << ", ";
161  dbg.nospace() << "DcrawInfoContainer::hasIccProfile: " << c.hasIccProfile << ", ";
162  dbg.nospace() << "DcrawInfoContainer::isDecodable: " << c.isDecodable << ", ";
163  dbg.nospace() << "DcrawInfoContainer::daylightMult: " << c.daylightMult << ", ";
164  dbg.nospace() << "DcrawInfoContainer::cameraMult: " << c.cameraMult << ", ";
165  dbg.nospace() << "DcrawInfoContainer::blackPoint: " << c.blackPoint << ", ";
166  dbg.nospace() << "DcrawInfoContainer::whitePoint: " << c.whitePoint << ", ";
167  dbg.nospace() << "DcrawInfoContainer::topMargin: " << c.topMargin << ", ";
168  dbg.nospace() << "DcrawInfoContainer::leftMargin: " << c.leftMargin << ", ";
169  dbg.nospace() << "DcrawInfoContainer::orientation: " << c.orientation;
170  return dbg.space();
171 }
172 
173 } // namespace KDcrawIface
QSize::isValid
bool isValid() const
KDcrawIface::DcrawInfoContainer::exposureTime
float exposureTime
==> 1/exposureTime = exposure time in seconds.
Definition: dcrawinfocontainer.h:105
KDcrawIface::DcrawInfoContainer::filterPattern
QString filterPattern
The demosaising filter pattern.
Definition: dcrawinfocontainer.h:133
KDcrawIface::DcrawInfoContainer::dateTime
QDateTime dateTime
Date & time when the picture has been taken.
Definition: dcrawinfocontainer.h:138
KDcrawIface::DcrawInfoContainer::cameraMult
double cameraMult[4]
Camera multipliers used for White Balance adjustments.
Definition: dcrawinfocontainer.h:116
QDebug::nospace
QDebug & nospace()
KDcrawIface::DcrawInfoContainer::cameraColorMatrix2
float cameraColorMatrix2[3][4]
Definition: dcrawinfocontainer.h:120
KDcrawIface::DcrawInfoContainer::whitePoint
unsigned int whitePoint
White level from Raw histogram.
Definition: dcrawinfocontainer.h:90
KDcrawIface::DcrawInfoContainer
Definition: dcrawinfocontainer.h:43
KDcrawIface::DcrawInfoContainer::DcrawInfoContainer
DcrawInfoContainer()
Standard constructor.
Definition: dcrawinfocontainer.cpp:33
dcrawinfocontainer.h
===========================================================This file is a part of digiKam project htt...
KDcrawIface::DcrawInfoContainer::orientation
ImageOrientation orientation
The raw image orientation.
Definition: dcrawinfocontainer.h:99
KDcrawIface::DcrawInfoContainer::sensitivity
float sensitivity
The sensitivity in ISO used by camera to take the picture.
Definition: dcrawinfocontainer.h:102
KDcrawIface::DcrawInfoContainer::outputSize
QSize outputSize
The output dimensions in pixels.
Definition: dcrawinfocontainer.h:150
KDcrawIface::DcrawInfoContainer::aperture
float aperture
==> Aperture value in APEX.
Definition: dcrawinfocontainer.h:107
KDcrawIface::DcrawInfoContainer::daylightMult
double daylightMult[3]
White color balance settings.
Definition: dcrawinfocontainer.h:114
KDcrawIface::DcrawInfoContainer::colorKeys
QString colorKeys
The used Color Keys.
Definition: dcrawinfocontainer.h:124
KDcrawIface::DcrawInfoContainer::imageSize
QSize imageSize
The image dimensions in pixels.
Definition: dcrawinfocontainer.h:141
KDcrawIface::operator<<
QDebug operator<<(QDebug dbg, const DcrawInfoContainer &c)
kDebug() stream operator. Writes container c to the debug output in a nicely formatted way...
Definition: dcrawinfocontainer.cpp:152
KDcrawIface::DcrawInfoContainer::leftMargin
unsigned int leftMargin
Left margin of raw image.
Definition: dcrawinfocontainer.h:96
KDcrawIface::DcrawInfoContainer::~DcrawInfoContainer
virtual ~DcrawInfoContainer()
Standard destructor.
Definition: dcrawinfocontainer.cpp:74
QString::isEmpty
bool isEmpty() const
KDcrawIface::DcrawInfoContainer::rawColors
int rawColors
The number of RAW colors.
Definition: dcrawinfocontainer.h:78
KDcrawIface::DcrawInfoContainer::rawImages
int rawImages
The number of RAW images.
Definition: dcrawinfocontainer.h:81
KDcrawIface::DcrawInfoContainer::DNGVersion
QString DNGVersion
The DNG version.
Definition: dcrawinfocontainer.h:135
KDcrawIface::DcrawInfoContainer::isDecodable
bool isDecodable
True is RAW file is decodable by dcraw.
Definition: dcrawinfocontainer.h:75
KDcrawIface::DcrawInfoContainer::fullSize
QSize fullSize
The full RAW image dimensions in pixels.
Definition: dcrawinfocontainer.h:147
KDcrawIface::DcrawInfoContainer::make
QString make
The camera maker.
Definition: dcrawinfocontainer.h:127
QDebug::space
QDebug & space()
QDebug
KDcrawIface::DcrawInfoContainer::thumbSize
QSize thumbSize
The thumb dimensions in pixels.
Definition: dcrawinfocontainer.h:144
QDateTime::isValid
bool isValid() const
KDcrawIface::DcrawInfoContainer::focalLength
float focalLength
==> Focal Length value in mm.
Definition: dcrawinfocontainer.h:109
KDcrawIface::DcrawInfoContainer::isEmpty
bool isEmpty()
Return 'true' if container is empty, else 'false'.
Definition: dcrawinfocontainer.cpp:78
KDcrawIface::DcrawInfoContainer::topMargin
unsigned int topMargin
Top margin of raw image.
Definition: dcrawinfocontainer.h:93
KDcrawIface::DcrawInfoContainer::model
QString model
The camera model.
Definition: dcrawinfocontainer.h:129
KDcrawIface::DcrawInfoContainer::ORIENTATION_NONE
Definition: dcrawinfocontainer.h:52
KDcrawIface::DcrawInfoContainer::blackPoint
unsigned int blackPoint
Black level from Raw histogram.
Definition: dcrawinfocontainer.h:84
KDcrawIface::DcrawInfoContainer::cameraXYZMatrix
float cameraXYZMatrix[4][3]
Definition: dcrawinfocontainer.h:121
KDcrawIface::DcrawInfoContainer::hasIccProfile
bool hasIccProfile
True if RAW file include an ICC color profile.
Definition: dcrawinfocontainer.h:73
KDcrawIface::DcrawInfoContainer::cameraColorMatrix1
float cameraColorMatrix1[3][4]
Camera Color Matrix.
Definition: dcrawinfocontainer.h:119
KDcrawIface::DcrawInfoContainer::pixelAspectRatio
float pixelAspectRatio
The pixel Aspect Ratio if != 1.0.
Definition: dcrawinfocontainer.h:111
KDcrawIface::DcrawInfoContainer::blackPointCh
unsigned int blackPointCh[4]
Channel black levels from Raw histogram.
Definition: dcrawinfocontainer.h:87
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libs/libkdcraw/libkdcraw

Skip menu "libs/libkdcraw/libkdcraw"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal