KDcrawIface::KDcraw
#include <kdcraw.h>

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) |
![]() | |
QObject (QObject *parent) | |
bool | blockSignals (bool block) |
const QObjectList & | children () 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< QByteArray > | dynamicPropertyNames () const const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | 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 ®Exp, 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 QMetaObject * | metaObject () const const |
void | moveToThread (QThread *targetThread) |
QString | objectName () const const |
void | objectNameChanged (const QString &objectName) |
QObject * | parent () 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 | |
T | qFindChild (const QObject *obj, const QString &name) |
QList< T > | qFindChildren (const QObject *obj, const QRegExp ®Exp) |
QList< T > | qFindChildren (const QObject *obj, const QString &name) |
T | qobject_cast (QObject *object) |
T | 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) |
QThread * | thread () 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 () |
![]() | |
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) |
![]() | |
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 |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
Protected Attributes | |
bool | m_cancel |
RawDecodingSettings | m_rawDecodingSettings |
Additional Inherited Members | |
![]() | |
objectName | |
![]() | |
typedef | QObjectList |
Detailed Description
Constructor & Destructor Documentation
KDcrawIface::KDcraw::KDcraw | ( | ) |
Standard constructor.
Definition at line 35 of file kdcraw.cpp.
|
virtual |
Standard destructor.
Definition at line 41 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 51 of file kdcraw.cpp.
|
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 462 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 447 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 455 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 323 of file kdcraw.cpp.
|
static |
Return true or false if LibRaw use parallel demosaicing or not (libgomp support).
Return -1 if undefined.
Definition at line 503 of file kdcraw.cpp.
|
static |
Return true or false if LibRaw use Demosaic Pack GPL2 or not.
Return -1 if undefined.
Definition at line 529 of file kdcraw.cpp.
|
static |
Return true or false if LibRaw use Demosaic Pack GPL3 or not.
Return -1 if undefined.
Definition at line 542 of file kdcraw.cpp.
|
static |
Return true or false if LibRaw use RawSpeed codec or not.
Return -1 if undefined.
Definition at line 516 of file kdcraw.cpp.
|
static |
Return LibRaw version string.
Definition at line 498 of file kdcraw.cpp.
|
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 87 of file kdcraw.cpp.
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 68 of file kdcraw.cpp.
|
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 110 of file kdcraw.cpp.
|
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 231 of file kdcraw.cpp.
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 128 of file kdcraw.cpp.
|
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 165 of file kdcraw.cpp.
|
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 201 of file kdcraw.cpp.
Get the preview of RAW picture as a QImage.
It tries loadEmbeddedPreview() first and if it fails, calls loadHalfPreview().
Definition at line 56 of file kdcraw.cpp.
|
static |
Get the preview of RAW picture as a QByteArray holding JPEG data.
It tries loadEmbeddedPreview() first and if it fails, calls loadHalfPreview().
|
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().
|
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 286 of file kdcraw.cpp.
|
static |
Return the string of all RAW file type mime supported.
Definition at line 471 of file kdcraw.cpp.
|
static |
Return the list of all RAW file type mime supported, as a QStringList, without wildcard and suffix dot.
Definition at line 476 of file kdcraw.cpp.
|
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 482 of file kdcraw.cpp.
|
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 467 of file kdcraw.cpp.
|
static |
Provide a list of supported RAW Camera name.
Definition at line 487 of file kdcraw.cpp.
|
static |
Return a string version of libkdcraw release.
Definition at line 46 of file kdcraw.cpp.
Member Data Documentation
|
protected |
|
protected |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Mar 4 2021 22:36:22 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.