libs/libkdcraw/libkdcraw
#include <kdcraw.h>
Classes | |
class | Private |
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) |
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 () |
Protected Member Functions | |
virtual bool | checkToCancelWaitingData () |
virtual void | setWaitingDataProgress (double value) |
Protected Attributes | |
bool | m_cancel |
RawDecodingSettings | m_rawDecodingSettings |
Detailed Description
Constructor & Destructor Documentation
KDcrawIface::KDcraw::KDcraw | ( | ) |
Standard constructor.
Definition at line 55 of file kdcraw.cpp.
|
virtual |
Standard destructor.
Definition at line 61 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 72 of file kdcraw.cpp.
|
protectedvirtual |
Re-implement this method to control the cancelisation of loop witch wait data from RAW decoding process with your propers envirronement.
By default, this method check if m_cancel is true.
Definition at line 483 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 468 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 476 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 344 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 524 of file kdcraw.cpp.
|
static |
Return true or false if LibRaw use Demosaic Pack GPL2 or not.
Return -1 if undefined.
Definition at line 550 of file kdcraw.cpp.
|
static |
Return true or false if LibRaw use Demosaic Pack GPL3 or not.
Return -1 if undefined.
Definition at line 563 of file kdcraw.cpp.
|
static |
Return true or false if LibRaw use RawSpeed codec or not.
Return -1 if undefined.
Definition at line 537 of file kdcraw.cpp.
|
static |
Return LibRaw version string.
Definition at line 519 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 108 of file kdcraw.cpp.
|
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 89 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 131 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 252 of file kdcraw.cpp.
|
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 149 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 186 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 222 of file kdcraw.cpp.
|
static |
Get the preview of RAW picture as a QImage.
It tries loadEmbeddedPreview() first and if it fails, calls loadHalfPreview().
Definition at line 77 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 307 of file kdcraw.cpp.
|
static |
Return the string of all RAW file type mime supported.
Definition at line 492 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 497 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 503 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 488 of file kdcraw.cpp.
|
static |
Provide a list of supported RAW Camera name.
Definition at line 508 of file kdcraw.cpp.
|
static |
Return a string version of libkdcraw release.
Definition at line 67 of file kdcraw.cpp.
Member Data Documentation
|
protected |
|
protected |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:16 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.