|
@@ -272,6 +272,9 @@ load_camera(libmegapixels_devconfig *config, config_t *cfg, const char *name, in
|
|
if (!config_setting_lookup_int(mode, "Rotate", &mm->rotation)) {
|
|
if (!config_setting_lookup_int(mode, "Rotate", &mm->rotation)) {
|
|
mm->rotation = 0;
|
|
mm->rotation = 0;
|
|
}
|
|
}
|
|
|
|
+ if (!config_setting_lookup_bool(mode, "Mirror", &mm->mirrored)) {
|
|
|
|
+ mm->mirrored = 0;
|
|
|
|
+ }
|
|
|
|
|
|
if (!config_setting_lookup_float(mode, "FocalLength", &mm->focal_length)) {
|
|
if (!config_setting_lookup_float(mode, "FocalLength", &mm->focal_length)) {
|
|
mm->focal_length = 0.0f;
|
|
mm->focal_length = 0.0f;
|