diff --git a/media-libs/libcamera/files/libcamera-devel-v6-5-5-ipa-libcamera-add-support-for-ov8858-sensor.diff b/media-libs/libcamera/files/libcamera-devel-v6-5-5-ipa-libcamera-add-support-for-ov8858-sensor.diff new file mode 100644 index 0000000..244ae30 --- /dev/null +++ b/media-libs/libcamera/files/libcamera-devel-v6-5-5-ipa-libcamera-add-support-for-ov8858-sensor.diff @@ -0,0 +1,47 @@ +diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp +index 35056bec..f2040cbd 100644 +--- a/src/ipa/libipa/camera_sensor_helper.cpp ++++ b/src/ipa/libipa/camera_sensor_helper.cpp +@@ -476,6 +476,17 @@ public: + }; + REGISTER_CAMERA_SENSOR_HELPER("ov5693", CameraSensorHelperOv5693) + ++class CameraSensorHelperOv8858 : public CameraSensorHelper ++{ ++public: ++ CameraSensorHelperOv8858() ++ { ++ gainType_ = AnalogueGainLinear; ++ gainConstants_.linear = { 1, 0, 0, 16 }; ++ } ++}; ++REGISTER_CAMERA_SENSOR_HELPER("m00_f_ov8858", CameraSensorHelperOv8858) ++ + class CameraSensorHelperOv8865 : public CameraSensorHelper + { + public: +diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp +index e5f27f06..d0757c15 100644 +--- a/src/libcamera/camera_sensor_properties.cpp ++++ b/src/libcamera/camera_sensor_properties.cpp +@@ -146,6 +146,20 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen + */ + }, + } }, ++ { "m00_f_ov8858", { ++ .unitCellSize = { 1200, 1200 }, ++ .testPatternModes = { ++ { controls::draft::TestPatternModeOff, 0 }, ++ { controls::draft::TestPatternModeColorBars, 1 }, ++ /* ++ * No best corresponding test pattern for: ++ * 1: "Vertical Color Bar Type 1", ++ * 2: "Vertical Color Bar Type 2", ++ * 3: "Vertical Color Bar Type 3", ++ * 4: "Vertical Color Bar Type 4" ++ */ ++ }, ++ } }, + { "ov8865", { + .unitCellSize = { 1400, 1400 }, + .testPatternModes = { diff --git a/media-libs/libcamera/libcamera-0.0.4.ebuild b/media-libs/libcamera/libcamera-0.0.4-r1.ebuild similarity index 89% rename from media-libs/libcamera/libcamera-0.0.4.ebuild rename to media-libs/libcamera/libcamera-0.0.4-r1.ebuild index aac9a80..b4ffda4 100644 --- a/media-libs/libcamera/libcamera-0.0.4.ebuild +++ b/media-libs/libcamera/libcamera-0.0.4-r1.ebuild @@ -26,6 +26,10 @@ DEPEND=" dev-libs/openssl $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') " + +PATCHES=( + "${FILESDIR}"/libcamera-devel-v6-5-5-ipa-libcamera-add-support-for-ov8858-sensor.diff + ) src_configure() { local emesonargs=(