Patch Detail
Show a patch.
GET /api/patches/9823/?format=api
{ "id": 9823, "url": "https://patchwork.libcamera.org/api/patches/9823/?format=api", "web_url": "https://patchwork.libcamera.org/patch/9823/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20200925085127.17214-3-david.plowman@raspberrypi.com>", "date": "2020-09-25T08:51:23", "name": "[libcamera-devel,v2,2/6] libcamera: Initialise the SensorOutputSize property", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "7d2186ab6f6ba1087ebd5eb97c252823ad94d566", "submitter": { "id": 42, "url": "https://patchwork.libcamera.org/api/people/42/?format=api", "name": "David Plowman", "email": "david.plowman@raspberrypi.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/9823/mbox/", "series": [ { "id": 1326, "url": "https://patchwork.libcamera.org/api/series/1326/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1326", "date": "2020-09-25T08:51:21", "name": "Digital zoom", "version": 2, "mbox": "https://patchwork.libcamera.org/series/1326/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/9823/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/9823/checks/", "tags": {}, "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 0512EC3B5C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 25 Sep 2020 08:51:37 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id C993B6303F;\n\tFri, 25 Sep 2020 10:51:36 +0200 (CEST)", "from mail-wm1-x343.google.com (mail-wm1-x343.google.com\n\t[IPv6:2a00:1450:4864:20::343])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 0F2B863038\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 25 Sep 2020 10:51:34 +0200 (CEST)", "by mail-wm1-x343.google.com with SMTP id a9so2387488wmm.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 25 Sep 2020 01:51:34 -0700 (PDT)", "from pi4-davidp.lan (plowpeople3.plus.com. [80.229.223.72])\n\tby smtp.gmail.com with ESMTPSA id\n\tn4sm2001383wrp.61.2020.09.25.01.51.32\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 25 Sep 2020 01:51:32 -0700 (PDT)" ], "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=raspberrypi.com header.i=@raspberrypi.com\n\theader.b=\"c3d1EgOG\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=ZganqNCKgpZBIWeH0OLpzeE1oHtR5CBwAEI3tRbcGyI=;\n\tb=c3d1EgOGrAssRQ9cWsk0sB3PB54+Md/yxC/IT2hEidYoUFZauqocztnxVhujfSqN7w\n\tTNesz9WLnjjscc9b2iHCLvIMDnEoIK0CPUg+vfoUJsIBVzrx3mBURO3wJ3xaFePgf6T/\n\t+4ZfLmSCzTh61XO3u81NOOeH8WlVT8LUAi7pM7LdIAZsSwNRvWBl65iZC2x84uYA/uYk\n\tmZBq9Ky+fFDR1sq+BxX4sxuYB1xb2U5UbVwpsqIuZ/BqLaWujkgX08G71rtCb1Q2VEqX\n\tGMHaBEnpLlEDQJNYgQVm/zmf/M2oCTHUrejIoP+yW9lNRy/IuWvGotTcLHn5kNFbluaI\n\tGd3g==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=ZganqNCKgpZBIWeH0OLpzeE1oHtR5CBwAEI3tRbcGyI=;\n\tb=sSJ2yh25CVrkbPZUFn0PXEneyx5IaMl0aXAHvcqtlZ/tRrYXgCDMCN970QuzrxWP2U\n\tzuDtpg5/BbdFlxI1Br7QPlGMByYuF4W7ugyyAZkEGVNT7goTihfIeCu7MisSx9ee/UJy\n\trTU6L1W5XQmKM6hKWtIAMio1x0jmgkrFS2u6ADUeAUE4g2aDmdfP7D4lpJLYnnVGAnfW\n\tkNKlLwVjxLpaUFBDjEQacbBhCB7QM5rKfhwcNIQlJxMyH/xIDh03PwA6jh6a9afJgAD6\n\tZ5uyZPWdcYfNcIoavyLAgV1pd80GKicJAZH9xaCzIBTAmpsxAugtHr71bN3kJN1CmTT1\n\t2CuA==", "X-Gm-Message-State": "AOAM533bDChhx947o3zwL9YXMDixf5VVtquGLvdhXes/4gbQBOLBaYsp\n\tBBseNV91G/qgQWp5ZllmQzmRumYP7zkILw==", "X-Google-Smtp-Source": "ABdhPJwzss4To/uK9Tnd5RYAtLCR28Yblb5QgnalDdM/zco6TSKkVb6Htuhdp2+OTo5ZRShETXs1iQ==", "X-Received": "by 2002:a05:600c:21cd:: with SMTP id\n\tx13mr1936797wmj.63.1601023893519; \n\tFri, 25 Sep 2020 01:51:33 -0700 (PDT)", "From": "David Plowman <david.plowman@raspberrypi.com>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Fri, 25 Sep 2020 09:51:23 +0100", "Message-Id": "<20200925085127.17214-3-david.plowman@raspberrypi.com>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20200925085127.17214-1-david.plowman@raspberrypi.com>", "References": "<20200925085127.17214-1-david.plowman@raspberrypi.com>", "MIME-Version": "1.0", "Subject": "[libcamera-devel] [PATCH v2 2/6] libcamera: Initialise the\n\tSensorOutputSize property", "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>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Add a default initialisation according to the sensor resolution,\nthough it will need updating when the camera mode changes.\n\nSigned-off-by: David Plowman <david.plowman@raspberrypi.com>\nReviewed-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n src/libcamera/camera_sensor.cpp | 6 ++++++\n 1 file changed, 6 insertions(+)", "diff": "diff --git a/src/libcamera/camera_sensor.cpp b/src/libcamera/camera_sensor.cpp\nindex d2679a4..c9a19b0 100644\n--- a/src/libcamera/camera_sensor.cpp\n+++ b/src/libcamera/camera_sensor.cpp\n@@ -277,6 +277,12 @@ int CameraSensor::init()\n \t */\n \tresolution_ = sizes_.back();\n \n+\t/*\n+\t * Set a default value for the SensorOutputSize, though it will have to\n+\t * be updated when new camera modes are chosen.\n+\t */\n+\tproperties_.set(properties::SensorOutputSize, resolution_);\n+\n \treturn 0;\n }\n \n", "prefixes": [ "libcamera-devel", "v2", "2/6" ] }