Patch Detail
Show a patch.
GET /api/patches/3520/?format=api
{ "id": 3520, "url": "https://patchwork.libcamera.org/api/patches/3520/?format=api", "web_url": "https://patchwork.libcamera.org/patch/3520/", "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": "<20200424215304.558317-3-jacopo@jmondi.org>", "date": "2020-04-24T21:52:53", "name": "[libcamera-devel,v3,02/13] libcamera: properties: Define pixel array properties", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "9fe18768f9ca6ffc0e828fde8008b7d55c243e27", "submitter": { "id": 3, "url": "https://patchwork.libcamera.org/api/people/3/?format=api", "name": "Jacopo Mondi", "email": "jacopo@jmondi.org" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/3520/mbox/", "series": [ { "id": 822, "url": "https://patchwork.libcamera.org/api/series/822/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=822", "date": "2020-04-24T21:52:51", "name": "libcamera: Add CameraSensorInfo", "version": 3, "mbox": "https://patchwork.libcamera.org/series/822/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/3520/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/3520/checks/", "tags": {}, "headers": { "Return-Path": "<jacopo@jmondi.org>", "Received": [ "from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net\n\t[217.70.183.195])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 3FF73603FD\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 24 Apr 2020 23:50:04 +0200 (CEST)", "from uno.homenet.telecomitalia.it\n\t(host240-55-dynamic.3-87-r.retail.telecomitalia.it [87.3.55.240])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay3-d.mail.gandi.net (Postfix) with ESMTPSA id EB1D860004;\n\tFri, 24 Apr 2020 21:50:02 +0000 (UTC)" ], "X-Originating-IP": "87.3.55.240", "From": "Jacopo Mondi <jacopo@jmondi.org>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Fri, 24 Apr 2020 23:52:53 +0200", "Message-Id": "<20200424215304.558317-3-jacopo@jmondi.org>", "X-Mailer": "git-send-email 2.26.1", "In-Reply-To": "<20200424215304.558317-1-jacopo@jmondi.org>", "References": "<20200424215304.558317-1-jacopo@jmondi.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v3 02/13] 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": "Fri, 24 Apr 2020 21:50:04 -0000" }, "content": "Add definition of pixel array related properties.\n\nReviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>\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..8f6797723a9d 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 PixelArray 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", "v3", "02/13" ] }