From patchwork Wed Jan 18 08:59:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 18126 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 EC291C3240 for ; Wed, 18 Jan 2023 09:01:17 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 343CF625E4; Wed, 18 Jan 2023 10:01:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1674032477; bh=z+d/MyDXYhRwhD0vFIV5dTIM58sgPE2uLKz1sn1KuUQ=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=OAkfqyizw/9rN47QGNI70i9600Kz/Ry3wn2o4pwr9BN6J8WPRqUQvdK+THvuie0s+ 3Nn/4KSRL94h6oQkyLHpo44kqTXwY+PjHXrHCdgCslKfP0YhDdtUGg9bJQc8AZLiB1 9bT1LJ0x0rPxa16LR/TN/NPytTNDmK1OxGLcpS6yHrJ/zQch9VaSpkOmj2968/1Ec4 9d69E/3cCJMUlPpRMutszd+Mx10sy7VvgrC14yel2dJFctyvT6KERpkgonEGIiWLHe Z4n1SkN7SLexvduKpR1iluAtIHNt0OI+Bt4iI0tthN9wx18IjjiytvYg+gvzWJw07w sAGwsFX/3wxLg== Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id F189861EFD for ; Wed, 18 Jan 2023 10:01:15 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="mi014qYS"; dkim-atps=neutral Received: by mail-wr1-x435.google.com with SMTP id r2so33183717wrv.7 for ; Wed, 18 Jan 2023 01:01:15 -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=Odvx8Nt1pfL4pjWHPSpxaVU5KT92u273f/mo14UKVD4=; b=mi014qYSddowj1h3s+Nr/9rXDuTqvyyTXfv3oyom/5OIUJx/jydf8GKTIN+n2jRNL5 n8d7phcjCXNbYu+Ca/G8igQZE3Hn8CbGH8Oc7PhVS6TE98rerWON4sWGtLfO12nrzNeO kjF319/OOnTsYaqWFi5vLW+5B1ACi72g/1jNYMBM9XN7mbsN1Oj0bzTLZwkwVF4VYXij /PidmZAVOGnJBP8S/xOrtavhawBpZNPm6QSnPbkeZycLSrYX48+TldSAqzWzyfnVYdPp vX6NYW7xnKJBKtqvmWBrk/h9kQ0l9//JYcAeVCk6kC85PzIXiQgAH+c4DmRhn6CYQBYx HVBQ== 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=Odvx8Nt1pfL4pjWHPSpxaVU5KT92u273f/mo14UKVD4=; b=1/wtcNOxTLvNwKq0nQs+29fH3n7MinKdOwG3QXsrPKt/EEc7mMJVBt3gL3afYsQnrH 8zOoQ999UgRm+LDPNm0YZUAhGO0Q/cdcBAwwGyVlkI7hHJAonJF1vLKlFh1+eaAtGhkF z+mm/jX7zKIWbcSgnipJbrjrrom/jJ7FII3/F2KObgHpadAjlRMHsZ7yAz4MarNAYCS+ 5SGCMVY9FYuUaxDlsMU1x37dYWiDod3L/zHDN3hCFAPN8mf01ySDsaaXjwyE9fGxC1Da H4rLwFIYO57wJVp4zjXKTM4/VAuyfP95udJmZyaXA2J4tgUylGZ2ccl0rcsRHe2gBQWq 8meQ== X-Gm-Message-State: AFqh2kok8XeJ25k7Q7PlMt/WxsLS+56Dfr7QpT7JB+r+EiXQ5VkmczpR QZAo+a5RNKuZzncCUDNv8FnWBsyH90Z1JW58j7U= X-Google-Smtp-Source: AMrXdXuGU/xFYNa01v9BrQzEZdaV0IcdDKcCmrj7GYZEnYoKtoA7Y59WgNox3hzoyr94e4TFg22lWA== X-Received: by 2002:a5d:4388:0:b0:293:1868:3a15 with SMTP id i8-20020a5d4388000000b0029318683a15mr5739144wrq.34.1674032475298; Wed, 18 Jan 2023 01:01:15 -0800 (PST) Received: from localhost.localdomain ([93.93.133.154]) by smtp.gmail.com with ESMTPSA id i6-20020adfe486000000b002423dc3b1a9sm30312464wrm.52.2023.01.18.01.01.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 01:01:14 -0800 (PST) To: libcamera-devel@lists.libcamera.org Date: Wed, 18 Jan 2023 08:59:41 +0000 Message-Id: <20230118085953.7027-1-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v5 00/12] 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 5 addresses Kieran's comments and we switch the sense of the hint. So we replace the enum MandatoryRequestBuffer with OptionalStream. No other changes in this version over v4. Thanks, Naush Naushir Patuck (12): libcamera: stream: Add stream hints to StreamConfiguration libcamera: pipeline: Add a platform configuration file helper pipeline: raspberrypi: Add a pipeline config structure pipeline: raspberrypi: Reorder startup drop frame initialisation pipeline: raspberrypi: Handle OptionalStream hints for Unicam Image libcamera: pipeline: build: Add pipeline_data_dir variable pipeline: raspberrypi: Read config parameters from a file pipeline: raspberrypi: Handle OptionalStream hints for ISP Output0 pipeline: raspberrypi: Validate OptionalStream in queueRequestDevice() 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 include/libcamera/internal/pipeline_handler.h | 3 + include/libcamera/stream.h | 8 + src/libcamera/pipeline/meson.build | 3 + .../pipeline/raspberrypi/data/example.yaml | 29 +++ .../pipeline/raspberrypi/data/meson.build | 9 + .../raspberrypi/data/minimal_mem.yaml | 29 +++ .../pipeline/raspberrypi/meson.build | 2 + .../pipeline/raspberrypi/raspberrypi.cpp | 215 +++++++++++++++--- src/libcamera/pipeline_handler.cpp | 60 +++++ src/libcamera/stream.cpp | 24 ++ 10 files changed, 351 insertions(+), 31 deletions(-) create mode 100644 src/libcamera/pipeline/raspberrypi/data/example.yaml create mode 100644 src/libcamera/pipeline/raspberrypi/data/meson.build create mode 100644 src/libcamera/pipeline/raspberrypi/data/minimal_mem.yaml