Updated frame handling with any type of hierarchy (see #4008)

Images can now be detected in nested IFDs or as root IFDs.
This commit is contained in:
Hombre57
2017-09-16 22:30:07 +02:00
parent ae19b6485a
commit ee0bff4124
11 changed files with 667 additions and 494 deletions

View File

@@ -189,13 +189,13 @@ void ExifPanel::setImageData (const FramesMetaData* id)
exifTreeModel->clear ();
if (id) {
for (unsigned int frameNum = 0; frameNum < id->getFrameCount (); ++frameNum) {
if ( id->getExifData (frameNum)) {
//id->getExifData ()->printAll ();
if (frameNum > 0) {
for (unsigned int rootNum = 0; rootNum < id->getRootCount (); ++rootNum) {
if ( id->getRootExifData (rootNum)) {
//id->getRootExifData ()->printAll ();
if (rootNum > 0) {
addSeparator();
}
addDirectory (id->getExifData (frameNum), exifTreeModel->children());
addDirectory (id->getRootExifData (rootNum), exifTreeModel->children());
}
}
}