From patchwork Fri Oct 14 13:18:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 17606 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 D89CFC3289 for ; Fri, 14 Oct 2022 13:19:05 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8158562DE5; Fri, 14 Oct 2022 15:19:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1665753545; bh=ERKArs7cOeZTf0Yw25fWwNSNlv+k2iN2RGQWLJgVFpY=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=2D2Xwn++UQla5GX/IqYyPdSZgqT6eWm2jgGoMY2fQAuCPrA9UsHSP9cPUiWb7HCGy xgB154pyjjrcsnFwTqgr22H32kCuQm8PTnrL6J049AKIGRqESCpVP2YlUX/gbnsZeV S908/pMQJZsIOzT+hqNGlaNvEB3LoUgU5hMM1RnWBhyvuIk64Lfxv3mmrBBwBA92Iu AVrpk6m5Z4owZQS9hEH+4qw0n/EYszpGo25oIGTOxOVCQuBNypsCKYhTJA4M7w3O3T FrFeJR6hLwfjU6abmM7aC5Jxu299kfa9/aTYgXCB5SWeoEH4Z4mqgVis8Ezk6gB2RJ Gu+xZmF9nFD7w== Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B5E5062DBC for ; Fri, 14 Oct 2022 15:18:59 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="oJW9Tx5q"; dkim-atps=neutral Received: by mail-wr1-x42a.google.com with SMTP id a10so7490070wrm.12 for ; Fri, 14 Oct 2022 06:18:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6br7n78pq5/RQvdP/HX1IT/EAJ79ReExaMx4vcs66GE=; b=oJW9Tx5qe4QEtNKtFQkgiucf+fT2wSGJqEf12oH5mKcVf6M6IaTQK9t5KC7k6MpJH4 sP3VBW71dE+zGsedDHpO2B2fHAMnHFqovEWHOeBBjmAQs5zzsf8ZPwejdVfwJK5ZBOzn tvNUHEIoZjFZFtnknh/jhoOqT7TmjBHsEAp4vGsw/4vBm9rBmM/z9DR1vlZRGuB539Lg tSexT5AIZXlW7VFQ+eVwZmolxuBPH/ELnBKyLLXV4547kpfifFe4wdFqk7GuyXgXFRUU Ma5tKpegDqIETzLuJWKO1tCvlhlaeT6+3g3sN0TwFScllTkWFFDc02A2V26U1bTjVibJ t62g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6br7n78pq5/RQvdP/HX1IT/EAJ79ReExaMx4vcs66GE=; b=f2n2NSi+4uCAIG5UVdjxg2ciEPkaIvItIYmdkBXadI613jDqDNuJ1oqZZ7jio5+Htk 7HX1fX0Q8REDEkT+uaz72FoYhJtYhuf1O45RFRKVzFRsGZiBjRGb2/i9KmHqo+BAE+u7 dx8zYUKcElQR/LmLj5qVw9wnlGTQxgnUaBSC3wnzT4FwYFWpVMbyLhqFdwwsxEYu8E82 k0XUsyyaf1qWPK2ddCBBzmZD9xaaRk8wVkF4XPa+qR3WOEWCrk516TM8BA3jbDq1SIM4 R1EkPwQdZGmBCHeq6hXirsx4PU8x6lpdNh5vUbVKBHSJfmb3OBT+l9kYxCfFX481RKfV PTNw== X-Gm-Message-State: ACrzQf0MILF3c9yWj8LdEzcZFMAW5lmO5Xdl17aBpgHYD60RuxW4xxAt m4hmaW2wJyLad0fHisuP5wfggh/Lor0/iQ== X-Google-Smtp-Source: AMsMyM6C06d2AGlAfTj3wWq2HK34op6PR1yZ7jYKs3JFq3SXuMwD8WEHTYC1bVEsHpUWiRN7fn/hhA== X-Received: by 2002:a5d:6c6b:0:b0:225:dde:ab40 with SMTP id r11-20020a5d6c6b000000b002250ddeab40mr3394490wrz.690.1665753539070; Fri, 14 Oct 2022 06:18:59 -0700 (PDT) Received: from naush-laptop.localdomain ([93.93.133.154]) by smtp.gmail.com with ESMTPSA id g17-20020a05600c001100b003c6bbe910fdsm8282458wmc.9.2022.10.14.06.18.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Oct 2022 06:18:58 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Fri, 14 Oct 2022 14:18:46 +0100 Message-Id: <20221014131846.27169-11-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014131846.27169-1-naush@raspberrypi.com> References: <20221014131846.27169-1-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v1 10/10] pipeline: raspberrypi: Add libcamera-apps and picamera2 config file 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" Add a platform configuration file optimised for use with the Raspberry Pi suite of libcamera-apps and the picamera2 framework. This configuration minimises the number of internal buffers allocated, with the expectation that applications will always provide buffers in request for any configured stream. Signed-off-by: Naushir Patuck Reviewed-by: David Plowman --- .../pipeline/raspberrypi/data/meson.build | 1 + .../pipeline/raspberrypi/data/rpi_apps.json | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 src/libcamera/pipeline/raspberrypi/data/rpi_apps.json diff --git a/src/libcamera/pipeline/raspberrypi/data/meson.build b/src/libcamera/pipeline/raspberrypi/data/meson.build index 0592fc53877d..aabde57f25c6 100644 --- a/src/libcamera/pipeline/raspberrypi/data/meson.build +++ b/src/libcamera/pipeline/raspberrypi/data/meson.build @@ -3,6 +3,7 @@ conf_files = files([ 'default.json', 'minimal_mem.json', + 'rpi_apps.json', ]) install_data(conf_files, diff --git a/src/libcamera/pipeline/raspberrypi/data/rpi_apps.json b/src/libcamera/pipeline/raspberrypi/data/rpi_apps.json new file mode 100644 index 000000000000..6a3eebf4fac7 --- /dev/null +++ b/src/libcamera/pipeline/raspberrypi/data/rpi_apps.json @@ -0,0 +1,28 @@ +{ + "version": 1.0, + "target": "bcm2835", + + "pipeline_handler": + { + # The minimum number of internal buffers to be allocated for Unicam. + # This value must less than or equal to min_total_unicam_buffers. + "min_unicam_buffers": 0, + + # The minimum total (internal + external) buffer count used for Unicam. + # The number of internal buffers allocated for Unicam is given by: + # internal buffer count = max(min_unicam_buffers, + # min_total_unicam_buffers - external buffer count) + "min_total_unicam_buffers": 4, + + # The number of internal buffers used for ISP Output0. + "num_output0_buffers": 0, + + # Override any request from the IPA to drop a number of startup frames. + "disable_startup_frame_drops": false, + + # Always process a pending request with the last captured sensor frame. + # Note that this might lead to avoidable frame drops during periods + # of transient heavey CPU loading. + "return_newest_frames": false + } +} \ No newline at end of file