summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/camera_sensor.h9
-rw-r--r--include/libcamera/internal/camera_sensor_properties.h3
2 files changed, 8 insertions, 4 deletions
diff --git a/include/libcamera/internal/camera_sensor.h b/include/libcamera/internal/camera_sensor.h
index 788c2fa3..bb70ed9e 100644
--- a/include/libcamera/internal/camera_sensor.h
+++ b/include/libcamera/internal/camera_sensor.h
@@ -14,8 +14,10 @@
#include <libcamera/base/class.h>
#include <libcamera/base/log.h>
+#include <libcamera/control_ids.h>
#include <libcamera/controls.h>
#include <libcamera/geometry.h>
+
#include <libcamera/ipa/core_ipa_interface.h>
#include "libcamera/internal/formats.h"
@@ -41,7 +43,7 @@ public:
const std::vector<unsigned int> &mbusCodes() const { return mbusCodes_; }
const std::vector<Size> sizes(unsigned int mbusCode) const;
Size resolution() const;
- const std::vector<int32_t> &testPatternModes() const
+ const std::vector<controls::draft::TestPatternModeEnum> &testPatternModes() const
{
return testPatternModes_;
}
@@ -74,7 +76,8 @@ private:
void initVimcDefaultProperties();
void initStaticProperties();
void initTestPatternModes(
- const std::map<int32_t, int32_t> &testPatternModeMap);
+ const std::map<controls::draft::TestPatternModeEnum, int32_t>
+ &testPatternModeMap);
int initProperties();
const MediaEntity *entity_;
@@ -87,7 +90,7 @@ private:
V4L2Subdevice::Formats formats_;
std::vector<unsigned int> mbusCodes_;
std::vector<Size> sizes_;
- std::vector<int32_t> testPatternModes_;
+ std::vector<controls::draft::TestPatternModeEnum> testPatternModes_;
Size pixelArraySize_;
Rectangle activeArea_;
diff --git a/include/libcamera/internal/camera_sensor_properties.h b/include/libcamera/internal/camera_sensor_properties.h
index af381a12..1ee3cb99 100644
--- a/include/libcamera/internal/camera_sensor_properties.h
+++ b/include/libcamera/internal/camera_sensor_properties.h
@@ -10,6 +10,7 @@
#include <map>
#include <string>
+#include <libcamera/control_ids.h>
#include <libcamera/geometry.h>
namespace libcamera {
@@ -18,7 +19,7 @@ struct CameraSensorProperties {
static const CameraSensorProperties *get(const std::string &sensor);
Size unitCellSize;
- std::map<int32_t, int32_t> testPatternModes;
+ std::map<controls::draft::TestPatternModeEnum, int32_t> testPatternModes;
};
} /* namespace libcamera */