|
void | cancelFilter () override |
|
FilterAction | filterAction () override |
|
QString | filterIdentifier () const override |
|
const QString & | filterName () |
|
int | filterVersion () const |
|
DImg | getTargetImage () |
|
| GreycstorationFilter (DImg *const orgImage, const GreycstorationContainer &settings, int mode=Restore, int newWidth=0, int newHeight=0, const QImage &inPaintingMask=QImage(), QObject *const parent=nullptr) |
|
| GreycstorationFilter (QObject *const parent=nullptr) |
|
bool | isFinished () const |
|
bool | isRunning () const |
|
QList< int > | multithreadedSteps (int stop, int start=0) const |
|
virtual bool | parametersSuccessfullyRead () const |
|
QThread::Priority | priority () const |
|
void | readParameters (const FilterAction &action) override |
|
virtual QString | readParametersError (const FilterAction &actionThatFailed) const |
|
void | setEmitSignals (bool emitThem) |
|
void | setFilterName (const QString &name) |
|
void | setFilterVersion (int version) |
|
void | setInPaintingMask (const QImage &inPaintingMask) |
|
void | setMode (int mode, int newWidth=0, int newHeight=0) |
|
void | setOriginalImage (const DImg &orgImage) |
|
void | setPriority (QThread::Priority priority) |
|
void | setSettings (const GreycstorationContainer &settings) |
|
void | setup () |
|
void | setupAndStartDirectly (const DImg &orgImage, DImgThreadedFilter *const master, int progressBegin=0, int progressEnd=100) |
|
void | setupFilter (const DImg &orgImage) |
|
virtual void | startFilter () |
|
virtual void | startFilterDirectly () |
|
State | state () const |
|
virtual QList< int > | supportedVersions () const |
|
| ~GreycstorationFilter () override |
|
◆ MODE
Enumerator |
---|
Restore | |
InPainting | |
Resize | |
SimpleResize | Mode to resize image without to use Greycstoration algorithm.
|
◆ State
Enumerator |
---|
Inactive | |
Scheduled | |
Running | |
Deactivating | |
◆ GreycstorationFilter() [1/2]
Digikam::GreycstorationFilter::GreycstorationFilter |
( |
QObject *const |
parent = nullptr | ) |
|
|
explicit |
◆ GreycstorationFilter() [2/2]
Digikam::GreycstorationFilter::GreycstorationFilter |
( |
DImg *const |
orgImage, |
|
|
const GreycstorationContainer & |
settings, |
|
|
int |
mode = Restore , |
|
|
int |
newWidth = 0 , |
|
|
int |
newHeight = 0 , |
|
|
const QImage & |
inPaintingMask = QImage() , |
|
|
QObject *const |
parent = nullptr |
|
) |
| |
◆ ~GreycstorationFilter()
Digikam::GreycstorationFilter::~GreycstorationFilter |
( |
| ) |
|
|
override |
◆ cancelFilter()
void Digikam::GreycstorationFilter::cancelFilter |
( |
| ) |
|
|
overridevirtual |
◆ cimgVersionString()
QString Digikam::GreycstorationFilter::cimgVersionString |
( |
| ) |
|
|
static |
◆ cleanupFilter()
virtual void Digikam::DImgThreadedFilter::cleanupFilter |
( |
| ) |
|
|
inlineprotectedvirtualinherited |
◆ CurrentVersion()
static int Digikam::GreycstorationFilter::CurrentVersion |
( |
| ) |
|
|
inlinestatic |
◆ DisplayableName()
QString Digikam::GreycstorationFilter::DisplayableName |
( |
| ) |
|
|
static |
◆ filterAction()
FilterAction Digikam::GreycstorationFilter::filterAction |
( |
| ) |
|
|
overridevirtual |
◆ FilterIdentifier()
static QString Digikam::GreycstorationFilter::FilterIdentifier |
( |
| ) |
|
|
inlinestatic |
◆ filterIdentifier()
QString Digikam::GreycstorationFilter::filterIdentifier |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ filterName()
const QString& Digikam::DImgThreadedFilter::filterName |
( |
| ) |
|
|
inlineinherited |
◆ filterVersion()
int Digikam::DImgThreadedFilter::filterVersion |
( |
| ) |
const |
|
inherited |
◆ finished [1/2]
void Digikam::DynamicThread::finished |
( |
| ) |
|
|
signalinherited |
◆ finished [2/2]
void Digikam::DImgThreadedFilter::finished |
( |
bool |
success | ) |
|
|
signalinherited |
Emitted when the computation has completed.
- Parameters
-
success | True if computation finished without interruption on valid data False if the thread was canceled, or no data is available. |
◆ getTargetImage()
DImg Digikam::DImgThreadedFilter::getTargetImage |
( |
| ) |
|
|
inlineinherited |
◆ initMaster()
void Digikam::DImgThreadedFilter::initMaster |
( |
| ) |
|
|
protectedinherited |
◆ initSlave()
void Digikam::DImgThreadedFilter::initSlave |
( |
DImgThreadedFilter *const |
master, |
|
|
int |
progressBegin = 0 , |
|
|
int |
progressEnd = 100 |
|
) |
| |
|
protectedinherited |
◆ isFinished()
bool Digikam::DynamicThread::isFinished |
( |
| ) |
const |
|
inherited |
◆ isRunning()
bool Digikam::DynamicThread::isRunning |
( |
| ) |
const |
|
inherited |
◆ modulateProgress()
int Digikam::DImgThreadedFilter::modulateProgress |
( |
int |
progress | ) |
|
|
protectedvirtualinherited |
◆ multithreadedSteps()
QList< int > Digikam::DImgThreadedFilter::multithreadedSteps |
( |
int |
stop, |
|
|
int |
start = 0 |
|
) |
| const |
|
inherited |
This method return a list of steps to process parallelized operation in filter using QtConcurrents API. Usually, start and stop are rows or columns from image to process. By default, whole image will be processed and start value is 0. In this case stop will be last row or column to process. Between range [start,stop], this method will divide by equal steps depending of number of CPU cores available. To be sure that all values will be processed, in case of CPU core division give rest, the last step compensate the difference. See Blur filter loop implementation for example to see how to use this method with QtConcurrents API.
References Digikam::DynamicThread::start(), and Digikam::DynamicThread::stop().
◆ parametersSuccessfullyRead()
bool Digikam::DImgThreadedFilter::parametersSuccessfullyRead |
( |
| ) |
const |
|
virtualinherited |
Optional: error handling for readParameters. When readParameters() has been called, this method will return true if the call was successful, and false if not. If returning false, readParametersError() will give an error message. The default implementation always returns success. You only need to reimplement when a filter is likely to fail in a different environment, e.g. depending on availability of installed files. These methods have an undefined return value if readParameters() was not called previously.
Reimplemented in Digikam::IccTransformFilter.
◆ postProgress()
void Digikam::DImgThreadedFilter::postProgress |
( |
int |
progress | ) |
|
|
protectedinherited |
Emit progress info.
References Digikam::DImgThreadedFilter::m_master, Digikam::DImgThreadedFilter::m_progressCurrent, Digikam::DImgThreadedFilter::modulateProgress(), Digikam::DImgThreadedFilter::postProgress(), and Digikam::DImgThreadedFilter::progress().
Referenced by Digikam::FilterActionFilter::filterImage(), Digikam::DImgThreadedFilter::postProgress(), Digikam::RawProcessingFilter::postProgress(), Digikam::ContentAwareFilter::progressCallback(), Digikam::IccTransformFilter::progressInfo(), Digikam::NREstimate::startAnalyse(), and Digikam::AutoCrop::startAnalyse().
◆ prepareDestImage()
void Digikam::DImgThreadedFilter::prepareDestImage |
( |
| ) |
|
|
protectedvirtualinherited |
◆ priority()
QThread::Priority Digikam::DynamicThread::priority |
( |
| ) |
const |
|
inherited |
◆ progress
void Digikam::DImgThreadedFilter::progress |
( |
int |
progress | ) |
|
|
signalinherited |
◆ readParameters()
void Digikam::GreycstorationFilter::readParameters |
( |
const FilterAction & |
action | ) |
|
|
overridevirtual |
◆ readParametersError()
QString Digikam::DImgThreadedFilter::readParametersError |
( |
const FilterAction & |
actionThatFailed | ) |
const |
|
virtualinherited |
◆ run()
void Digikam::DImgThreadedFilter::run |
( |
| ) |
|
|
overrideprotectedvirtualinherited |
◆ runningFlag()
bool Digikam::DynamicThread::runningFlag |
( |
| ) |
const volatile |
|
protectedinherited |
◆ setEmitSignals()
void Digikam::DynamicThread::setEmitSignals |
( |
bool |
emitThem | ) |
|
|
inherited |
◆ setFilterName()
void Digikam::DImgThreadedFilter::setFilterName |
( |
const QString & |
name | ) |
|
|
inherited |
◆ setFilterVersion()
void Digikam::DImgThreadedFilter::setFilterVersion |
( |
int |
version | ) |
|
|
inherited |
◆ setInPaintingMask()
void Digikam::GreycstorationFilter::setInPaintingMask |
( |
const QImage & |
inPaintingMask | ) |
|
◆ setMode()
void Digikam::GreycstorationFilter::setMode |
( |
int |
mode, |
|
|
int |
newWidth = 0 , |
|
|
int |
newHeight = 0 |
|
) |
| |
◆ setOriginalImage()
void Digikam::DImgThreadedFilter::setOriginalImage |
( |
const DImg & |
orgImage | ) |
|
|
inherited |
◆ setPriority()
void Digikam::DynamicThread::setPriority |
( |
QThread::Priority |
priority | ) |
|
|
inherited |
◆ setSettings()
◆ setSlave()
◆ setup()
void Digikam::GreycstorationFilter::setup |
( |
| ) |
|
◆ setupAndStartDirectly()
void Digikam::DImgThreadedFilter::setupAndStartDirectly |
( |
const DImg & |
orgImage, |
|
|
DImgThreadedFilter *const |
master, |
|
|
int |
progressBegin = 0 , |
|
|
int |
progressEnd = 100 |
|
) |
| |
|
inherited |
◆ setupFilter()
void Digikam::DImgThreadedFilter::setupFilter |
( |
const DImg & |
orgImage | ) |
|
|
inherited |
◆ shutDown()
void Digikam::DynamicThread::shutDown |
( |
| ) |
|
|
protectedinherited |
◆ start [1/2]
void Digikam::DynamicThread::start |
( |
| ) |
|
|
slotinherited |
Referenced by Digikam::ImageHistogram::calculateInThread(), Digikam::FacePreviewLoader::checkRestart(), Digikam::ImageHistogram::getCount(), Digikam::ImageHistogram::getMaximum(), Digikam::ImageHistogram::getMean(), Digikam::ImageHistogram::getMedian(), Digikam::ImageHistogram::getStdDev(), Digikam::LoadSaveThread::load(), Digikam::ManagedLoadSaveThread::load(), Digikam::ManagedLoadSaveThread::loadThumbnail(), Digikam::DImgThreadedFilter::multithreadedSteps(), Digikam::ManagedLoadSaveThread::preloadThumbnail(), Digikam::ManagedLoadSaveThread::preloadThumbnailGroup(), Digikam::ManagedLoadSaveThread::prependThumbnailGroup(), Digikam::ScanStateFilter::process(), Digikam::LoadSaveThread::save(), Digikam::ManagedLoadSaveThread::save(), and Digikam::DImgThreadedFilter::startFilter().
◆ start() [2/2]
void Digikam::DynamicThread::start |
( |
QMutexLocker & |
locker | ) |
|
|
protectedinherited |
◆ started
void Digikam::DImgThreadedFilter::started |
( |
| ) |
|
|
signalinherited |
◆ startFilter()
void Digikam::DImgThreadedFilter::startFilter |
( |
| ) |
|
|
virtualinherited |
◆ startFilterDirectly()
void Digikam::DImgThreadedFilter::startFilterDirectly |
( |
| ) |
|
|
virtualinherited |
Start computation of this filter, directly in this thread.
References Digikam::DImgThreadedFilter::filterImage(), Digikam::DynamicThread::finished(), Digikam::DImg::height, Digikam::DImgThreadedFilter::m_name, Digikam::DImgThreadedFilter::m_orgImage, Digikam::DImgThreadedFilter::m_wasCancelled, Digikam::DImgThreadedFilter::started(), and Digikam::DImg::width.
Referenced by Digikam::BatchTool::applyFilter(), Digikam::BatchTool::applyFilterChangedProperties(), DigikamEditorProfileConversionToolPlugin::ProfileConversionTool::fastConversion(), Digikam::DImgThreadedFilter::initFilter(), DigikamRAWDImgPlugin::DImgRAWLoader::postProcess(), and Digikam::DImgThreadedFilter::run().
◆ starting
void Digikam::DynamicThread::starting |
( |
| ) |
|
|
signalinherited |
Emitted if emitSignals is enabled
◆ state()
◆ stop [1/2]
void Digikam::DynamicThread::stop |
( |
| ) |
|
|
slotinherited |
◆ stop() [2/2]
void Digikam::DynamicThread::stop |
( |
QMutexLocker & |
locker | ) |
|
|
protectedinherited |
◆ SupportedVersions()
static QList<int> Digikam::GreycstorationFilter::SupportedVersions |
( |
| ) |
|
|
inlinestatic |
◆ supportedVersions()
QList< int > Digikam::DImgThreadedFilter::supportedVersions |
( |
| ) |
const |
|
virtualinherited |
◆ threadMutex()
QMutex * Digikam::DynamicThread::threadMutex |
( |
| ) |
const |
|
protectedinherited |
This is the non-recursive mutex used to protect state variables and waiting in this class. You can use it if you want to protect your memory in the same scope as calling start, stop or wait, then using the QMutexLocker variants below. Note that when you have locked this mutex, you must use these variants, as the mutex is non-recursive.
Referenced by Digikam::ScanStateFilter::dispatch(), Digikam::LoadSaveThread::load(), Digikam::ManagedLoadSaveThread::load(), Digikam::ManagedLoadSaveThread::loadThumbnail(), Digikam::ManagedLoadSaveThread::preloadThumbnail(), Digikam::ManagedLoadSaveThread::preloadThumbnailGroup(), Digikam::ManagedLoadSaveThread::prependThumbnailGroup(), Digikam::ScanStateFilter::process(), Digikam::LoadSaveThread::run(), Digikam::ScanStateFilter::run(), Digikam::LoadSaveThread::save(), Digikam::ManagedLoadSaveThread::save(), Digikam::ManagedLoadSaveThread::shutDown(), Digikam::ManagedLoadSaveThread::stopAllTasks(), Digikam::ManagedLoadSaveThread::stopLoading(), Digikam::ManagedLoadSaveThread::stopSaving(), and Digikam::LoadSaveThread::taskHasFinished().
◆ wait [1/2]
void Digikam::DynamicThread::wait |
( |
| ) |
|
|
slotinherited |
◆ wait() [2/2]
void Digikam::DynamicThread::wait |
( |
QMutexLocker & |
locker | ) |
|
|
protectedinherited |
◆ m_destImage
DImg Digikam::DImgThreadedFilter::m_destImage |
|
protectedinherited |
Output image data.
Referenced by Digikam::CBFilter::CBFilter(), Digikam::CurvesFilter::CurvesFilter(), Digikam::FilterActionFilter::filterImage(), Digikam::IccTransformFilter::filterImage(), Digikam::RawProcessingFilter::filterImage(), Digikam::WBFilter::filterImage(), Digikam::InvertFilter::InvertFilter(), Digikam::LevelsFilter::LevelsFilter(), Digikam::DImgThreadedFilter::prepareDestImage(), setup(), and Digikam::SharpenFilter::SharpenFilter().
◆ m_master
◆ m_name
QString Digikam::DImgThreadedFilter::m_name |
|
protectedinherited |
◆ m_orgImage
DImg Digikam::DImgThreadedFilter::m_orgImage |
|
protectedinherited |
Copy of original Image data.
Referenced by Digikam::ContentAwareFilter::ContentAwareFilter(), Digikam::FilterActionFilter::filterImage(), Digikam::IccTransformFilter::filterImage(), Digikam::RawProcessingFilter::filterImage(), Digikam::WBFilter::filterImage(), Digikam::DImgThreadedFilter::prepareDestImage(), Digikam::DImgThreadedFilter::setOriginalImage(), setup(), Digikam::NREstimate::startAnalyse(), Digikam::AutoCrop::startAnalyse(), Digikam::DImgThreadedFilter::startFilter(), and Digikam::DImgThreadedFilter::startFilterDirectly().
◆ m_progressBegin
int Digikam::DImgThreadedFilter::m_progressBegin |
|
protectedinherited |
◆ m_progressCurrent
int Digikam::DImgThreadedFilter::m_progressCurrent |
|
protectedinherited |
◆ m_progressSpan
int Digikam::DImgThreadedFilter::m_progressSpan |
|
protectedinherited |
◆ m_slave
◆ m_version
int Digikam::DImgThreadedFilter::m_version |
|
protectedinherited |
◆ m_wasCancelled
bool Digikam::DImgThreadedFilter::m_wasCancelled |
|
protectedinherited |
The documentation for this class was generated from the following files: