- 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
@@ -389,13 +389,14 @@
|
||||
mode: 'one',
|
||||
sx: e.clientX, sy: e.clientY,
|
||||
lx: e.clientX, ly: e.clientY,
|
||||
sfx: fx, sfy: fy,
|
||||
fx, fy, moved: false, dragging: false, longFired: false,
|
||||
longTimer: setTimeout(() => {
|
||||
if (!gesture || gesture.mode !== 'one' || gesture.moved) return;
|
||||
gesture.longFired = true;
|
||||
if (navigator.vibrate) navigator.vibrate(25);
|
||||
const rx = trackpadMode ? cursorX : gesture.fx;
|
||||
const ry = trackpadMode ? cursorY : gesture.fy;
|
||||
const rx = trackpadMode ? cursorX : gesture.sfx;
|
||||
const ry = trackpadMode ? cursorY : gesture.sfy;
|
||||
sendJson({ t: 'tap', x: rx, y: ry, b: 3 });
|
||||
}, 450)
|
||||
};
|
||||
@@ -435,13 +436,14 @@
|
||||
}
|
||||
const [fx, fy] = clientToFb(e.clientX, e.clientY);
|
||||
gesture.fx = fx; gesture.fy = fy;
|
||||
if (!gesture.moved && dist > 10) {
|
||||
if (!gesture.moved && dist > 14) {
|
||||
gesture.moved = true;
|
||||
clearLongTimer();
|
||||
if (!gesture.longFired) {
|
||||
gesture.dragging = true;
|
||||
sendJson({ t: 'ptr', x: fx, y: fy });
|
||||
sendJson({ t: 'ptr', x: gesture.sfx, y: gesture.sfy });
|
||||
sendJson({ t: 'btn', b: 1, d: 1 });
|
||||
sendJson({ t: 'ptr', x: fx, y: fy });
|
||||
}
|
||||
} else if (gesture.dragging) {
|
||||
const now = performance.now();
|
||||
@@ -477,8 +479,8 @@
|
||||
sendJson({ t: 'ptr', x: fx, y: fy });
|
||||
sendJson({ t: 'btn', b: 1, d: 0 });
|
||||
} else if (!gesture.moved && !gesture.longFired) {
|
||||
const tx = trackpadMode ? cursorX : gesture.fx;
|
||||
const ty = trackpadMode ? cursorY : gesture.fy;
|
||||
const tx = trackpadMode ? cursorX : gesture.sfx;
|
||||
const ty = trackpadMode ? cursorY : gesture.sfy;
|
||||
sendJson({ t: 'tap', x: tx, y: ty, b: 1 });
|
||||
}
|
||||
gesture = null;
|
||||
|
||||
Reference in new issue
Block a user