forgectrl: VPU JPEG encode for the camera stream - 7.9 fps

Demosaic the superpixels straight to planar YUV420 and encode on the CODA960 (mainline coda V4L2 mem2mem, node found by personality); libjpeg stays as the automatic fallback and the snapshot path. All camera paths now demosaic from a cached bounce copy of the frame: the V4L2 MMAP capture buffers are uncached, and reading them in-place costs ~340 ms/frame vs 43 ms memcpy + 75 ms cached convert. Per-frame stats logged every 100 frames; /cam/status reports the encoder.
This commit is contained in:
ScottW514
2026-08-03 13:31:48 -04:00
parent 44137ae650
commit d75ff717ac
10 changed files with 425 additions and 23 deletions
@@ -11,6 +11,8 @@ SRC_URI = "\
file://cam.h \
file://debayer.c \
file://debayer.h \
file://vpu_jpeg.c \
file://vpu_jpeg.h \
file://forgectrl.init \
"