Camera: C ISP pipeline, contrast autofocus, and VFR video
CI / test (push) Canceled after 0s

- Add chandra-camera-isp.c (C/OpenMP) for Quad-Bayer unpack, CCM, and tone mapping, with a NumPy fallback when it is not built
- Add non-blocking contrast-detection VCM autofocus, with lens subdev discovery on the sensor's I2C bus
- Tune Quad-Bayer AE: a video-mode vblank cap, damped steps, and full analog gain before extending blanking
- Record variable-frame-rate video through a streaming Matroska muxer, and count dropped frames
- Ship libcamera IPA tuning files for imx376, imx519, and uncalibrated sensors
- Map camera buffers by fd and sync them with dma-buf ioctls
This commit is contained in:
nandi committed 2026-11-28 19:25:43 -08:00
1 parent 851c39d827
commit 52b42890d6
34 files changed
+2851 -364

No files matched your search

+7
View File
@@ -61,3 +61,10 @@ void mp_font_bitmap(int32_t slot, int32_t cp, int32_t size, int32_t w, int32_t h
if (w <= 0 || h <= 0 || Moonbit_array_length(buf) < w * h) return;
stbtt_MakeGlyphBitmap(fi, (unsigned char *)buf, w, h, w, scale, scale, stbtt_FindGlyphIndex(fi, cp));
}
/* 1 when `slot` has a glyph for code point `cp` (not .notdef), 0 otherwise. */
MOONBIT_FFI_EXPORT
int32_t mp_font_has_glyph(int32_t slot, int32_t cp) {
if (slot < 0 || slot >= MAX_SLOTS || !font_data[slot]) return 0;
return stbtt_FindGlyphIndex(&fonts[slot], cp) != 0 ? 1 : 0;
}