- 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
@@ -35,7 +35,7 @@
|
||||
#define BTN_LEFT_CODE 0x110
|
||||
#define BTN_RIGHT_CODE 0x111
|
||||
#define TOUCH_LONG_MS 500
|
||||
#define TOUCH_DRAG_PX 12
|
||||
#define TOUCH_DRAG_PX 18
|
||||
|
||||
/* ---- damage ---- */
|
||||
|
||||
@@ -451,7 +451,7 @@ static void handle_li_event(struct libinput_event *ev) {
|
||||
if (g_touch_state == TOUCH_PENDING) {
|
||||
int dx = g_px - g_touch_x0;
|
||||
int dy = g_py - g_touch_y0;
|
||||
if (dx < -TOUCH_DRAG_PX || dx > TOUCH_DRAG_PX || dy < -TOUCH_DRAG_PX || dy > TOUCH_DRAG_PX) {
|
||||
if (dx * dx + dy * dy > TOUCH_DRAG_PX * TOUCH_DRAG_PX) {
|
||||
touch_timer_disarm();
|
||||
g_touch_state = TOUCH_DRAG;
|
||||
q_push(EV_MOVE, g_touch_x0, g_touch_y0, 0, 0);
|
||||
@@ -473,9 +473,12 @@ static void handle_li_event(struct libinput_event *ev) {
|
||||
touch_timer_disarm();
|
||||
g_touch_state = TOUCH_IDLE;
|
||||
if (st == TOUCH_PENDING) {
|
||||
g_px = g_touch_x0;
|
||||
g_py = g_touch_y0;
|
||||
q_push(EV_MOVE, g_px, g_py, 0, 0);
|
||||
q_push(EV_BUTTON, BTN_LEFT_CODE, 1, 0, 0);
|
||||
q_push(EV_BUTTON, BTN_LEFT_CODE, 0, 0, 0);
|
||||
cursor_apply();
|
||||
} else if (st == TOUCH_DRAG) {
|
||||
q_push(EV_BUTTON, BTN_LEFT_CODE, 0, 0, 0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user