• 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
kdcraw.h
Go to the documentation of this file.
1 
30 #ifndef KDCRAW_H
31 #define KDCRAW_H
32 
33 // C++ includes
34 
35 #include <cmath>
36 
37 // Qt includes
38 
39 #include <QtCore/QBuffer>
40 #include <QtCore/QString>
41 #include <QtCore/QObject>
42 #include <QtGui/QImage>
43 
44 // Local includes
45 
46 #include "libkdcraw_export.h"
47 #include "rawdecodingsettings.h"
48 #include "dcrawinfocontainer.h"
49 
52 namespace KDcrawIface
53 {
54 
55 class LIBKDCRAW_EXPORT KDcraw : public QObject
56 {
57  Q_OBJECT
58 
59 public:
60 
63  KDcraw();
64 
67  virtual ~KDcraw();
68 
69 public:
70 
73  static QString version();
74 
78  static bool loadRawPreview(QImage& image, const QString& path);
79 
83  static bool loadRawPreview(QByteArray& imgData, const QString& path);
84 
88  static bool loadRawPreview(QByteArray& imgData, const QBuffer& inBuffer);
89 
93  static bool loadEmbeddedPreview(QByteArray& imgData, const QString& path);
94 
98  static bool loadEmbeddedPreview(QImage& image, const QString& path);
99 
103  static bool loadEmbeddedPreview(QByteArray& imgData, const QBuffer& inBuffer);
104 
108  static bool loadHalfPreview(QImage& image, const QString& path);
109 
113  static bool loadHalfPreview(QByteArray& imgData, const QString& path);
114 
118  static bool loadHalfPreview(QByteArray& imgData, const QBuffer& inBuffer);
119 
123  static bool loadFullImage(QImage& image, const QString& path, const RawDecodingSettings& settings = RawDecodingSettings());
124 
129  static bool rawFileIdentify(DcrawInfoContainer& identify, const QString& path);
130 
133  static const char* rawFiles();
134 
138  static QStringList rawFilesList();
139 
144  static int rawFilesVersion();
145 
148  static QStringList supportedCamera();
149 
152  static QString librawVersion();
153 
157  static int librawUseGomp();
158 
162  static int librawUseRawSpeed();
163 
167  static int librawUseGPL2DemosaicPack();
168 
172  static int librawUseGPL3DemosaicPack();
173 
174 public:
175 
186  bool extractRAWData(const QString& filePath, QByteArray& rawData, DcrawInfoContainer& identify, unsigned int shotSelect=0);
187 
202  bool decodeHalfRAWImage(const QString& filePath, const RawDecodingSettings& rawDecodingSettings,
203  QByteArray& imageData, int& width, int& height, int& rgbmax);
204 
219  bool decodeRAWImage(const QString& filePath, const RawDecodingSettings& rawDecodingSettings,
220  QByteArray& imageData, int& width, int& height, int& rgbmax);
221 
225  void cancel();
226 
227 protected:
228 
232  bool m_cancel;
233 
237  RawDecodingSettings m_rawDecodingSettings;
238 
239 protected:
240 
245  virtual bool checkToCancelWaitingData();
246 
251  virtual void setWaitingDataProgress(double value);
252 
253 public:
254 
255  // Declared public to be called externally by callbackForLibRaw() static method.
256  class Private;
257 
258 private:
259 
260  Private* const d;
261 
262  friend class Private;
263 };
264 
265 } // namespace KDcrawIface
266 
267 #endif /* KDCRAW_H */
KDcrawIface::KDcraw::Private
Definition: kdcraw_p.h:55
QByteArray
LIBKDCRAW_EXPORT
#define LIBKDCRAW_EXPORT
Definition: libkdcraw_export.h:39
KDcrawIface::DcrawInfoContainer
Definition: dcrawinfocontainer.h:43
QBuffer
KDcrawIface::KDcraw::m_cancel
bool m_cancel
Used internally to cancel RAW decoding operation.
Definition: kdcraw.h:232
KDcrawIface::KDcraw::m_rawDecodingSettings
RawDecodingSettings m_rawDecodingSettings
The settings container used to perform RAW pictures decoding.
Definition: kdcraw.h:237
dcrawinfocontainer.h
===========================================================This file is a part of digiKam project htt...
QObject
rawdecodingsettings.h
===========================================================This file is a part of digiKam project htt...
QString
QStringList
QImage
libkdcraw_export.h
===========================================================This file is part of the KDE project ...
KDcrawIface::KDcraw
Definition: kdcraw.h:55
KDcrawIface::RawDecodingSettings
Definition: rawdecodingsettings.h:50
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