KDcrawIface::KDcraw

#include <kdcraw.h>

Inheritance diagram for KDcrawIface::KDcraw:

Public Member Functions

 KDcraw ()
 
virtual ~KDcraw ()
 
void cancel ()
 
bool decodeHalfRAWImage (const QString &filePath, const RawDecodingSettings &rawDecodingSettings, QByteArray &imageData, int &width, int &height, int &rgbmax)
 
bool decodeRAWImage (const QString &filePath, const RawDecodingSettings &rawDecodingSettings, QByteArray &imageData, int &width, int &height, int &rgbmax)
 
bool extractRAWData (const QString &filePath, QByteArray &rawData, DcrawInfoContainer &identify, unsigned int shotSelect=0)
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo ()
 
void dumpObjectInfo () const const
 
void dumpObjectTree ()
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegExp &regExp, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_DISABLE_COPY (Class)
 
 Q_DISABLE_COPY_MOVE (Class)
 
 Q_DISABLE_MOVE (Class)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qFindChild (const QObject *obj, const QString &name)
 
QList< T > qFindChildren (const QObject *obj, const QRegExp &regExp)
 
QList< T > qFindChildren (const QObject *obj, const QString &name)
 
qobject_cast (QObject *object)
 
qobject_cast (const QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds time, Qt::TimerType timerType)
 
QThreadthread () const const
 

Static Public Member Functions

static int librawUseGomp ()
 
static int librawUseGPL2DemosaicPack ()
 
static int librawUseGPL3DemosaicPack ()
 
static int librawUseRawSpeed ()
 
static QString librawVersion ()
 
static bool loadEmbeddedPreview (QByteArray &imgData, const QString &path)
 
static bool loadEmbeddedPreview (QImage &image, const QString &path)
 
static bool loadEmbeddedPreview (QByteArray &imgData, const QBuffer &inBuffer)
 
static bool loadFullImage (QImage &image, const QString &path, const RawDecodingSettings &settings=RawDecodingSettings())
 
static bool loadHalfPreview (QImage &image, const QString &path)
 
static bool loadHalfPreview (QByteArray &imgData, const QString &path)
 
static bool loadHalfPreview (QByteArray &imgData, const QBuffer &inBuffer)
 
static bool loadRawPreview (QImage &image, const QString &path)
 
static bool loadRawPreview (QByteArray &imgData, const QString &path)
 
static bool loadRawPreview (QByteArray &imgData, const QBuffer &inBuffer)
 
static bool rawFileIdentify (DcrawInfoContainer &identify, const QString &path)
 
static const char * rawFiles ()
 
static QStringList rawFilesList ()
 
static int rawFilesVersion ()
 
static QStringList supportedCamera ()
 
static QString version ()
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 

Protected Member Functions

virtual bool checkToCancelWaitingData ()
 
virtual void setWaitingDataProgress (double value)
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Protected Attributes

bool m_cancel
 
RawDecodingSettings m_rawDecodingSettings
 

Additional Inherited Members

- Properties inherited from QObject
 objectName
 
- Public Attributes inherited from QObject
typedef QObjectList
 

Detailed Description

The wrapper class.

Definition at line 57 of file kdcraw.h.

Constructor & Destructor Documentation

KDcrawIface::KDcraw::KDcraw ( )

Standard constructor.

Definition at line 56 of file kdcraw.cpp.

KDcrawIface::KDcraw::~KDcraw ( )
virtual

Standard destructor.

Definition at line 62 of file kdcraw.cpp.

Member Function Documentation

void KDcrawIface::KDcraw::cancel ( )

To cancel 'decodeHalfRAWImage' and 'decodeRAWImage' methods running in a separate thread.

Definition at line 73 of file kdcraw.cpp.

bool KDcrawIface::KDcraw::checkToCancelWaitingData ( )
protectedvirtual

Re-implement this method to control the cancelisation of loop witch wait data from RAW decoding process with your proper environment.

By default, this method check if m_cancel is true.

Definition at line 484 of file kdcraw.cpp.

bool KDcrawIface::KDcraw::decodeHalfRAWImage ( const QString filePath,
const RawDecodingSettings rawDecodingSettings,
QByteArray imageData,
int &  width,
int &  height,
int &  rgbmax 
)

Extract a small size of decode RAW data from 'filePath' picture file using 'rawDecodingSettings' settings.

This is a cancelable method which require a class instance to run because RAW pictures decoding can take a while.

This method return:

- A byte array container 'imageData' with picture data. Pixels order is RGB.
  Color depth can be 8 or 16. In 8 bits you can access to color component
  using (uchar*), in 16 bits using (ushort*).

- Size size of image in number of pixels ('width' and 'height').
- The max average of RGB components from decoded picture.
- 'false' is returned if decoding failed, else 'true'.

Definition at line 469 of file kdcraw.cpp.

bool KDcrawIface::KDcraw::decodeRAWImage ( const QString filePath,
const RawDecodingSettings rawDecodingSettings,
QByteArray imageData,
int &  width,
int &  height,
int &  rgbmax 
)

Extract a full size of RAW data from 'filePath' picture file using 'rawDecodingSettings' settings.

This is a cancelable method which require a class instance to run because RAW pictures decoding can take a while.

This method return:

- A byte array container 'imageData' with picture data. Pixels order is RGB.
  Color depth can be 8 or 16. In 8 bits you can access to color component
  using (uchar*), in 16 bits using (ushort*).

- Size size of image in number of pixels ('width' and 'height').
- The max average of RGB components from decoded picture.
- 'false' is returned if decoding failed, else 'true'.

Definition at line 477 of file kdcraw.cpp.

bool KDcrawIface::KDcraw::extractRAWData ( const QString filePath,
QByteArray rawData,
DcrawInfoContainer identify,
unsigned int  shotSelect = 0 
)

Extract Raw image data undemosaiced and without post processing from 'filePath' picture file.

This is a cancelable method which require a class instance to run because RAW pictures loading can take a while.

This method return:

- A byte array container 'rawData' with raw data.
- All info about Raw image into 'identify' container.
- 'false' is returned if loadding failed, else 'true'.

Definition at line 345 of file kdcraw.cpp.

int KDcrawIface::KDcraw::librawUseGomp ( )
static

Return true or false if LibRaw use parallel demosaicing or not (libgomp support).

Return -1 if undefined.

Definition at line 525 of file kdcraw.cpp.

int KDcrawIface::KDcraw::librawUseGPL2DemosaicPack ( )
static

Return true or false if LibRaw use Demosaic Pack GPL2 or not.

Return -1 if undefined.

Definition at line 551 of file kdcraw.cpp.

int KDcrawIface::KDcraw::librawUseGPL3DemosaicPack ( )
static

Return true or false if LibRaw use Demosaic Pack GPL3 or not.

Return -1 if undefined.

Definition at line 564 of file kdcraw.cpp.

int KDcrawIface::KDcraw::librawUseRawSpeed ( )
static

Return true or false if LibRaw use RawSpeed codec or not.

Return -1 if undefined.

Definition at line 538 of file kdcraw.cpp.

QString KDcrawIface::KDcraw::librawVersion ( )
static

Return LibRaw version string.

Definition at line 520 of file kdcraw.cpp.

bool KDcrawIface::KDcraw::loadEmbeddedPreview ( QByteArray imgData,
const QString path 
)
static

Get the embedded JPEG preview image from RAW picture as a QByteArray which will include Exif Data.

This is fast and non cancelable. This method does not require a class instance to run.

Definition at line 109 of file kdcraw.cpp.

bool KDcrawIface::KDcraw::loadEmbeddedPreview ( QImage image,
const QString path 
)
static

Get the embedded JPEG preview image from RAW picture as a QImage.

This is fast and non cancelable This method does not require a class instance to run.

Definition at line 90 of file kdcraw.cpp.

bool KDcrawIface::KDcraw::loadEmbeddedPreview ( QByteArray imgData,
const QBuffer inBuffer 
)
static

Get the embedded JPEG preview image from RAW image passed in QBuffer as a QByteArray which will include Exif Data.

This is fast and non cancelable. This method does not require a class instance to run.

Definition at line 132 of file kdcraw.cpp.

bool KDcrawIface::KDcraw::loadFullImage ( QImage image,
const QString path,
const RawDecodingSettings settings = RawDecodingSettings() 
)
static

Get the full decoded RAW picture.

This is a more slower than loadHalfPreview() method and non cancelable. This method does not require a class instance to run.

Definition at line 253 of file kdcraw.cpp.

bool KDcrawIface::KDcraw::loadHalfPreview ( QImage image,
const QString path 
)
static

Get the half decoded RAW picture.

This is slower than loadEmbeddedPreview() method and non cancelable. This method does not require a class instance to run.

Definition at line 150 of file kdcraw.cpp.

bool KDcrawIface::KDcraw::loadHalfPreview ( QByteArray imgData,
const QString path 
)
static

Get the half decoded RAW picture as JPEG data in QByteArray.

This is slower than loadEmbeddedPreview() method and non cancelable. This method does not require a class instance to run.

Definition at line 187 of file kdcraw.cpp.

bool KDcrawIface::KDcraw::loadHalfPreview ( QByteArray imgData,
const QBuffer inBuffer 
)
static

Get the half decoded RAW picture passed in QBuffer as JPEG data in QByteArray.

This is slower than loadEmbeddedPreview() method and non cancelable. This method does not require a class instance to run.

Definition at line 223 of file kdcraw.cpp.

bool KDcrawIface::KDcraw::loadRawPreview ( QImage image,
const QString path 
)
static

Get the preview of RAW picture as a QImage.

It tries loadEmbeddedPreview() first and if it fails, calls loadHalfPreview().

Definition at line 78 of file kdcraw.cpp.

static bool KDcrawIface::KDcraw::loadRawPreview ( QByteArray imgData,
const QString path 
)
static

Get the preview of RAW picture as a QByteArray holding JPEG data.

It tries loadEmbeddedPreview() first and if it fails, calls loadHalfPreview().

static bool KDcrawIface::KDcraw::loadRawPreview ( QByteArray imgData,
const QBuffer inBuffer 
)
static

Get the preview of RAW picture passed in QBuffer as a QByteArray holding JPEG data.

It tries loadEmbeddedPreview() first and if it fails, calls loadHalfPreview().

bool KDcrawIface::KDcraw::rawFileIdentify ( DcrawInfoContainer identify,
const QString path 
)
static

Get the camera settings witch have taken RAW file.

Look into dcrawinfocontainer.h for more details. This is a fast and non cancelable method witch do not require a class instance to run.

Definition at line 308 of file kdcraw.cpp.

const char * KDcrawIface::KDcraw::rawFiles ( )
static

Return the string of all RAW file type mime supported.

Definition at line 493 of file kdcraw.cpp.

QStringList KDcrawIface::KDcraw::rawFilesList ( )
static

Return the list of all RAW file type mime supported, as a QStringList, without wildcard and suffix dot.

Definition at line 498 of file kdcraw.cpp.

int KDcrawIface::KDcraw::rawFilesVersion ( )
static

Returns a version number for the list of supported RAW file types.

This version is incremented if the list of supported formats has changed between library releases.

Definition at line 504 of file kdcraw.cpp.

void KDcrawIface::KDcraw::setWaitingDataProgress ( double  value)
protectedvirtual

Re-implement this method to control the pseudo progress value during RAW decoding (when dcraw run with an internal loop without feedback) with your proper environment.

By default, this method does nothing. Progress value average for this stage is 0%-n%, with 'n' == 40% max (see setWaitingDataProgress() method).

Definition at line 489 of file kdcraw.cpp.

QStringList KDcrawIface::KDcraw::supportedCamera ( )
static

Provide a list of supported RAW Camera name.

Definition at line 509 of file kdcraw.cpp.

QString KDcrawIface::KDcraw::version ( )
static

Return a string version of libkdcraw release.

Definition at line 68 of file kdcraw.cpp.

Member Data Documentation

bool KDcrawIface::KDcraw::m_cancel
protected

Used internally to cancel RAW decoding operation.

Normally, you don't need to use it directly, excepted if you derivated this class. Usual way is to use cancel() method

Definition at line 234 of file kdcraw.h.

RawDecodingSettings KDcrawIface::KDcraw::m_rawDecodingSettings
protected

The settings container used to perform RAW pictures decoding.

See 'rawdecodingsetting.h' for details.

Definition at line 239 of file kdcraw.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Nov 30 2020 22:35:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.