Patch Detail
Show a patch.
GET /api/patches/11456/?format=api
{ "id": 11456, "url": "https://patchwork.libcamera.org/api/patches/11456/?format=api", "web_url": "https://patchwork.libcamera.org/patch/11456/", "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": "<20210302141844.126634-10-jacopo@jmondi.org>", "date": "2021-03-02T14:18:42", "name": "[libcamera-devel,v4,09/11] android: jpeg: Use CameraBuffer::jpegBufferSize()", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "9419a2617ec2731c4889fd4cf33500db3e571f39", "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/11456/mbox/", "series": [ { "id": 1740, "url": "https://patchwork.libcamera.org/api/series/1740/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1740", "date": "2021-03-02T14:18:33", "name": "android: Supports memory backends", "version": 4, "mbox": "https://patchwork.libcamera.org/series/1740/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/11456/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/11456/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 09C74BD808\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 2 Mar 2021 14:18:38 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id D72BF68AA1;\n\tTue, 2 Mar 2021 15:18:37 +0100 (CET)", "from relay12.mail.gandi.net (relay12.mail.gandi.net\n\t[217.70.178.232])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 37C1A68A9C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 2 Mar 2021 15:18:36 +0100 (CET)", "from uno.LocalDomain (93-61-96-190.ip145.fastwebnet.it\n\t[93.61.96.190]) (Authenticated sender: jacopo@jmondi.org)\n\tby relay12.mail.gandi.net (Postfix) with ESMTPSA id 1661220000C;\n\tTue, 2 Mar 2021 14:18:34 +0000 (UTC)" ], "From": "Jacopo Mondi <jacopo@jmondi.org>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Tue, 2 Mar 2021 15:18:42 +0100", "Message-Id": "<20210302141844.126634-10-jacopo@jmondi.org>", "X-Mailer": "git-send-email 2.30.0", "In-Reply-To": "<20210302141844.126634-1-jacopo@jmondi.org>", "References": "<20210302141844.126634-1-jacopo@jmondi.org>", "MIME-Version": "1.0", "Subject": "[libcamera-devel] [PATCH v4 09/11] android: jpeg: Use\n\tCameraBuffer::jpegBufferSize()", "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>", "Cc": "Han-lin Chen <hanlinchen@chromium.org>,\n\tDaniel Hung-yu Wu <hywu@google.com>", "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": "Use the newly introduced function to retrieve the size of\nthe JPEG encoding destination buffer, in order to calculate where\nthe JPEG_BLOB_ID should be placed.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n src/android/jpeg/post_processor_jpeg.cpp | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/src/android/jpeg/post_processor_jpeg.cpp b/src/android/jpeg/post_processor_jpeg.cpp\nindex 83244ce6769e..3bf16996a147 100644\n--- a/src/android/jpeg/post_processor_jpeg.cpp\n+++ b/src/android/jpeg/post_processor_jpeg.cpp\n@@ -183,7 +183,7 @@ int PostProcessorJpeg::process(const FrameBuffer &source,\n \n \t/* Fill in the JPEG blob header. */\n \tuint8_t *resultPtr = destination->plane(0).data()\n-\t\t\t + destination->plane(0).size()\n+\t\t\t + destination->jpegBufferSize(cameraDevice_->maxJpegBufferSize())\n \t\t\t - sizeof(struct camera3_jpeg_blob);\n \tauto *blob = reinterpret_cast<struct camera3_jpeg_blob *>(resultPtr);\n \tblob->jpeg_blob_id = CAMERA3_JPEG_BLOB_ID;\n", "prefixes": [ "libcamera-devel", "v4", "09/11" ] }