{"id":17943,"url":"https://patchwork.libcamera.org/api/covers/17943/?format=json","web_url":"https://patchwork.libcamera.org/cover/17943/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20221206135459.25521-1-naush@raspberrypi.com>","date":"2022-12-06T13:54:46","name":"[libcamera-devel,v3,00/13] Raspberry Pi: Platform configuration and buffer allocation improvements","submitter":{"id":34,"url":"https://patchwork.libcamera.org/api/people/34/?format=json","name":"Naushir Patuck","email":"naush@raspberrypi.com"},"mbox":"https://patchwork.libcamera.org/cover/17943/mbox/","series":[{"id":3659,"url":"https://patchwork.libcamera.org/api/series/3659/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3659","date":"2022-12-06T13:54:46","name":"Raspberry Pi: Platform configuration and buffer allocation improvements","version":3,"mbox":"https://patchwork.libcamera.org/series/3659/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/17943/comments/","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id B13B8BE08B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue,  6 Dec 2022 13:55:08 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id AD90263342;\n\tTue,  6 Dec 2022 14:55:07 +0100 (CET)","from mail-wm1-x330.google.com (mail-wm1-x330.google.com\n\t[IPv6:2a00:1450:4864:20::330])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id D29FC603CD\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue,  6 Dec 2022 14:55:05 +0100 (CET)","by mail-wm1-x330.google.com with SMTP id\n\tay14-20020a05600c1e0e00b003cf6ab34b61so14325016wmb.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 06 Dec 2022 05:55:05 -0800 (PST)","from naush-laptop.localdomain ([93.93.133.154])\n\tby smtp.gmail.com with ESMTPSA id\n\tq6-20020a05600c2e4600b003c6bd91caa5sm19444059wmf.17.2022.12.06.05.55.04\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 06 Dec 2022 05:55:04 -0800 (PST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1670334907;\n\tbh=cN1B3/JAs+LKUBmCLjULGB8F+IrDlR9lSojo+mBolFM=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=QVnriiwzSGJ7zncn0XAA+vaRLdmp1XRBVySf8ichVWfB11CTYkawiNx8bCMY6wZrh\n\tG6g/6L8d+t4ugJUSuahHPj6PSu2HBiWYKS9rVSISc3tEuFyW3z5CJAoqPvyodYJbOk\n\tiTq+DKKmSgvELHXwTQkt916zol1QtDFcH6U0UFPLCX7wLZJhnYZ8p4YqL+f69isPWw\n\toDJYwyMxuzy1iwwsdrSKi64a1tL2T32q/lwOtAbm/gfnZgsIaZFISZb1hb7YC2Mkzl\n\tcWUlOpVPfkoSmVOK7TlOuwjGWge7Dh0kcRFHJD3gWkluVYZXLWnwDvA8+2UHE/Aqi0\n\th/9cEKl2Ecxvw==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:from:to:cc:subject:date:message-id:reply-to;\n\tbh=DmC5z7V/wmK/YyuW9AvxIiwzi4s1Qqe4YWNCOKTRCmw=;\n\tb=ZY0e/UaZ0doysOAJKP1eNhfJWqWZt4sboLHAMbESCwEqvwYqXmJ06hLWU9wpzn+29X\n\tWeA4kMnL2CMK15bZr2Nws25ztTVwolfQUTip8zX5xpfEje1PyNfni/iRNAKwZDa6SgKO\n\thbkkdQXCktYD9WOoG0ZX84lsBPPI5hf0S8jKPVusiBcuF5lx8VcGTXj3b9GeKldntHuT\n\tuGf4OYiI7To1sj9EqEK3XoMn1pkF+rmPg/kFRMnGGX+63o3A8v/zBpK7ejU/L1TRbAEU\n\tFy/u0rF7jKQYfgSUdM9cdQ3B7vGW3Pz7Lr76iosJlIsi3fXST66YLgdVS/boufNp/EDX\n\tdnjw=="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=raspberrypi.com\n\theader.i=@raspberrypi.com\n\theader.b=\"ZY0e/UaZ\"; dkim-atps=neutral","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:x-gm-message-state:from:to:cc:subject:date:message-id\n\t:reply-to;\n\tbh=DmC5z7V/wmK/YyuW9AvxIiwzi4s1Qqe4YWNCOKTRCmw=;\n\tb=H35DFcUt+59vK11mOISaWInKyochS//2Ckz3IVppp5ZgVU60tTcJQnp5PRxITDW0AS\n\tn4Lm1L/cMnLPhPqxKgBWTrzfv5b+luG1yjQDvup4/5r0SXY8lN1wMuw34ZIUkj5xyj7W\n\ts+WwP54H3a5NItAOw0Fh3KBANoG7qaOD59yCWHp+Wyc0MJDW7fih8/jRtHLJmb6Qvafm\n\tzeYFuk/XxeLgrD640DB45xIxbk7V+1lI0FVHGC6BXEJtHkcs+6bJnTHFb6MhcPLCyB6Z\n\tCrWfygoaT+tplHBQKzdTdEbsn5S8Kn5krxk6FSonS5d3nCmT/euONiSD8++T2KbZQxCL\n\tLOAQ==","X-Gm-Message-State":"ANoB5pk2TNiBp8F7E1oXIkt83I+ADv7aRFWjaCXZ+8mTwcLBfPRPpaq3\n\tDnuGL91YwfEFVBXb+BWcEIul2DixqOp2puG7","X-Google-Smtp-Source":"AA0mqf4qpqKlT+1qjwwdeo6u+cLrHYAeK6i46ffEgTX0dAjXyKnwa1UkPySdc1bUgzHk4es1N9P5ag==","X-Received":"by 2002:a05:600c:1f1b:b0:3cf:35c8:289f with SMTP id\n\tbd27-20020a05600c1f1b00b003cf35c8289fmr55788808wmb.153.1670334905203; \n\tTue, 06 Dec 2022 05:55:05 -0800 (PST)","To":"libcamera-devel@lists.libcamera.org","Date":"Tue,  6 Dec 2022 13:54:46 +0000","Message-Id":"<20221206135459.25521-1-naush@raspberrypi.com>","X-Mailer":"git-send-email 2.25.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v3 00/13] Raspberry Pi: Platform\n\tconfiguration and buffer allocation improvements","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","From":"Naushir Patuck via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>","Reply-To":"Naushir Patuck <naush@raspberrypi.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hi,\n\nQuite a few changes in version 3 of this series! I've addressed all of Laurent's\nand David's comments from version 2.  Additionally, some of the major changes in\nthis version include:\n\n- Adding a hints flag to StreamConfiguration.  This allows us to remove the\n\"num_output0_buffers\" configuration option.  This also required changes to the\nconfig validation, and buffer count calculations.\n- Reorder some of the commits to make more logical sense.\n- Switch to using *.yaml for the config files.  Note that the format is still\nJSON based to be consistent with our tuning file.\n- Remove default.json.  If no config file is provdied in the env variable, we\nsimply use const defaults that match default.json from v2.\n- We no longer need rpi_apps.yaml.  This will be handled by the application\nsetting up the appropriate hint flag.\n\nThanks,\nNaush\n\nNaushir Patuck (13):\n  libcamera: stream: Add stream hints to StreamConfiguration\n  libcamera: pipeline: Add a platform configuration file helper\n  pipeline: raspberrypi: Add a pipeline config structure\n  pipeline: raspberrypi: Reorder startup drop frame initialisation\n  pipeline: raspberrypi: Handle MandatoryRequestBuffer hints for Unicam\n    Image\n  libcamera: pipeline: build: Add pipeline_data_dir variable\n  pipeline: raspberrypi: Read config parameters from a file\n  pipeline: raspberrypi: Disable StreamOn for ISP Output0/1 when\n    dropping frames\n  pipeline: raspberrypi: Handle MandatoryRequestBuffer hints for ISP\n    Output0\n  pipeline: raspberrypi: Validate MandatoryRequestBuffer in\n    queueRequestDevice()\n  pipeline: raspberrypi: Add a parameter to disable startup drop frames\n  pipeline: raspberrypi: Allow pipeline handler to always use the newest\n    frame\n  pipeline: raspberrypi: Add minimal memory usage config file\n\n include/libcamera/internal/pipeline_handler.h |   3 +\n include/libcamera/stream.h                    |   8 +\n src/libcamera/pipeline/meson.build            |   3 +\n .../pipeline/raspberrypi/data/example.yaml    |  29 ++\n .../pipeline/raspberrypi/data/meson.build     |   9 +\n .../raspberrypi/data/minimal_mem.yaml         |  29 ++\n .../pipeline/raspberrypi/meson.build          |   2 +\n .../pipeline/raspberrypi/raspberrypi.cpp      | 252 +++++++++++++++---\n src/libcamera/pipeline_handler.cpp            |  60 +++++\n src/libcamera/stream.cpp                      |  24 ++\n 10 files changed, 384 insertions(+), 35 deletions(-)\n create mode 100644 src/libcamera/pipeline/raspberrypi/data/example.yaml\n create mode 100644 src/libcamera/pipeline/raspberrypi/data/meson.build\n create mode 100644 src/libcamera/pipeline/raspberrypi/data/minimal_mem.yaml"}