Prepare rtengine to allow extraction of individual frames from multi frame raw files (i.e. Pentax pixel shift)

This commit is contained in:
heckflosse
2016-11-01 02:20:43 +01:00
parent b961e31401
commit 3f13a98135
2 changed files with 11 additions and 2 deletions

View File

@@ -398,7 +398,7 @@ skip_block:
}
}
int RawImage::loadRaw (bool loadData, bool closeFile, ProgressListener *plistener, double progressRange)
int RawImage::loadRaw (bool loadData, bool closeFile, ProgressListener *plistener, double progressRange, unsigned int frameNum)
{
ifname = filename.c_str();
image = nullptr;
@@ -435,6 +435,8 @@ int RawImage::loadRaw (bool loadData, bool closeFile, ProgressListener *plistene
return 2;
}
setFrameNumber(frameNum);
if (flip == 5) {
this->rotate_deg = 270;
} else if (flip == 3) {