From patchwork Tue Nov 29 13:45:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 17907 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 8304ABE08B for ; Tue, 29 Nov 2022 13:45:40 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 992FC63341; Tue, 29 Nov 2022 14:45:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1669729539; bh=tSiUMFfqHRqfhHZDdIxSNJTz/ei7nNPLSG3nrmkGX0M=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=jyRj6E3naC+SUCJ7kP90O6jL9l1y2SfsYiIW2FUAihHhcVNISnCqIZpDA3/i+Yw4l yGYpunCyCu84735kL0BTmASZ37/fZ858X6QLP7G7FJrDo+JmOO24TYzl+sS/VAy5oV K3opXW7JQeln7foOzuKkhlAfZBEzl7Jv1koXhxWzJeTKZY9EzUV9IkrILqBaoUaCap XSsPbbw431/Jeu5FELSC/qfAm4WG7QXLfxdeBp1jRKYl4NLPqTAVWtK5wcXKNT5Yh6 u1KBkfYGuejM4Da2pbAc0ABCiJFBiDGjhdrlyRNhj7YKFDWwpRLzUKUoC1H9POYNng jpl4cSD4q6fZg== Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 41FE563331 for ; Tue, 29 Nov 2022 14:45:38 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="sj4Z9oW2"; dkim-atps=neutral Received: by mail-wm1-x334.google.com with SMTP id a11-20020a05600c2d4b00b003cf6f5fd9f1so10863399wmg.2 for ; Tue, 29 Nov 2022 05:45:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/otR+zBwXLyk1HQsJU6cHbrF6v6afTx4AVM7O9SlK78=; b=sj4Z9oW2DavB2Jtxb/uVq11xJwKnPH3x50Muq8zPqo0oJmBibqPBmt/7gjxxYYktm5 +vU6wunWBrIHw67ek/TVp9Idt+KMaYnnTwYer21VGNO1wqFdkQkVFNyBWUdOcBGHgsZJ Ba50dx78lS8HtPA/LwyvcXrC8rvb4w7Pa17yLJ7w3BzxTri0o0vdwAydmVVAmiwAqYA7 26T9ZRM52stePn5dUmtEIl6lcqbA+rpjixSbW1vuENMq1k1nDIKXt7y79S420sHIKdR8 DY9xmlO9CAkz6sZ18txhzlTjiT3RCltLoqXKGOaQLcTlOx4RQC2mMhIV/+XxpuvutHvt OmSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=/otR+zBwXLyk1HQsJU6cHbrF6v6afTx4AVM7O9SlK78=; b=0DkzIRss9zoJXwGGo2TKQpepXKUCtcVg5k78AWGx+Sy1owEMWc6yvDFdgRYF7nAw+G g23o5bfOljV/dj2zU5Bz+oUw/cKbqEWtEgcfO+Wl7zg3s67Ed/jMMFgPEioJyXro4kJP Z94erQOb6f0CdgkCWy1UwNOBIS3/O2XDRuw61WowkWrZ3rp0iweJgoZfSiehCqx2JSJ9 cgIR01xW0xKrW3YCHM0oKGaxDUpcPVtT5E2HFSY2+RNvucpWFp5UITVxAOViqiu5gt9/ ihpqMCW+xghI6S7reR7vITkkkYHN3IMsuJIZGiODJLNeSU7IuRo6Gh7Na30i07YjbSBy 1GTQ== X-Gm-Message-State: ANoB5pmH6yxEVIavywXU55WtcP/6ZmVYObsrN2VKishLs8zWUmKxRMzX SNLuSiySX90Ye2+dieg9qS3swBuhZ+1C5g== X-Google-Smtp-Source: AA0mqf76qxtevs66pNx+xGrSirRohF+nfg6qsDXJvJJYkhHg4CH23zjvP3yQEVQ7mrgyHhH0tdh/cg== X-Received: by 2002:a7b:c456:0:b0:3a5:f600:502e with SMTP id l22-20020a7bc456000000b003a5f600502emr32724680wmi.39.1669729537593; Tue, 29 Nov 2022 05:45:37 -0800 (PST) Received: from naush-laptop.localdomain ([93.93.133.154]) by smtp.gmail.com with ESMTPSA id n8-20020a05600c3b8800b003cfbbd54178sm3565636wms.2.2022.11.29.05.45.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 05:45:37 -0800 (PST) To: libcamera-devel@lists.libcamera.org Date: Tue, 29 Nov 2022 13:45:24 +0000 Message-Id: <20221129134534.2933-1-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 00/10] Raspberry Pi: Platform configuration and buffer allocation improvements 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: , X-Patchwork-Original-From: Naushir Patuck via libcamera-devel From: Naushir Patuck Reply-To: Naushir Patuck Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi, Version 2 of this series addresses all of David's suggestions/fixes. The only other changes is in patch 1, we explicitly provide a subdir as well as a filename into PipelineHandler::configurationFile(). Thanks, Naush Naushir Patuck (10): libcamera: pipeline: Add a platform configuration file helper pipeline: raspberrypi: Add a pipeline config structure pipeline: raspberrypi: Split out ISP Output0 buffer allocation pipeline: raspberrypi: Read config parameters from a file pipeline: raspberrypi: Disable StreamOn for ISP Output0/1 when dropping frames pipeline: raspberrypi: Reorder startup drop frame initialisation pipeline: raspberrypi: Add a parameter to disable startup drop frames pipeline: raspberrypi: Allow pipeline handler to always use the newest frame pipeline: raspberrypi: Add minimal memory usage config file pipeline: raspberrypi: Add libcamera-apps and picamera2 config file include/libcamera/internal/pipeline_handler.h | 3 + .../pipeline/raspberrypi/data/default.json | 28 ++ .../pipeline/raspberrypi/data/meson.build | 10 + .../raspberrypi/data/minimal_mem.json | 28 ++ .../pipeline/raspberrypi/data/rpi_apps.json | 28 ++ .../pipeline/raspberrypi/meson.build | 2 + .../pipeline/raspberrypi/raspberrypi.cpp | 239 +++++++++++++++--- src/libcamera/pipeline_handler.cpp | 60 +++++ 8 files changed, 367 insertions(+), 31 deletions(-) create mode 100644 src/libcamera/pipeline/raspberrypi/data/default.json create mode 100644 src/libcamera/pipeline/raspberrypi/data/meson.build create mode 100644 src/libcamera/pipeline/raspberrypi/data/minimal_mem.json create mode 100644 src/libcamera/pipeline/raspberrypi/data/rpi_apps.json