summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/apps/cam/camera_session.cpp3
-rw-r--r--src/libcamera/property_ids_core.yaml2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/apps/cam/camera_session.cpp b/src/apps/cam/camera_session.cpp
index 8447f932..d78ab2c1 100644
--- a/src/apps/cam/camera_session.cpp
+++ b/src/apps/cam/camera_session.cpp
@@ -165,7 +165,8 @@ void CameraSession::listProperties() const
const ControlId *id = properties::properties.at(key);
std::cout << "Property: " << id->name() << " = "
- << value.toString() << std::endl;
+ << value.toString()
+ << (id->required() ? " [REQUIRED]" : "") << std::endl;
}
}
diff --git a/src/libcamera/property_ids_core.yaml b/src/libcamera/property_ids_core.yaml
index 834454a4..f9e82c42 100644
--- a/src/libcamera/property_ids_core.yaml
+++ b/src/libcamera/property_ids_core.yaml
@@ -8,6 +8,7 @@ vendor: libcamera
controls:
- Location:
type: int32_t
+ required: true
description: |
Camera mounting location
enum:
@@ -29,6 +30,7 @@ controls:
- Rotation:
type: int32_t
+ required: true
description: |
The camera physical mounting rotation. It is expressed as the angular
difference in degrees between two reference systems, one relative to the