Commit Graph

14 Commits

Author SHA1 Message Date
Kwabena W. Agyeman
0307402a57 ports/alif: Add gamma correction to PAG7936 video.
Gamma correction massively improves the PAG7936 image quality
by increasing the image brightness. Brightness and contrast adjustment
support is also exposed for future automatic control.
2025-11-02 22:35:57 -08:00
iabdalkader
6bf3063a71 scripts/unittest: Fix line_segments.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-10-27 23:15:00 +01:00
iabdalkader
59bfecb2d7 lib/imlib: Use IMLIB_PI instead of M_PI.
Can be defined as double if needed.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-10-27 19:06:55 +01:00
Andrew Leech
5e9bc80a2e lib/imlib: Replace FatFS calls with VFS abstraction.
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
2025-10-14 12:16:16 +11:00
iabdalkader
f8e110ca91 misc: Format code.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-09-28 19:45:07 +02:00
iabdalkader
e5cdccc72e common: Introduce profiling support.
This adds a simple code profiler that leverages both SysTick and
the Performance Monitoring Unit (PMU) available on Armv8.1-M cores.
SysTick provides a simple high-resolution timer source, while the PMU
offers a cycle counter and multiple configurable event counters that
can track low-level performance metrics such as cache misses, pipeline
stalls, etc... See the Armv8.1-M Performance Monitoring User Guide
for additional details.

Function-level instrumentation is enabled using -finstrument-functions
on select files to automatically record statistics on entry/exit.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-08-24 16:57:06 +02:00
Kwabena W. Agyeman
051396b4b8 modules/py_image: Add event histogram drawing method. 2025-08-09 09:32:10 -07:00
Kwabena W. Agyeman
af9679c3a0 lib/imlib: Add event camera imlib data structure. 2025-08-09 09:32:10 -07:00
Kwabena W. Agyeman
47c5618231 lib/imlib: Add transform argument to draw_image. 2025-07-31 13:13:45 -07:00
Kwabena W. Agyeman
a63c8ba8d6 lib/imlib: Remove unused functions. 2025-06-27 19:16:29 -07: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
iabdalkader
c7d84b8ca5 lib/imlib: Add deep copy flag to image_copy.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-06-25 21:16:00 +02:00
Kwabena W. Agyeman
8e543c2a96 lib/imlib: Refactor fill_image_from_lepton out of py_fir_lepton. 2025-06-23 14:49:37 -07:00
iabdalkader
daf2bb30da misc: Restructure repo.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
2025-04-13 08:28:34 +02:00