reworked pixelshift code and temporary removed Fuji S5 dual frame support
This commit is contained in:
@@ -138,7 +138,8 @@ void dfInfo::updateRawImage()
|
||||
std::list<Glib::ustring>::iterator iName = pathNames.begin();
|
||||
ri = new RawImage(*iName); // First file used also for extra pixels informations (width,height, shutter, filters etc.. )
|
||||
|
||||
if( ri->loadRaw(true)) {
|
||||
unsigned int imageNum = 0;
|
||||
if( ri->loadRaw(true, imageNum)) {
|
||||
delete ri;
|
||||
ri = nullptr;
|
||||
} else {
|
||||
@@ -163,7 +164,7 @@ void dfInfo::updateRawImage()
|
||||
for( ++iName; iName != pathNames.end(); ++iName) {
|
||||
RawImage* temp = new RawImage(*iName);
|
||||
|
||||
if( !temp->loadRaw(true)) {
|
||||
if( !temp->loadRaw(true,imageNum)) {
|
||||
temp->compress_image(); //\ TODO would be better working on original, because is temporary
|
||||
nFiles++;
|
||||
|
||||
@@ -199,8 +200,9 @@ void dfInfo::updateRawImage()
|
||||
}
|
||||
} else {
|
||||
ri = new RawImage(pathname);
|
||||
unsigned int imageNum = 0;
|
||||
|
||||
if( ri->loadRaw(true)) {
|
||||
if( ri->loadRaw(true,imageNum)) {
|
||||
delete ri;
|
||||
ri = nullptr;
|
||||
} else {
|
||||
@@ -365,7 +367,8 @@ dfInfo* DFManager::addFileInfo (const Glib::ustring& filename, bool pool)
|
||||
}
|
||||
|
||||
RawImage ri (filename);
|
||||
int res = ri.loadRaw (false); // Read informations about shot
|
||||
unsigned int imageNum = 0;
|
||||
int res = ri.loadRaw (false, imageNum); // Read informations about shot
|
||||
|
||||
if (res != 0) {
|
||||
return nullptr;
|
||||
|
Reference in New Issue
Block a user