Patch Detail
Show a patch.
GET /api/1.1/patches/19381/?format=api
{ "id": 19381, "url": "https://patchwork.libcamera.org/api/1.1/patches/19381/?format=api", "web_url": "https://patchwork.libcamera.org/patch/19381/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/1.1/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": "<20240109143002.21733-1-laurent.pinchart@ideasonboard.com>", "date": "2024-01-09T14:30:02", "name": "[libcamera-devel] Documentation: camera-sensor-model: Support Sphinx < 2.0", "commit_ref": "12fb8ed5cbcd064de860928ede30abc9273fb743", "pull_url": null, "state": "accepted", "archived": false, "hash": "f5ccad420fb0c88cb11d7dd11e15795a325f50dc", "submitter": { "id": 2, "url": "https://patchwork.libcamera.org/api/1.1/people/2/?format=api", "name": "Laurent Pinchart", "email": "laurent.pinchart@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/19381/mbox/", "series": [ { "id": 4137, "url": "https://patchwork.libcamera.org/api/1.1/series/4137/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4137", "date": "2024-01-09T14:30:02", "name": "[libcamera-devel] Documentation: camera-sensor-model: Support Sphinx < 2.0", "version": 1, "mbox": "https://patchwork.libcamera.org/series/4137/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/19381/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/19381/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 F2CBFBEFBE\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 9 Jan 2024 14:29:55 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 7D9C962B41;\n\tTue, 9 Jan 2024 15:29:55 +0100 (CET)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id F365861D7B\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 9 Jan 2024 15:29:53 +0100 (CET)", "from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi\n\t[213.243.189.158])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id B88A5552;\n\tTue, 9 Jan 2024 15:28:49 +0100 (CET)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1704810595;\n\tbh=8TQo8lpdICPjsU3+SEsfwtE8zjCLGTCtsKBBVFyxDXk=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:Cc:From;\n\tb=ahIJH0L94LpzZWspJhgJYq43sCv3VaglYUqb5U46pMy7oUdoAtTMKqjMzg8Ch4ezp\n\ti+ArzJEjhns7tiFqMOrHuK1lcAyFKK9YZ+U/A/bnnReQWw1KXBLBA0mCQ3+w91+wOn\n\tZtb2owkVAV5r3CGmxRCCFPFa2aNlTRC9dC8hrz6kyODbr0Z/FD8ElHiiMbCay7MNaq\n\tFzDvUuqQejqZd/aH23FmacyjFnp8yICeK7m8bQb7iba2ocpKsUUdcePmP5aHbktIL4\n\t8mJptoEKyuN6Jw1HUsiFm94LI64xOcCCEJBHE88AJT6mft/9hjzVUmUj0bFsc1zAbW\n\twbDBDwl6yTz9g==", "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1704810530;\n\tbh=8TQo8lpdICPjsU3+SEsfwtE8zjCLGTCtsKBBVFyxDXk=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=q+pbldbiFmsgnTcB28u4c6eqkEtsrAQQTfzSpTSLtVgfdbY4OgpPyiESrDX0C9Zru\n\tlYj6RgvN9klvFoUdhxkJoV5ai2N+yz9+O7h3VQaQyh5BT+SqxLy+UueUMCoeaIj4Ab\n\tRi1xiq+rsn2aKuhmQaiifEpKkF3IXiWrWoQ+YFL8=" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"q+pbldbi\"; dkim-atps=neutral", "To": "libcamera-devel@lists.libcamera.org", "Date": "Tue, 9 Jan 2024 16:30:02 +0200", "Message-ID": "<20240109143002.21733-1-laurent.pinchart@ideasonboard.com>", "X-Mailer": "git-send-email 2.41.0", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH] Documentation: camera-sensor-model:\n\tSupport Sphinx < 2.0", "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": "Laurent Pinchart via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>", "Reply-To": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>", "Cc": "Jacopo Mondi <jacopo.mondi@ideasonboard.com>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "The language argument to the code-block directive was mandatory in\nSphinx before 2.0. Fix the few instances where no language is specified\nto support older versions of Sphinx.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n Documentation/camera-sensor-model.rst | 25 ++++++++++++-------------\n 1 file changed, 12 insertions(+), 13 deletions(-)", "diff": "diff --git a/Documentation/camera-sensor-model.rst b/Documentation/camera-sensor-model.rst\nindex 58bf70e1dc5a..b66c880a5e00 100644\n--- a/Documentation/camera-sensor-model.rst\n+++ b/Documentation/camera-sensor-model.rst\n@@ -105,35 +105,34 @@ control:\n will be downscaled in its vertical and horizontal sizes by the specified\n factor.\n \n- .. code-block::\n+ .. code-block:: c\n :caption: Definition: The horizontal and vertical binning factors\n \n horizontal_binning = xBin;\n vertical_binning = yBin;\n \n-\n - skipping\n Skipping reduces the image resolution by skipping the read-out of a number\n of adjacent pixels. The skipping factor is specified by the 'increment'\n number (number of pixels to 'skip') in the vertical and horizontal\n directions and for even and odd rows and columns.\n \n- .. code-block::\n+ .. code-block:: c\n :caption: Definition: The horizontal and vertical skipping factors\n \n- horizontal_skipping = (xOddInc + xEvenInc) / 2\n- vertical_skipping = (yOddInc + yEvenInc) / 2\n+ horizontal_skipping = (xOddInc + xEvenInc) / 2;\n+ vertical_skipping = (yOddInc + yEvenInc) / 2;\n \n Different sensors perform the binning and skipping stages in different\n orders. For the sake of computing the final output image size the order of\n execution is not relevant. The overall down-scaling factor is obtained by\n combining the binning and skipping factors.\n \n- .. code-block::\n+ .. code-block:: c\n :caption: Definition: The total scaling factor (binning + sub-sampling)\n \n- total_horizontal_downscale = horizontal_binning + horizontal_skipping\n- total_vertical_downscale = vertical_binning + vertical_skipping\n+ total_horizontal_downscale = horizontal_binning + horizontal_skipping;\n+ total_vertical_downscale = vertical_binning + vertical_skipping;\n \n \n 4. The output size is used to specify any additional cropping on the sub-sampled\n@@ -159,16 +158,16 @@ configurations:\n the *pixel rate* of the data sent on the MIPI CSI-2 bus allows to compute the\n image stream frame rate. The equation is the well known:\n \n- .. code-block::\n+ .. code-block:: c\n \n- frame_duration = total_frame_size / pixel_rate\n- frame_rate = 1 / frame_duration\n+ frame_duration = total_frame_size / pixel_rate;\n+ frame_rate = 1 / frame_duration;\n \n \n where the *pixel_rate* parameter is the result of the sensor's configuration\n of the MIPI CSI-2 bus *(the following formula applies to MIPI CSI-2 when\n used on MIPI D-PHY physical protocol layer only)*\n \n- .. code-block::\n+ .. code-block:: c\n \n- pixel_rate = CSI-2_link_freq * 2 * nr_of_lanes / bits_per_sample\n+ pixel_rate = csi_2_link_freq * 2 * nr_of_lanes / bits_per_sample;\n", "prefixes": [ "libcamera-devel" ] }