Merge pull request #4459 from Beep6581/enhanced-inspector-mode

feature: added option to use a (fast) neutral RAW rendering in 'inspector mode'
This commit is contained in:
Alberto Griggio
2018-03-27 12:17:22 +02:00
committed by GitHub
11 changed files with 170 additions and 13 deletions

View File

@@ -1518,7 +1518,7 @@ void RawImageSource::vflip (Imagefloat* image)
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
int RawImageSource::load (const Glib::ustring &fname)
int RawImageSource::load (const Glib::ustring &fname, bool firstFrameOnly)
{
MyTime t1, t2;
@@ -1535,7 +1535,7 @@ int RawImageSource::load (const Glib::ustring &fname)
if (errCode) {
return errCode;
}
numFrames = ri->getFrameCount();
numFrames = firstFrameOnly ? 1 : ri->getFrameCount();
errCode = 0;