- 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:
1 parent
851c39d827
commit
52b42890d6
34 files changed
+2851
-364
No files matched your search
@@ -189,7 +189,12 @@ static char *guest_str(Inst *in, int32_t ptr, int32_t units) {
|
||||
size_t o = 0;
|
||||
for (int i = 0; i < units; i++) {
|
||||
uint32_t cp = u[i];
|
||||
if (cp >= 0xD800 && cp < 0xDC00 && i + 1 < units) { cp = 0x10000 + ((cp - 0xD800) << 10) + (u[i + 1] - 0xDC00); i++; }
|
||||
if (cp >= 0xD800 && cp < 0xDC00 && i + 1 < units && u[i + 1] >= 0xDC00 && u[i + 1] < 0xE000) {
|
||||
cp = 0x10000 + ((cp - 0xD800) << 10) + (u[i + 1] - 0xDC00);
|
||||
i++;
|
||||
} else if (cp >= 0xD800 && cp < 0xE000) {
|
||||
cp = 0xFFFD;
|
||||
}
|
||||
if (cp < 0x80) out[o++] = (char)cp;
|
||||
else if (cp < 0x800) { out[o++] = (char)(0xC0 | (cp >> 6)); out[o++] = (char)(0x80 | (cp & 0x3F)); }
|
||||
else if (cp < 0x10000) { out[o++] = (char)(0xE0 | (cp >> 12)); out[o++] = (char)(0x80 | ((cp >> 6) & 0x3F)); out[o++] = (char)(0x80 | (cp & 0x3F)); }
|
||||
|
||||
Reference in new issue
Block a user