Patch Detail
Show a patch.
GET /api/patches/9427/?format=api
{ "id": 9427, "url": "https://patchwork.libcamera.org/api/patches/9427/?format=api", "web_url": "https://patchwork.libcamera.org/patch/9427/", "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": "<20200829115429.30010-2-david.plowman@raspberrypi.com>", "date": "2020-08-29T11:54:22", "name": "[libcamera-devel,v5,1/8] libcamera: pipeline: raspberrypi: Revert \"Set sensor default orientation before configure()\"", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "08438caf827d0447a41a61ceec45ce9ba27cb2e7", "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/9427/mbox/", "series": [ { "id": 1252, "url": "https://patchwork.libcamera.org/api/series/1252/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1252", "date": "2020-08-29T11:54:21", "name": "2D transforms", "version": 5, "mbox": "https://patchwork.libcamera.org/series/1252/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/9427/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/9427/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 24264BF019\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSat, 29 Aug 2020 11:54:38 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 061AB6037D;\n\tSat, 29 Aug 2020 13:54:37 +0200 (CEST)", "from mail-wm1-x332.google.com (mail-wm1-x332.google.com\n\t[IPv6:2a00:1450:4864:20::332])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 638356037D\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 29 Aug 2020 13:54:35 +0200 (CEST)", "by mail-wm1-x332.google.com with SMTP id e17so1318228wme.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 29 Aug 2020 04:54:35 -0700 (PDT)", "from pi4-davidp.lan (plowpeople3.plus.com. [80.229.223.72])\n\tby smtp.gmail.com with ESMTPSA id\n\tv16sm3071523wmj.14.2020.08.29.04.54.34\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tSat, 29 Aug 2020 04:54:34 -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=\"SY1SW3ml\"; 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=uSc5m7UZr/nBlCCvcn3e9RFGm3q8lICTUphQChO2UKs=;\n\tb=SY1SW3mlx8xpe74+qtKRpZww4lc6z71d4JkA3ZJaPfqfMObR/8r8trmGeVTBorierZ\n\t6YvPbVCheOhDmqYaI0iMd3rHTmbH5uoI5qrBk+hKJPfArcocGH9Agnu3kZzkVXqX5Ecm\n\tkzwYcU3WhqpRl+AJHXWCWlFSEbWxTvmYumxrycTK+87BBdipifTxJaNhEvaSBqPrRhSb\n\tkMFCss97pMgz3W2qmd9e9bRjFe9JJtBGFJwFpDJnAcRwSvWmyK2WzIFNc17M6ska2pn7\n\t1neqhdqo2+kNp065Q3EgrBuMc65lxp7fBRi5NPrwKKttiyq6XQwyZGDA9ft/aFNGUa6H\n\t4ihA==", "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=uSc5m7UZr/nBlCCvcn3e9RFGm3q8lICTUphQChO2UKs=;\n\tb=DPgd62dtNIR5/nvBwWOzE5q57UySjq3LtD32gS2KXzsjcfYPQntZDGaMDqzoa73IvH\n\tW4km7CGd+suSbIZlkUqz+nU/lFy5wNgCDpvTT36kf5Y+bCTqz1H7LnSF/Tv9zWye+VDH\n\tbzEyQg/Tfxychxe9njXsNkLrs9ZbV4gPUgG4B+MSWYD852J8DYXJL5gMScAwJzceDkZ1\n\ti7iPCCcmeo95dv4rpeunyZhbPHUGlNyJK37eyc5RuNvat2wlt2r5cfLh6G/dXeC/ApNI\n\tUiuhJFYPn7RS813mbBUt9DJ8BPaR0iHgsYflN5xZPUhqZMaKcqN30taNAowl+jnZJ+0T\n\t1WiQ==", "X-Gm-Message-State": "AOAM532Q4wCkwH5rCxJ344mgAbnJduEppLPONUPjKGQ2WfXguumdEUXK\n\toyx9ArSWf6xWOpS+K+JtYmmW42RBVaWPRQ==", "X-Google-Smtp-Source": "ABdhPJxJS/4y6RW3s5dn9aI8/QHjmbqI52qIMXjcrgI5fpO++9QtwdKbS4drU789+bNJP9AZrkSObA==", "X-Received": "by 2002:a1c:c20a:: with SMTP id s10mr2945977wmf.55.1598702074887;\n\tSat, 29 Aug 2020 04:54:34 -0700 (PDT)", "From": "David Plowman <david.plowman@raspberrypi.com>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Sat, 29 Aug 2020 12:54:22 +0100", "Message-Id": "<20200829115429.30010-2-david.plowman@raspberrypi.com>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20200829115429.30010-1-david.plowman@raspberrypi.com>", "References": "<20200829115429.30010-1-david.plowman@raspberrypi.com>", "MIME-Version": "1.0", "Subject": "[libcamera-devel] [PATCH v5 1/8] libcamera: pipeline: raspberrypi:\n\tRevert \"Set sensor default orientation before configure()\"", "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": "This reverts commit 1e8c91b65695449c5246d17ba7dc439c8058b781.\n\nNow that we shall be implementing application-defined 2D transforms\nit's no longer possible to set the sensor orientation so early on. We\nhave to wait until we have the CameraConfiguration object as that's\nwhere the application puts its choice of transform.\n\nSigned-off-by: David Plowman <david.plowman@raspberrypi.com>\n---\n src/libcamera/pipeline/raspberrypi/raspberrypi.cpp | 14 +++++++-------\n 1 file changed, 7 insertions(+), 7 deletions(-)", "diff": "diff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp\nindex c1451e7..42c9caa 100644\n--- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp\n+++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp\n@@ -960,13 +960,6 @@ bool PipelineHandlerRPi::match(DeviceEnumerator *enumerator)\n \t/* Initialize the camera properties. */\n \tdata->properties_ = data->sensor_->properties();\n \n-\t/* Configure the H/V flip controls based on the sensor rotation. */\n-\tControlList ctrls(data->unicam_[Unicam::Image].dev()->controls());\n-\tint32_t rotation = data->properties_.get(properties::Rotation);\n-\tctrls.set(V4L2_CID_HFLIP, static_cast<int32_t>(!!rotation));\n-\tctrls.set(V4L2_CID_VFLIP, static_cast<int32_t>(!!rotation));\n-\tdata->unicam_[Unicam::Image].dev()->setControls(&ctrls);\n-\n \t/*\n \t * List the available output streams.\n \t * Currently cannot do Unicam streams!\n@@ -1171,6 +1164,13 @@ int RPiCameraData::configureIPA()\n \t\t\t\t\t { V4L2_CID_EXPOSURE, result.data[1] } });\n \t\t\tsensorMetadata_ = result.data[2];\n \t\t}\n+\n+\t\t/* Configure the H/V flip controls based on the sensor rotation. */\n+\t\tControlList ctrls(unicam_[Unicam::Image].dev()->controls());\n+\t\tint32_t rotation = sensor_->properties().get(properties::Rotation);\n+\t\tctrls.set(V4L2_CID_HFLIP, static_cast<int32_t>(!!rotation));\n+\t\tctrls.set(V4L2_CID_VFLIP, static_cast<int32_t>(!!rotation));\n+\t\tunicam_[Unicam::Image].dev()->setControls(&ctrls);\n \t}\n \n \tif (result.operation & RPI_IPA_CONFIG_SENSOR) {\n", "prefixes": [ "libcamera-devel", "v5", "1/8" ] }