From patchwork Mon Sep 30 17:09:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 21436 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 CCFFFC0F1B for ; Mon, 30 Sep 2024 17:09:23 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id DF15863512; Mon, 30 Sep 2024 19:09:22 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="CFxGr//D"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3278963502 for ; Mon, 30 Sep 2024 19:09:21 +0200 (CEST) Received: from neptunite.flets-east.jp (unknown [IPv6:2404:7a81:160:2100:4c37:91db:8b05:5548]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C1066280; Mon, 30 Sep 2024 19:07:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1727716070; bh=n9zSsGtk/jKN6uVhFZiOKPPGTLdwXyeK/TH3j5GXI9c=; h=From:To:Cc:Subject:Date:From; b=CFxGr//DJONXynPnBXYcFcpiFOhb9QQiTP11a7jJLZwPH03u5EqSGxIqXJaelSUH5 VFY5iBxM+ZxlJxFHMs8zzBW8WUlXrvBApwEbxrGBE2mksOYk9cvgDXW/RPF8umLzbM s6hvTE1em2ZqvelRxhobazzPPW1pMqr+9ixL8vuM= From: Paul Elder To: libcamera-devel@lists.libcamera.org Cc: laurent.pinchart@ideasonboard.com, Paul Elder Subject: [PATCH 0/2] libcamera: Add support for dumping capture script Date: Tue, 1 Oct 2024 02:09:05 +0900 Message-Id: <20240930170907.1404844-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.39.2 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" This patch series adds support to the libcamera core for dumping capture scripts, metadata, and camera configuration. This allows "replays" of captures and can help in debugging. Patch 2/2 adds support to cam for loading the camera configuration from the capture script. Paul Elder (2): pipeline: Add support for dumping capture script and metadata apps: cam: Add support for loading configuration from capture script include/libcamera/internal/camera.h | 3 + include/libcamera/internal/pipeline_handler.h | 16 ++ src/apps/cam/camera_session.cpp | 22 +-- src/apps/cam/capture_script.cpp | 164 ++++++++++++++++++ src/apps/cam/capture_script.h | 8 + src/libcamera/camera.cpp | 13 ++ src/libcamera/pipeline_handler.cpp | 93 +++++++++- 7 files changed, 308 insertions(+), 11 deletions(-)