metadata: detect pixelshift files from sony and fujifilm
(cherry picked from commit 6554778f7bc6ce50c3bb8a98ca1907cb945c2e34)
This commit is contained in:
parent
a73e74f9cc
commit
f2248dce9d
@ -424,6 +424,30 @@ FramesData::FramesData(const Glib::ustring &fname) :
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (make == "SONY") {
|
||||||
|
if (find_exif_tag("Exif.SubImage1.BitsPerSample") && pos->toLong() == 14) {
|
||||||
|
if (find_exif_tag("Exif.SubImage1.SamplesPerPixel") && pos->toLong() == 4 &&
|
||||||
|
find_exif_tag("Exif.SubImage1.PhotometricInterpretation") && pos->toLong() == 32892 &&
|
||||||
|
find_exif_tag("Exif.SubImage1.Compression") && pos->toLong() == 1) {
|
||||||
|
isPixelShift = true;
|
||||||
|
}
|
||||||
|
} else if (bps != exif.end() && bps->toLong() == 14 &&
|
||||||
|
spp != exif.end() && spp->toLong() == 4 &&
|
||||||
|
c != exif.end() && c->toLong() == 1 &&
|
||||||
|
find_exif_tag("Exif.Image.Software") &&
|
||||||
|
pos->toString() == "make_arq") {
|
||||||
|
isPixelShift = true;
|
||||||
|
}
|
||||||
|
} else if (make == "FUJIFILM") {
|
||||||
|
if (bps != exif.end() && bps->toLong() == 16 &&
|
||||||
|
spp != exif.end() && spp->toLong() == 4 &&
|
||||||
|
c != exif.end() && c->toLong() == 1 &&
|
||||||
|
find_exif_tag("Exif.Image.Software") &&
|
||||||
|
pos->toString() == "make_arq") {
|
||||||
|
isPixelShift = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sampleFormat = IIOSF_UNKNOWN;
|
sampleFormat = IIOSF_UNKNOWN;
|
||||||
|
|
||||||
if (sf == exif.end())
|
if (sf == exif.end())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user