Commit Graph

19 Commits

Author SHA1 Message Date
iabdalkader
fbc8d14cda modules: Update framebuffer API.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-09-02 16:05:55 +02:00
iabdalkader
ae6c9990bf modules: Use private CSI resolution table.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-08-14 11:40:45 +02:00
Kwabena W. Agyeman
c231f66555 drivers/sensors: Add different event buffer sizes for genx320. 2025-08-09 11:03:07 -07:00
Kwabena W. Agyeman
3908807509 drivers/sensors: Add calibration ioctl for the genx320. 2025-08-09 10:51:08 -07:00
Kwabena W. Agyeman
e591ccd735 drivers/sensors: Add RAW event output mode for the genx320. 2025-08-09 10:51:07 -07:00
Kwabena W. Agyeman
b428655767 modules/py_csi_ng: Fix NULL image arg.
omv_csi_snapshot() implementations generally expect
image to not be NULL and crash if it is.
2025-08-09 09:32:10 -07:00
Kwabena W. Agyeman
ea0505d52e common/omv_csi: Allow IOCTLs to return positive values. 2025-08-09 09:32:10 -07:00
iabdalkader
96f1675023 modules/py_csi_ng: Support custom frame sizes.
Remove the constants for custom resolutions and support
setting a custom frame size with `csi.framesize((w, h))`.
Note: The frame size must be supported by the sensor driver.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-08-09 18:03:31 +02:00
iabdalkader
9112cf2aae misc: Clean-up CSI flags.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-08-09 12:00:59 +02:00
Kwabena W. Agyeman
47c5618231 lib/imlib: Add transform argument to draw_image. 2025-07-31 13:13:45 -07:00
iabdalkader
0b8607307f modules/py_csi_ng: Fix printed slave address.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-07-27 09:52:15 +02:00
iabdalkader
a88d5e5b0c modules/csi: Add print function.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-07-23 18:25:01 +02:00
iabdalkader
85a1096986 modules: Use the new framebuffer API.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>

modules
2025-07-23 18:24:55 +02:00
iabdalkader
0bc0385eb4 common/csi: Remove csi.fb() function.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-07-16 23:42:47 +02:00
Kwabena W. Agyeman
e14bbe586d lib/imlib: Fix update_jpeg_buffer to update from the passed image.
framebuffer_update_jpeg_buffer was previously bugged as it always
updated the jpeg buffer from the frame buffer versus the image
object it was attached to. e.g. img.flush() always flushed the
frame buffer and not the image object it was called on.
2025-07-07 20:39:29 -07:00
Ibrahim Abdelkader
81dd44aef4
Merge pull request #2735 from openmv/refactor_csi_init
Some checks are pending
🔥 Firmware Build / build-firmware (ARDUINO_GIGA) (push) Waiting to run
🔥 Firmware Build / build-firmware (ARDUINO_NANO_33_BLE_SENSE) (push) Waiting to run
🔥 Firmware Build / build-firmware (ARDUINO_NANO_RP2040_CONNECT) (push) Waiting to run
🔥 Firmware Build / build-firmware (ARDUINO_NICLA_VISION) (push) Waiting to run
🔥 Firmware Build / build-firmware (ARDUINO_PORTENTA_H7) (push) Waiting to run
🔥 Firmware Build / build-firmware (DOCKER) (push) Waiting to run
🔥 Firmware Build / build-firmware (OPENMV2) (push) Waiting to run
🔥 Firmware Build / build-firmware (OPENMV3) (push) Waiting to run
🔥 Firmware Build / build-firmware (OPENMV4) (push) Waiting to run
🔥 Firmware Build / build-firmware (OPENMV4P) (push) Waiting to run
🔥 Firmware Build / build-firmware (OPENMVPT) (push) Waiting to run
🔥 Firmware Build / build-firmware (OPENMV_AE3) (push) Waiting to run
🔥 Firmware Build / build-firmware (OPENMV_N6) (push) Waiting to run
🔥 Firmware Build / build-firmware (OPENMV_RT1060) (push) Waiting to run
🔥 Firmware Build / code-size-report (push) Blocked by required conditions
🔥 Firmware Build / stable-release (push) Blocked by required conditions
🔥 Firmware Build / development-release (push) Blocked by required conditions
misc: Refactor CSI initialization code.
2025-06-27 22:42:05 +03:00
iabdalkader
4ded9fba91 common: Remove xalloc.
Originally meant to abstract gc_collect but we could just use
m_alloc and friends. Also was meant to provide functions like
alloc0, alloc_maybe etc.. which are all available in MP anyway.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-06-27 14:50:16 +02:00
Kwabena W. Agyeman
8cd7a309fd modules/py_csi_ng: Implement snapshot() image argument. 2025-06-27 09:30:06 +02:00
iabdalkader
522560a48e modules/py_csi_ng: Add new CSI API.
A modern API that supports multiple CSI instances.
The API is a work in progress and is not backwards
compatible, but it can be enabled and used at the
same time as the old "sensor" module.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-06-25 21:15:20 +02:00