feature: added option to use a (fast) neutral RAW rendering in 'inspector mode'

This commit is contained in:
Alberto Griggio
2018-03-21 10:47:38 +01:00
parent 4c3c7a4c09
commit d17bb0cfe6
8 changed files with 139 additions and 12 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;