From patchwork Wed Oct 9 09:26:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cheng-Hao Yang X-Patchwork-Id: 21559 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id E57DCC32DE for ; Wed, 9 Oct 2024 09:33:14 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 00BB76353B; Wed, 9 Oct 2024 11:33:13 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="h6u+wRPM"; dkim-atps=neutral Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 7171A63527 for ; Wed, 9 Oct 2024 11:33:12 +0200 (CEST) Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-20bb39d97d1so57742905ad.2 for ; Wed, 09 Oct 2024 02:33:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1728466390; x=1729071190; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=YH8CQe8duF870j6sQNQJQp/WyS3OSJu5wr5nBxGJ/5o=; b=h6u+wRPMtAiiZZ0rz8U6cNlaNbOXjUVSuTT9CHunx8FUiapm7PKI19YPVtmiDOmC3e pg2FmtihZ4AWVGUCWBPOtgeiNG8XfLHCMjJZWElrbZgZbMN4OpMCiavP7h0LVkFUFQtj FEMRUZp1UuO9koVVNeZuq3ns1LlUZec7Icd90= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728466390; x=1729071190; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YH8CQe8duF870j6sQNQJQp/WyS3OSJu5wr5nBxGJ/5o=; b=OPh8kYvr7UfXkKzEa1RjVXJ4NZR3/ofZG3La31pSSgmjqLpFsMiD2gmWaAbLPLOZ9Y w3sO9tpN6ymqnVnbkOWleENGhxm7LquA1/8dUjBkcTUoM5+9K3hd9cUzeHS4JfRBLvWO Yj9WVFPYUaQ8ryQzkdop+FcQxvO/ibWeH11g7m5sW4fTNPNcj4FbjE8zpxNr7luPkFyP r9wcoH7P2M5xSnWWSqpFzP1qZqt7M+KtTRDk+oGXs9O00g/EDJROrdyRXCa8TsNgJyXe lo2XT5u9JLYPKasG0eKZNML9nKtVKh97PGZTGKSEHe+Q41gnm7fwbao4Jj0h/MNdS5AV z2fg== X-Gm-Message-State: AOJu0YwtmJ+snTBQxPpj/MqA41nHoVeH23CFv2E9iMYNVaftdO3ckwDM 0XE42/5mSd9r+jZDsZWpc00wpD4p4JVR0jOB9x5Cr+JKRr7ig11Z2eHjcIP9LxQbFyZc96ZZH5A = X-Google-Smtp-Source: AGHT+IHUN+vNmFYuKJsprxcbpvwpIYwfBzQRjz/dqyAVorsABT4gEg48Hr4ymMH7/zK0MMkJEORFPw== X-Received: by 2002:a17:902:d4c5:b0:207:18f5:7e78 with SMTP id d9443c01a7336-20c637d29eamr27047975ad.48.1728466390599; Wed, 09 Oct 2024 02:33:10 -0700 (PDT) Received: from chenghaoyang-low.c.googlers.com.com (199.211.81.34.bc.googleusercontent.com. [34.81.211.199]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c13939b27sm67313145ad.136.2024.10.09.02.33.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2024 02:33:10 -0700 (PDT) From: Harvey Yang To: libcamera-devel@lists.libcamera.org Cc: Harvey Yang Subject: [PATCH 0/1] Add requestBufferReady signal in V4L2VideoDevice Date: Wed, 9 Oct 2024 09:26:38 +0000 Message-ID: <20241009093303.2996819-1-chenghaoyang@chromium.org> X-Mailer: git-send-email 2.47.0.rc0.187.ge670bccf7e-goog MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi folks, This patch adds a new signal in V4L2VideoDevice that not only reports a completed buffer, but also its request fd. This helps save some unnecessary mappings from buffers to requests. We might also consider removing the signal bufferReady, if we migrate all usages to the new signal. This passes gitlab pipeline: https://gitlab.freedesktop.org/chenghaoyang/libcamera/-/pipelines/1286236 BR, Harvey Yunke Cao (1): libcamera: mtkisp7: v4l2: Add a requestBufferReady signal include/libcamera/internal/v4l2_videodevice.h | 3 +- src/libcamera/v4l2_videodevice.cpp | 33 ++++++++++++++----- 2 files changed, 26 insertions(+), 10 deletions(-)