summaryrefslogtreecommitdiffstats
path: root/camera/src/camera_metadata_tag_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'camera/src/camera_metadata_tag_info.c')
-rw-r--r--camera/src/camera_metadata_tag_info.c64
1 files changed, 32 insertions, 32 deletions
diff --git a/camera/src/camera_metadata_tag_info.c b/camera/src/camera_metadata_tag_info.c
index 94bead3..3ac8d9b 100644
--- a/camera/src/camera_metadata_tag_info.c
+++ b/camera/src/camera_metadata_tag_info.c
@@ -1655,14 +1655,14 @@ int camera_metadata_enum_snprint(uint32_t tag,
}
case ANDROID_CONTROL_AF_REGIONS_SET: {
switch (value) {
- case ANDROID_CONTROL_AF_REGIONS_SET_TRUE:
- msg = "TRUE";
- ret = 0;
- break;
case ANDROID_CONTROL_AF_REGIONS_SET_FALSE:
msg = "FALSE";
ret = 0;
break;
+ case ANDROID_CONTROL_AF_REGIONS_SET_TRUE:
+ msg = "TRUE";
+ ret = 0;
+ break;
default:
msg = "error: enum value out of range";
}
@@ -1670,14 +1670,14 @@ int camera_metadata_enum_snprint(uint32_t tag,
}
case ANDROID_CONTROL_AE_REGIONS_SET: {
switch (value) {
- case ANDROID_CONTROL_AE_REGIONS_SET_TRUE:
- msg = "TRUE";
- ret = 0;
- break;
case ANDROID_CONTROL_AE_REGIONS_SET_FALSE:
msg = "FALSE";
ret = 0;
break;
+ case ANDROID_CONTROL_AE_REGIONS_SET_TRUE:
+ msg = "TRUE";
+ ret = 0;
+ break;
default:
msg = "error: enum value out of range";
}
@@ -1685,14 +1685,14 @@ int camera_metadata_enum_snprint(uint32_t tag,
}
case ANDROID_CONTROL_AWB_REGIONS_SET: {
switch (value) {
- case ANDROID_CONTROL_AWB_REGIONS_SET_TRUE:
- msg = "TRUE";
- ret = 0;
- break;
case ANDROID_CONTROL_AWB_REGIONS_SET_FALSE:
msg = "FALSE";
ret = 0;
break;
+ case ANDROID_CONTROL_AWB_REGIONS_SET_TRUE:
+ msg = "TRUE";
+ ret = 0;
+ break;
default:
msg = "error: enum value out of range";
}
@@ -2488,14 +2488,14 @@ int camera_metadata_enum_snprint(uint32_t tag,
}
case ANDROID_SCALER_CROP_REGION_SET: {
switch (value) {
- case ANDROID_SCALER_CROP_REGION_SET_TRUE:
- msg = "TRUE";
- ret = 0;
- break;
case ANDROID_SCALER_CROP_REGION_SET_FALSE:
msg = "FALSE";
ret = 0;
break;
+ case ANDROID_SCALER_CROP_REGION_SET_TRUE:
+ msg = "TRUE";
+ ret = 0;
+ break;
default:
msg = "error: enum value out of range";
}
@@ -4330,45 +4330,45 @@ int camera_metadata_enum_value(uint32_t tag,
break;
}
case ANDROID_CONTROL_AF_REGIONS_SET: {
- enumName = "TRUE";
+ enumName = "FALSE";
if (strncmp(name, enumName, size) == 0) {
- *value = ANDROID_CONTROL_AF_REGIONS_SET_TRUE;
+ *value = ANDROID_CONTROL_AF_REGIONS_SET_FALSE;
ret = 0;
break;
}
- enumName = "FALSE";
+ enumName = "TRUE";
if (strncmp(name, enumName, size) == 0) {
- *value = ANDROID_CONTROL_AF_REGIONS_SET_FALSE;
+ *value = ANDROID_CONTROL_AF_REGIONS_SET_TRUE;
ret = 0;
break;
}
break;
}
case ANDROID_CONTROL_AE_REGIONS_SET: {
- enumName = "TRUE";
+ enumName = "FALSE";
if (strncmp(name, enumName, size) == 0) {
- *value = ANDROID_CONTROL_AE_REGIONS_SET_TRUE;
+ *value = ANDROID_CONTROL_AE_REGIONS_SET_FALSE;
ret = 0;
break;
}
- enumName = "FALSE";
+ enumName = "TRUE";
if (strncmp(name, enumName, size) == 0) {
- *value = ANDROID_CONTROL_AE_REGIONS_SET_FALSE;
+ *value = ANDROID_CONTROL_AE_REGIONS_SET_TRUE;
ret = 0;
break;
}
break;
}
case ANDROID_CONTROL_AWB_REGIONS_SET: {
- enumName = "TRUE";
+ enumName = "FALSE";
if (strncmp(name, enumName, size) == 0) {
- *value = ANDROID_CONTROL_AWB_REGIONS_SET_TRUE;
+ *value = ANDROID_CONTROL_AWB_REGIONS_SET_FALSE;
ret = 0;
break;
}
- enumName = "FALSE";
+ enumName = "TRUE";
if (strncmp(name, enumName, size) == 0) {
- *value = ANDROID_CONTROL_AWB_REGIONS_SET_FALSE;
+ *value = ANDROID_CONTROL_AWB_REGIONS_SET_TRUE;
ret = 0;
break;
}
@@ -5257,15 +5257,15 @@ int camera_metadata_enum_value(uint32_t tag,
break;
}
case ANDROID_SCALER_CROP_REGION_SET: {
- enumName = "TRUE";
+ enumName = "FALSE";
if (strncmp(name, enumName, size) == 0) {
- *value = ANDROID_SCALER_CROP_REGION_SET_TRUE;
+ *value = ANDROID_SCALER_CROP_REGION_SET_FALSE;
ret = 0;
break;
}
- enumName = "FALSE";
+ enumName = "TRUE";
if (strncmp(name, enumName, size) == 0) {
- *value = ANDROID_SCALER_CROP_REGION_SET_FALSE;
+ *value = ANDROID_SCALER_CROP_REGION_SET_TRUE;
ret = 0;
break;
}