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) |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QBindable< QString > | bindableObjectName () |
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 () const const |
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 QRegularExpression &re, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (Qt::FindChildOptions options) const const |
bool | inherits (const char *className) const const |
void | installEventFilter (QObject *filterObj) |
bool | isQuickItemType () const const |
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_EMIT Q_EMIT | |
Q_ENUM (...) | |
Q_ENUM_NS (...) | |
Q_ENUMS (...) | |
Q_FLAG (...) | |
Q_FLAG_NS (...) | |
Q_FLAGS (...) | |
Q_GADGET Q_GADGET | |
Q_GADGET_EXPORT (EXPORT_MACRO) | |
Q_INTERFACES (...) | |
Q_INVOKABLE Q_INVOKABLE | |
Q_MOC_INCLUDE Q_MOC_INCLUDE | |
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 | qobject_cast (const QObject *object) |
T | qobject_cast (QObject *object) |
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
void | removeEventFilter (QObject *obj) |
void | setObjectName (const QString &name) |
void | setObjectName (QAnyStringView name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | setProperty (const char *name, QVariant &&value) |
bool | signalsBlocked () const const |
int | startTimer (int interval, Qt::TimerType timerType) |
int | startTimer (std::chrono::milliseconds interval, 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 QBuffer &inBuffer) |
static bool | loadEmbeddedPreview (QByteArray &imgData, const QString &path) |
static bool | loadEmbeddedPreview (QImage &image, const QString &path) |
static bool | loadFullImage (QImage &image, const QString &path, const RawDecodingSettings &settings=RawDecodingSettings()) |
static bool | loadHalfPreview (QByteArray &imgData, const QBuffer &inBuffer) |
static bool | loadHalfPreview (QByteArray &imgData, const QString &path) |
static bool | loadHalfPreview (QImage &image, const QString &path) |
static bool | loadRawPreview (QByteArray &imgData, const QBuffer &inBuffer) |
static bool | loadRawPreview (QByteArray &imgData, const QString &path) |
static bool | loadRawPreview (QImage &image, const QString &path) |
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 *context, Functor functor, 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) |
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, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
QString | tr (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 |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
Protected Attributes | |
bool | m_cancel |
RawDecodingSettings | m_rawDecodingSettings |
Additional Inherited Members | |
Public Types inherited from QObject | |
typedef | QObjectList |
Properties inherited from QObject | |
objectName | |
Detailed Description
Constructor & Destructor Documentation
◆ KDcraw()
KDcrawIface::KDcraw::KDcraw | ( | ) |
Standard constructor.
Definition at line 35 of file kdcraw.cpp.
◆ ~KDcraw()
|
virtual |
Standard destructor.
Definition at line 41 of file kdcraw.cpp.
Member Function Documentation
◆ cancel()
void KDcrawIface::KDcraw::cancel | ( | ) |
To cancel 'decodeHalfRAWImage' and 'decodeRAWImage' methods running in a separate thread.
Definition at line 51 of file kdcraw.cpp.
◆ 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 466 of file kdcraw.cpp.
◆ decodeHalfRAWImage()
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 451 of file kdcraw.cpp.
◆ decodeRAWImage()
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 459 of file kdcraw.cpp.
◆ extractRAWData()
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.
◆ librawUseGomp()
|
static |
Return true or false if LibRaw use parallel demosaicing or not (libgomp support).
Return -1 if undefined.
Definition at line 507 of file kdcraw.cpp.
◆ librawUseGPL2DemosaicPack()
|
static |
Return true or false if LibRaw use Demosaic Pack GPL2 or not.
Return -1 if undefined.
Definition at line 533 of file kdcraw.cpp.
◆ librawUseGPL3DemosaicPack()
|
static |
Return true or false if LibRaw use Demosaic Pack GPL3 or not.
Return -1 if undefined.
Definition at line 546 of file kdcraw.cpp.
◆ librawUseRawSpeed()
|
static |
Return true or false if LibRaw use RawSpeed codec or not.
Return -1 if undefined.
Definition at line 520 of file kdcraw.cpp.
◆ librawVersion()
|
static |
Return LibRaw version string.
Definition at line 502 of file kdcraw.cpp.
◆ loadEmbeddedPreview() [1/3]
|
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.
◆ loadEmbeddedPreview() [2/3]
|
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.
◆ loadEmbeddedPreview() [3/3]
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.
◆ loadFullImage()
|
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.
◆ loadHalfPreview() [1/3]
|
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.
◆ loadHalfPreview() [2/3]
|
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.
◆ loadHalfPreview() [3/3]
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.
◆ loadRawPreview() [1/3]
|
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().
◆ loadRawPreview() [2/3]
|
static |
Get the preview of RAW picture as a QByteArray holding JPEG data.
It tries loadEmbeddedPreview() first and if it fails, calls loadHalfPreview().
◆ loadRawPreview() [3/3]
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.
◆ rawFileIdentify()
|
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.
◆ rawFiles()
|
static |
Return the string of all RAW file type mime supported.
Definition at line 475 of file kdcraw.cpp.
◆ rawFilesList()
|
static |
Return the list of all RAW file type mime supported, as a QStringList, without wildcard and suffix dot.
Definition at line 480 of file kdcraw.cpp.
◆ 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 486 of file kdcraw.cpp.
◆ setWaitingDataProgress()
|
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 471 of file kdcraw.cpp.
◆ supportedCamera()
|
static |
Provide a list of supported RAW Camera name.
Definition at line 491 of file kdcraw.cpp.
◆ version()
|
static |
Return a string version of libkdcraw release.
Definition at line 46 of file kdcraw.cpp.
Member Data Documentation
◆ m_cancel
|
protected |
◆ m_rawDecodingSettings
|
protected |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:54:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.