Commit Graph

46 Commits

Author SHA1 Message Date
iabdalkader
db65ab81d8 ports/all: Refactor frame rate control. 2024-02-03 08:59:52 +02:00
Kwabena W. Agyeman
9b0dc3458a common/sensor: Add comments about bayer patterns. 2024-02-01 18:12:17 -08:00
Kwabena W. Agyeman
b5d9bbca30 ports: Move first_line and drop_frame to sensor.c. 2024-02-01 17:57:25 -08:00
Kwabena W. Agyeman
018f2eaed1 ports: Move copy_transposed_line to sensor.h. 2024-02-01 17:40:23 -08:00
iabdalkader
d478f19326 ports/all: Allow sensor_abort() to be called from different contexts.
This patch removes the duplicated `sensor_abort()` logic in the stm32 and mimxrt ports.
This is done by adding a `flush_fifo` argument, which controls the flush operation, and
a `in_irq` argument , which indicates whether `sensor_abort()` is called from within an
IRQ context or not.
2024-01-26 19:42:48 +02:00
Kwabena W. Agyeman
55e12f2499 sensors/gc2145: Add support for a wider FoV. 2023-11-17 08:16:22 -05:00
Kwabena W. Agyeman
abfd430854 sensors/ov7725: Add ioctl to control nightmode. 2023-10-03 14:18:17 -07:00
Kwabena W. Agyeman
3fde9542a8 sensors: Add stubs for controlling sensor blc. 2023-10-03 14:18:06 -07:00
Kwabena W. Agyeman
16c9faa179 sensors: Allow disabling settling time delays. 2023-09-10 18:47:57 -07:00
iabdalkader
35ed56310d misc: Format code. 2023-07-02 21:49:23 +02:00
iabdalkader
e7b5a3f7e0 ports/all: Refactor cambus code.
* Rename cambus to omv_i2c for consistency with other HALs.
* Rename sensor I2C handle from bus to i2c_bus to allow adding
another handle (ex spi_bus).
2023-06-10 22:00:56 +02:00
iabdalkader
cc9ed3a477 sensors: Add support for HIMAX HM0360. 2022-06-02 21:30:40 +02:00
Kwabena W. Agyeman
87c3ac5d95 sensors/mt9v0xx: Add support for color MT9V0xx sensors. 2022-05-29 18:26:58 -07:00
Kwabena W. Agyeman
859d8139db Lepton: Update to support version number in IDE. 2022-03-10 08:27:30 -08:00
Kwabena W. Agyeman
84f53d01bb Update MT driver to support the 22/24/32/34 2022-01-02 13:54:17 -08:00
Kwabena W. Agyeman
7f84ce5010 Add frogeye sensor driver 2021-10-16 12:10:00 -07:00
Kwabena W. Agyeman
bf447e5599 Add yuv image processing support 2021-09-19 09:42:28 -07:00
Ibrahim Abd Elkader
d5ad043c30
Advanced pixel formats. (#1448)
* Advanced pixel formats.

* Use a new pixel format that encodes flags, id and bpp in the pixel format itself.

* Fixes for review comments.
2021-09-09 13:34:31 +02:00
iabdalkader
c28958e04e Replace sensor flags with bit fields.
* Much easier to manipulate and saves some memory.
2021-09-04 22:04:31 +02:00
iabdalkader
5ed5671423 Allow sensor_utils probe_init to take bus id/speed args. 2021-07-15 20:59:58 +02:00
iabdalkader
0491a6a884 Add sensor error codes. 2021-07-01 20:51:42 +02:00
iabdalkader
a700397b07 Move common image sensor driver code to a common file.
* Provide image sensor driver utility functions that can be used by all ports.
* Provide default (weak) functions that can be replaced by port-specific drivers.
2021-06-29 21:37:05 +02:00
iabdalkader
5a1d74d5eb Rename dcmi/dma config functions. 2021-06-29 16:34:32 +02:00
iabdalkader
0da5002b79 Rename sensor functions for consistency across ports. 2021-06-29 14:36:19 +02:00
iabdalkader
25525aaf11 Rename dcmi_abort to sensor_abort. 2021-06-25 00:05:33 +02:00
Kwabena W. Agyeman
f06fce870d Finish MT9M114 driver 2021-06-19 12:08:49 -07:00
Ibrahim Abd Elkader
ce22083930
Merge pull request #1367 from kwagyeman/kwabena/mt9m114_driver_finishing
Add method to get actual xclk freq
2021-06-16 22:53:55 +02:00
Lake Fu
15264b7dac
Support PixArt image sensor PAJ6100 (#1365)
* Support PixArt image sensor PAJ6100
2021-06-16 22:45:14 +02:00
Kwabena W. Agyeman
a1c2ef7612 Add method to get actual xclk freq 2021-06-15 21:32:43 -07:00
Kwabena W. Agyeman
b3d2d5484c Update MT9M114 driver to work 2021-06-13 19:32:34 -07:00
Ibrahim Abd Elkader
a7f2a6fcab
Merge pull request #1356 from kwagyeman/kwabena/make_frame_rate_control_work
Add working frame rate control for all sensors to STM32
2021-06-09 19:41:00 +02:00
Ibrahim Abd Elkader
a3c7d65f26
Merge pull request #1353 from kwagyeman/kwabena/disable_auto_flush
Add disable full flush logic
2021-06-09 19:04:01 +02:00
Kwabena W. Agyeman
8ec2fbcb70 Add feature to disable the full flush on the frame buffer 2021-06-08 21:48:28 -07:00
Kwabena W. Agyeman
9124d765a9 set_frame_rate now works for any FPS 2021-06-08 21:16:53 -07:00
Ibrahim Abd Elkader
af79b8c3cf
Merge pull request #1355 from kwagyeman/kwabena/add_missing_resolutions
Add missing resolutions to sensor driver
2021-06-08 21:20:12 +02:00
Kwabena W. Agyeman
20546fc7bc Add missing resolutions to sensor driver 2021-06-07 12:12:15 -07:00
Kwabena W. Agyeman
5669011efc Fix RGB565 byte reversal flag name 2021-06-07 11:57:14 -07:00
iabdalkader
5810304023 Add basic GC2145 driver 2021-05-14 01:30:47 +02:00
Kwabena W. Agyeman
94462ef746 Add frame complete callback support 2021-05-06 21:12:48 -07:00
Kwabena W. Agyeman
9dd90ae55f Add support for double buffer, triple buffering, and video fifo 2021-04-15 18:13:40 -07:00
iabdalkader
a42f3a6474 Remove streaming mode.
* Will be replaced by double buffering soon.
2021-04-02 21:46:58 +02:00
iabdalkader
9e9009bad2 Add initial MT9M114 driver. 2021-03-30 03:09:33 +02:00
iabdalkader
c729ed9f33 Add 320x320 resolution for HM01B0 2021-03-25 23:07:41 +02:00
iabdalkader
03de0ceb26 Add Himax ioctl to control internal osc.
* Add ioctl to switch to internal OSC for MD.
* Add example to show how to wake up from low-power on MD events.
2021-02-22 03:35:25 +02:00
iabdalkader
d36cfb2313 Implement Himax motion detection with ioctls. 2021-02-21 22:55:29 +02:00
iabdalkader
29226a8b08 Implement sensor driver for nrf/Nano 33 2021-02-21 01:01:00 +02:00