浏览代码

Parse Mirror property in device config files

Kristian Vos 6 月之前
父节点
当前提交
a58d289da1
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/parse.c

+ 3 - 0
src/parse.c

@@ -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)) {
 			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)) {
 			mm->focal_length = 0.0f;