"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gmic-qt/src/GmicProcessor.cpp" between
gmic_2.8.1.tar.gz and gmic_2.8.2.tar.gz

About: G’MIC (GREY’s Magic for Image Computing) is a framework for image processing. It provides several different user interfaces to convert/manipulate/filter/ visualize generic image datasets (usable standalone or as plug-in for GIMP and Krita).

GmicProcessor.cpp  (gmic_2.8.1):GmicProcessor.cpp  (gmic_2.8.2)
skipping to change at line 96 skipping to change at line 96
env += QString(" _preview_mode=%1").arg(io.previewMode); env += QString(" _preview_mode=%1").arg(io.previewMode);
if ((_filterContext.requestType == FilterContext::PreviewProcessing) || (_filt erContext.requestType == FilterContext::SynchronousPreviewProcessing)) { if ((_filterContext.requestType == FilterContext::PreviewProcessing) || (_filt erContext.requestType == FilterContext::SynchronousPreviewProcessing)) {
env += QString(" _preview_width=%1").arg(_filterContext.previewWidth); env += QString(" _preview_width=%1").arg(_filterContext.previewWidth);
env += QString(" _preview_height=%1").arg(_filterContext.previewHeight); env += QString(" _preview_height=%1").arg(_filterContext.previewHeight);
env += QString(" _preview_timeout=%1").arg(_filterContext.previewTimeout); env += QString(" _preview_timeout=%1").arg(_filterContext.previewTimeout);
} }
if (_filterContext.requestType == FilterContext::SynchronousPreviewProcessing) { if (_filterContext.requestType == FilterContext::SynchronousPreviewProcessing) {
FilterSyncRunner runner(this, _filterContext.filterName, _filterContext.filt erCommand, _filterContext.filterArguments, env, _filterContext.outputMessageMode ); FilterSyncRunner runner(this, _filterContext.filterName, _filterContext.filt erCommand, _filterContext.filterArguments, env, _filterContext.outputMessageMode );
runner.swapImages(*_gmicImages); runner.swapImages(*_gmicImages);
runner.setImageNames(imageNames); runner.setImageNames(imageNames);
runner.setLogSuffix("./preview/"); runner.setLogSuffix("preview");
cimg_library::cimg::srand(); cimg_library::cimg::srand();
_previewRandomSeed = cimg_library::cimg::_rand(); _previewRandomSeed = cimg_library::cimg::_rand();
_filterExecutionTime.restart(); _filterExecutionTime.restart();
runner.run(); runner.run();
manageSynchonousRunner(runner); manageSynchonousRunner(runner);
recordPreviewFilterExecutionDurationMS(_filterExecutionTime.elapsed()); recordPreviewFilterExecutionDurationMS(_filterExecutionTime.elapsed());
} else if (_filterContext.requestType == FilterContext::PreviewProcessing) { } else if (_filterContext.requestType == FilterContext::PreviewProcessing) {
_filterThread = new FilterThread(this, _filterContext.filterName, _filterCon text.filterCommand, _filterContext.filterArguments, env, _filterContext.outputMe ssageMode); _filterThread = new FilterThread(this, _filterContext.filterName, _filterCon text.filterCommand, _filterContext.filterArguments, env, _filterContext.outputMe ssageMode);
_filterThread->swapImages(*_gmicImages); _filterThread->swapImages(*_gmicImages);
_filterThread->setImageNames(imageNames); _filterThread->setImageNames(imageNames);
_filterThread->setLogSuffix("./preview/"); _filterThread->setLogSuffix("preview");
connect(_filterThread, SIGNAL(finished()), this, SLOT(onPreviewThreadFinishe d()), Qt::QueuedConnection); connect(_filterThread, SIGNAL(finished()), this, SLOT(onPreviewThreadFinishe d()), Qt::QueuedConnection);
cimg_library::cimg::srand(); cimg_library::cimg::srand();
_previewRandomSeed = cimg_library::cimg::_rand(); _previewRandomSeed = cimg_library::cimg::_rand();
_filterExecutionTime.restart(); _filterExecutionTime.restart();
_filterThread->start(); _filterThread->start();
} else if (_filterContext.requestType == FilterContext::FullImageProcessing) { } else if (_filterContext.requestType == FilterContext::FullImageProcessing) {
_lastAppliedFilterName = _filterContext.filterName; _lastAppliedFilterName = _filterContext.filterName;
_lastAppliedCommand = _filterContext.filterCommand; _lastAppliedCommand = _filterContext.filterCommand;
_lastAppliedCommandArguments = _filterContext.filterArguments; _lastAppliedCommandArguments = _filterContext.filterArguments;
_lastAppliedCommandEnv = env; _lastAppliedCommandEnv = env;
_lastAppliedCommandInOutState = _filterContext.inputOutputState; _lastAppliedCommandInOutState = _filterContext.inputOutputState;
_filterThread = new FilterThread(this, _filterContext.filterName, _filterCon text.filterCommand, _filterContext.filterArguments, env, _filterContext.outputMe ssageMode); _filterThread = new FilterThread(this, _filterContext.filterName, _filterCon text.filterCommand, _filterContext.filterArguments, env, _filterContext.outputMe ssageMode);
_filterThread->swapImages(*_gmicImages); _filterThread->swapImages(*_gmicImages);
_filterThread->setImageNames(imageNames); _filterThread->setImageNames(imageNames);
_filterThread->setLogSuffix("./apply/"); _filterThread->setLogSuffix("apply");
connect(_filterThread, SIGNAL(finished()), this, SLOT(onApplyThreadFinished( )), Qt::QueuedConnection); connect(_filterThread, SIGNAL(finished()), this, SLOT(onApplyThreadFinished( )), Qt::QueuedConnection);
cimg_library::cimg::srand(_previewRandomSeed); cimg_library::cimg::srand(_previewRandomSeed);
_filterThread->start(); _filterThread->start();
} }
} }
bool GmicProcessor::isProcessingFullImage() const bool GmicProcessor::isProcessingFullImage() const
{ {
return _filterContext.requestType == FilterContext::FullImageProcessing; return _filterContext.requestType == FilterContext::FullImageProcessing;
} }
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)