Show a patch.

GET /api/1.1/patches/3329/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 3329,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/3329/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/3329/",
    "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": "<20200326145927.324919-2-jacopo@jmondi.org>",
    "date": "2020-03-26T14:59:22",
    "name": "[libcamera-devel,v4,1/6] libcamera: properties: Define pixel array properties",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "5e7c2b6acdf6215fff755c4ddf81be2f37777950",
    "submitter": {
        "id": 3,
        "url": "https://patchwork.libcamera.org/api/1.1/people/3/?format=api",
        "name": "Jacopo Mondi",
        "email": "jacopo@jmondi.org"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/3329/mbox/",
    "series": [
        {
            "id": 782,
            "url": "https://patchwork.libcamera.org/api/1.1/series/782/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=782",
            "date": "2020-03-26T14:59:21",
            "name": "Camera properties and camera sensor factory",
            "version": 4,
            "mbox": "https://patchwork.libcamera.org/series/782/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/3329/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/3329/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<jacopo@jmondi.org>",
        "Received": [
            "from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net\n\t[217.70.183.200])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 704E360410\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 26 Mar 2020 15:56:33 +0100 (CET)",
            "from localhost.localdomain (2-224-242-101.ip172.fastwebnet.it\n\t[2.224.242.101]) (Authenticated sender: jacopo@jmondi.org)\n\tby relay7-d.mail.gandi.net (Postfix) with ESMTPSA id EFE7B20008\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 26 Mar 2020 14:56:32 +0000 (UTC)"
        ],
        "X-Originating-IP": "2.224.242.101",
        "From": "Jacopo Mondi <jacopo@jmondi.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Thu, 26 Mar 2020 15:59:22 +0100",
        "Message-Id": "<20200326145927.324919-2-jacopo@jmondi.org>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20200326145927.324919-1-jacopo@jmondi.org>",
        "References": "<20200326145927.324919-1-jacopo@jmondi.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v4 1/6] libcamera: properties: Define\n\tpixel array properties",
        "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>",
        "X-List-Received-Date": "Thu, 26 Mar 2020 14:56:33 -0000"
    },
    "content": "Add definition of pixel array related properties.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n src/libcamera/property_ids.yaml | 155 ++++++++++++++++++++++++++++++++\n 1 file changed, 155 insertions(+)",
    "diff": "diff --git a/src/libcamera/property_ids.yaml b/src/libcamera/property_ids.yaml\nindex ce627fa042ba..ea9d363fdef8 100644\n--- a/src/libcamera/property_ids.yaml\n+++ b/src/libcamera/property_ids.yaml\n@@ -386,4 +386,159 @@ controls:\n                               |                    |\n                               |                    |\n                               +--------------------+\n+\n+  - PixelArraySize:\n+      type: float\n+      size: [2]\n+      description: |\n+        The physical sizes of the pixel array (width and height), in\n+        millimeters.\n+\n+  - PixelArray:\n+      type: int32_t\n+      size: [2]\n+      description: |\n+        The camera sensor pixel array vertical and horizontal sizes, in pixels.\n+\n+        The property describes a rectangle with its top-left corner in position\n+        (0, 0) and width and height described by the first and second values\n+        of this property.\n+\n+        The PixelArray property defines the rectangle that includes all possible\n+        rectangles defined by the ActiveAreas property, and describes the full\n+        pixel array, including non-active pixels, black level calibration\n+        pixels etc.\n+\n+  - ActiveAreas:\n+      type: int32_t\n+      size: [4 x n]\n+      description: |\n+        The camera sensor active pixel area rectangles, represented as\n+        rectangles contained in the one described by the PixelArrays property.\n+\n+        This property describes an arbitrary number of overlapping rectangles,\n+        representing the active pixel portions of the camera sensor pixel array.\n+\n+        Each rectangle is defined by its displacement from pixel (0, 0) of\n+        the rectangle described by the PixelArray property, a width and an\n+        height.\n+\n+        Each rectangle described by this property represents the maximum image\n+        size that the camera module can produce for a given image resolution.\n+\n+        Example 1.\n+        A sensor which only produces images in the 4:3 image resolution will\n+        report a single ActiveArea rectangle, from which all other image formats\n+        are obtained by either cropping the field-of-view and/or applying pixel\n+        sub-sampling techniques such as pixel skipping or binning.\n+\n+                        PixelArray(0)\n+                    /-----------------/\n+                      x1          x2\n+            (0,0)-> +-o------------o-+  /\n+                 y1 o +------------+ |  |\n+                    | |////////////| |  |\n+                    | |////////////| |  | PixelArray(1)\n+                    | |////////////| |  |\n+                 y2 o +------------+ |  |\n+                    +----------------+  /\n+\n+        The property reports a single rectangle\n+\n+                 ActiveArea = (x1, y1, (x2 - x1), (y2 - y1))\n+\n+        Example 2\n+        A camera sensor which can produce images in different native\n+        resolutions, will report several overlapping rectangle, one for each\n+        natively supported resolution, ordered from the tallest to the shortest\n+        one.\n+\n+                        PixelArray(0)\n+                    /-----------------/\n+                     x1  x2    x3  x4\n+            (0,0)-> +o---o------o---o+  /\n+                 y1 |    +------+    |  |\n+                    |    |//////|    |  |\n+                 y2 o+---+------+---+|  |\n+                    ||///|//////|///||  | PixelArray(1)\n+                 y3 o+---+------+---+|  |\n+                    |    |//////|    |  |\n+                 y4 |    +------+    |  |\n+                    +----+------+----+  /\n+\n+        The property reports two rectangles\n+\n+                PixelArray = ( (x2, y1, (x3 - x2), (y4 - 1),\n+                               (x1, y2, (x4 - x1), (y3 - y2))\n+\n+        The first rectangle describes the maximum field-of-view of all image\n+        formats in the 4:3 resolutions, while the second one describes the\n+        maximum field of view for all image formats in the 16:9 resolutions.\n+\n+  - BayerFilterArrangement:\n+      type: int32_t\n+      description: |\n+        The pixel array color filter displacement.\n+\n+        This property describes the arrangement and readout sequence of the\n+        three RGB color components of the sensor's Bayer Color Filter Array\n+        (CFA).\n+\n+        Color filters are usually displaced in line-alternating fashion on the\n+        sensor pixel array. In example, one line might be composed of Red-Green\n+        while the successive is composed of Blue-Green color information.\n+\n+        The value of this property represents the arrangement of color filters\n+        in the top-left 2x2 pixel square.\n+\n+        For example, for a sensor with the following color filter displacement\n+\n+                 (0, 0)               (max-col)\n+           +---+    +--------------...---+\n+           |B|G|<---|B|G|B|G|B|G|B|...B|G|\n+           |G|R|<---|G|R|G|R|G|R|G|...G|R|\n+           +---+    |B|G|B|G|B|G|B|...B|G|\n+                    ...                  ..\n+                    ...                  ..\n+                    |G|R|G|R|G|R|G|...G|R|\n+                    |B|G|B|G|B|G|B|...B|G|   (max-lines)\n+                    +--------------...---+\n+\n+        The filter arrangement is represented by the BGGR value, which\n+        correspond to the pixel readout sequence in line interleaved mode.\n+\n+      enum:\n+        - name: BayerFilterRGGB\n+          value: 0\n+          description: |\n+            Color filter array displacement is Red-Green/Green-Blue\n+\n+        - name: BayerFilterGRBG\n+          value: 1\n+          description: |\n+            Color filter array displacement is Green-Red/Blue-Green\n+\n+        - name: BayerFilterGBRG\n+          value: 2\n+          description: |\n+            Color filter array displacement is Green-Blue/Red-Green\n+\n+        - name: BayerFilterBGGR\n+          value: 3\n+          description: |\n+            Color filter array displacement is Blue-Green/Green-Red\n+\n+        - name: BayerFilterNonStandard\n+          value: 4\n+          description: |\n+            The pixel array color filter does not use the standard Bayer RGB\n+            color model\n+\n+  - ISOSensitivityRange:\n+      type: int32_t\n+      size: [2]\n+      description: |\n+        The range of supported ISO sensitivities, as documented by the\n+        ISO 12232:2006 (or later) standard.\n+\n ...\n",
    "prefixes": [
        "libcamera-devel",
        "v4",
        "1/6"
    ]
}