First steps to extend dynamic profiles for Pixel Shift and HDR images

This commit is contained in:
heckflosse
2018-04-05 14:41:02 +02:00
parent 69d362e3ba
commit 15794cc1ba
9 changed files with 31 additions and 1 deletions

View File

@@ -80,7 +80,8 @@ bool DynamicProfileRule::matches (const rtengine::FramesMetaData *im) const
&& shutterspeed (im->getShutterSpeed())
&& expcomp (im->getExpComp())
&& camera (im->getCamera())
&& lens (im->getLens()));
&& lens (im->getLens())
&& rawType(im->getRawType(0)));
}
namespace
@@ -208,6 +209,7 @@ bool DynamicProfileRules::loadRules()
get_double_range (rule.expcomp, kf, group, "expcomp");
get_optional (rule.camera, kf, group, "camera");
get_optional (rule.lens, kf, group, "lens");
get_optional (rule.rawType, kf, group, "rawtype");
try {
rule.profilepath = kf.get_string (group, "profilepath");
@@ -240,6 +242,7 @@ bool DynamicProfileRules::storeRules()
set_double_range (kf, group, "expcomp", rule.expcomp);
set_optional (kf, group, "camera", rule.camera);
set_optional (kf, group, "lens", rule.lens);
set_optional (kf, group, "rawtype", rule.rawType);
kf.set_string (group, "profilepath", rule.profilepath);
}