fixed parsing of dynamic range

This commit is contained in:
froejdh_e
2026-01-19 15:20:37 +01:00
parent c0357e2020
commit dceda21496
3 changed files with 11 additions and 3 deletions
+2 -2
View File
@@ -244,8 +244,8 @@ void RawMasterFile::parse_json(std::istream &is) {
// TODO! Not valid for CTB but not changing api right now!
// Not all detectors write the bitdepth but in case
// its not there it is 16
if(j.contains("Bit Depth") && j["Bit Depth"].is_number()){
m_bitdepth = j["Bit Depth"];
if(j.contains("Dynamic Range") && j["Dynamic Range"].is_number()){
m_bitdepth = j["Dynamic Range"];
} else {
m_bitdepth = 16;
}