From patchwork Fri Aug 23 16:22:44 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: 21006 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 92639BDE17 for ; Fri, 23 Aug 2024 16:33:04 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 684D4633D1; Fri, 23 Aug 2024 18:33:03 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Kxwtiw4m"; dkim-atps=neutral Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 85E6963393 for ; Fri, 23 Aug 2024 18:33:01 +0200 (CEST) Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-3719753d365so1128436f8f.2 for ; Fri, 23 Aug 2024 09:33:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1724430781; x=1725035581; 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=QYmC0OYhQaw2bRswBU8sP0Hy0Fsu1r5p2inGRYP6oWo=; b=Kxwtiw4mAmRHknEwoiIX/a+vfdzsAWUKRptf9TIhEmySr1Hl2ZfBdw/h/K909WpU// 38Fib/diEe6WD/r9EC7SNZTpy0N9yv6QumLLmkI6dp6Je0po3Xr7XxI2deY8YnUxnxwX vHdF+yc73VkIcxtBKkCqybbJFrAhwyGUozuYQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724430781; x=1725035581; 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=QYmC0OYhQaw2bRswBU8sP0Hy0Fsu1r5p2inGRYP6oWo=; b=a6DVycj372XINfRA5qA2t4fZMAiVApA1qTdwJlY715wmEYkVaH5qepzmBxPJVyvBOe +DhQ0zH5ShbmHhUPWO+mXSMaaAz1dRwTLnlD4Sv4cME0sudiScUG6MJ05NyunQ8NTGFK JrZ8FKsuGhEcCKAljdzoWoFkQN3vA6BByVTXo9sObGCuD6ymr9SlKQgp+s3TC01MMCEP +OIIDZiJdDrRULoZzI0otD1GFfRe3VhYGeC8l2KuYt+Nx4rK/K9VoYSvU9elr+vuVevw TDJUAeZ+Mtdlc7OLDIu7OgV2HhcAZqs6UP/HaEIVqUWfZ7So2kTlYRzccUVxqytwtHqu kC0g== X-Gm-Message-State: AOJu0YwVtAiGbZFwqxUdbfCvd2bulxCMdfR5RwouuCMGHfvTGaR3PiHT lQaAAUXCmQT47FkcO+Fza/jLdGeUtoun+MzYsQJZ5vc2Xfz4k/2gVjmgLK/ewwkBiYzSYFnajGE 9DA== X-Google-Smtp-Source: AGHT+IGyPIRlMzxzJZHCwuMckDHdnv35Qe4WPO+EgC+FueDiUeAmUW4cOfZ1wTbVgS7cEoQOrCpoFg== X-Received: by 2002:a5d:6905:0:b0:373:b44:675 with SMTP id ffacd0b85a97d-3731189b12amr1954791f8f.20.1724430780482; Fri, 23 Aug 2024 09:33:00 -0700 (PDT) Received: from chenghaoyang-germany.c.googlers.com.com (161.126.77.34.bc.googleusercontent.com. [34.77.126.161]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3730826196bsm4482151f8f.102.2024.08.23.09.32.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Aug 2024 09:33:00 -0700 (PDT) From: Harvey Yang X-Google-Original-From: Harvey Yang To: libcamera-devel@lists.libcamera.org Cc: Harvey Yang Subject: [PATCH v1 0/1] Add RequestCompleteMode in Camera Date: Fri, 23 Aug 2024 16:22:44 +0000 Message-ID: <20240823163251.2979324-1-chenghaoyang@google.com> X-Mailer: git-send-email 2.46.0.295.g3b9ea8a38a-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 an option of RequestCompleteMode in Camera other than InSubmissionOrder. It'll be used in the android adapter to allow completing requests in order based on streams. It passed gitlab pipeline checks: https://gitlab.freedesktop.org/chenghaoyang/libcamera/-/pipelines/1256466 This is one of the series cherry-picked from cros mtkisp7 branch. The corresponding CL in cros is: https://chromium-review.googlesource.com/c/chromiumos/third_party/libcamera/+/5674659 The usages in the android adapter will be added with the partial result series. BR, Harvey Han-Lin Chen (1): libcamera: Camera: Add RequestCompletionMode to configure the completion order Documentation/guides/pipeline-handler.rst | 3 +- include/libcamera/camera.h | 8 ++++ include/libcamera/internal/camera.h | 1 + src/libcamera/camera.cpp | 50 +++++++++++++++++++++-- src/libcamera/pipeline_handler.cpp | 7 ++++ 5 files changed, 65 insertions(+), 4 deletions(-)