Repository navigation
Infinity3: a working HAL on the vendor MI library - #106
HeytalePazguato wants to merge 1 commit into
Conversation
Replaces the Infinity3 HAL, whose structures and call order did not match the vendor libmi and never produced a picture, with one verified on an Imou LOOC 2 (MSC316DC, OV2735) running OpenIPC: - Video: VI -> VENC H.264/H.265 with CBR or VBR, IDR requests, JPEG snapshots with the requested quality, MJPEG - Audio capture (MI_AI) into the existing MP3/PCM path - Night grayscale through the ISP - media.c and jpeg.c route the Infinity3 cases to it Also needed on this board: - PIN_MAX goes to 127: Infinity3 has GPIOs up to 109, the IR-cut is on 96/97 - With GLIBC_COMPAT (infinity3 on OpenIPC's musl base, which links the glibc-compat shim for the glibc-built vendor libraries) compat.c leaves backtrace, __ctype_*, the pthread cancel hooks and mmap to musl and the shim; the stubs here would be found first and break the vendor libraries. The shim's mm32 calls mmap with musl's 64-bit off_t, so the 32-bit mmap from a903df9 must not override it there. - The encoder configs are zeroed before they are filled, so fields a backend reads but the caller does not set are not stack garbage
PR Summary by QodoReplace broken Infinity3 HAL with working vendor MI integration
AI Description
Merge Risk
|
Code Review by Qodo
1. A slow stream stalls the faster stream
|
The current Infinity3 HAL doesn't match the vendor libmi and never produces a picture. This replaces it with one verified on an Imou LOOC 2 (MSC316DC, OV2735) on OpenIPC:
Also needed for this board: PIN_MAX 127 (IR-cut is on GPIO 96/97), and with GLIBC_COMPAT compat.c leaves a few symbols and mmap to musl and the glibc-compat shim (since a903df9 the 32-bit mmap broke the shim's calls and Divinus crashed at start).
Tested on the camera: RTSP 1080p with audio, snapshot, MP4, night on/off. Builds for all 12 CI targets;
./test.sh --allpasses.This is the first part of #64, split into small PRs as suggested. The rest (Opus audio for browsers, exposure-based day/night, recorder, system login, sub-stream, web page) will follow one at a time.