{"id":13431,"url":"https://patchwork.libcamera.org/api/1.1/covers/13431/?format=json","web_url":"https://patchwork.libcamera.org/cover/13431/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20210823124321.980847-1-hiroh@chromium.org>","date":"2021-08-23T12:43:18","name":"[libcamera-devel,RFC,0/3] Improve CameraBuffer implementation","submitter":{"id":63,"url":"https://patchwork.libcamera.org/api/1.1/people/63/?format=json","name":"Hirokazu Honda","email":"hiroh@chromium.org"},"mbox":"https://patchwork.libcamera.org/cover/13431/mbox/","series":[{"id":2384,"url":"https://patchwork.libcamera.org/api/1.1/series/2384/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2384","date":"2021-08-23T12:43:18","name":"Improve CameraBuffer implementation","version":1,"mbox":"https://patchwork.libcamera.org/series/2384/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/13431/comments/","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 77E98BD87C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 23 Aug 2021 12:43:34 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 8AFCD688A2;\n\tMon, 23 Aug 2021 14:43:33 +0200 (CEST)","from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com\n\t[IPv6:2607:f8b0:4864:20::102b])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 2ABE26025B\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 23 Aug 2021 14:43:30 +0200 (CEST)","by mail-pj1-x102b.google.com with SMTP id oa17so11899296pjb.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 23 Aug 2021 05:43:30 -0700 (PDT)","from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:203:184e:5d20:8fcb:dfcd])\n\tby smtp.gmail.com with ESMTPSA id\n\to2sm12103107pgu.76.2021.08.23.05.43.26\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 23 Aug 2021 05:43:27 -0700 (PDT)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=chromium.org header.i=@chromium.org\n\theader.b=\"JaObfriM\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org;\n\ts=google; h=from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=qm/OWT2JrpKkBkTsokLPBDfP9EiqwyYLj/6E1NUJD84=;\n\tb=JaObfriMUd9CeAiX8+kd6GmXSUTe0ldjTPBXBYKDsCI/vdk8Z6WIefbV9NL3ecm4E5\n\t8dSww1T8RjJiYhaq60kaKxleQJFIHZc1Ge0Q2hW/cFeBKOpEnsRv4Qn97aGc//ywLfr2\n\tKTzWfl28y6wbGbHtPvT6S2260I7SPBXrlgH4Q=","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:mime-version\n\t:content-transfer-encoding;\n\tbh=qm/OWT2JrpKkBkTsokLPBDfP9EiqwyYLj/6E1NUJD84=;\n\tb=aH/u/SeqOkw3nsGQh1qLTD5jAT2bebnABtlX+XYc7TKQOfIQdWJvhsSJcgY6hvIx1h\n\t7loyhp2tWDm81jGVzjfnliJu7kKrYrTlZf+ZKS7/tie1/yJGh3UG+36ojsGXf0LiynbV\n\tg0TcISVbWt3Na9aLKQ5WjRxNpUidFGHvSYdtieSoHfNGHKN79CZKE7vgsiiKQtPjZyg8\n\tJQlsCOhVFiV90NCMvzfC6LngwagXc4l8UDjQYYJx2c7JJ0zyl59IrZ/wx+LPr0bY0j9J\n\tDpKQRdTTug2AAKZDK+0y82W/F3f6C+owsNAZDn99So7n+gbh1GoXDq23u3ez7MSMBl6X\n\tvoLA==","X-Gm-Message-State":"AOAM530UMj+zIVn4iy7uG05fAEj6YPvfQFbls+i2cge3KlpeUKzLw0DH\n\tqoc1fNeJLoMmUmWf2HtDMzvb6uI8X8TJ1g==","X-Google-Smtp-Source":"ABdhPJyu/2pkCGNuH3Ua31TI+tAxAmBb1BMnaAeM04lZ32sW6aqBtWaDPT6VmNyx8aVPyGocj/SDWg==","X-Received":"by 2002:a17:90a:bd18:: with SMTP id\n\ty24mr20166949pjr.83.1629722608091; \n\tMon, 23 Aug 2021 05:43:28 -0700 (PDT)","From":"Hirokazu Honda <hiroh@chromium.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Mon, 23 Aug 2021 21:43:18 +0900","Message-Id":"<20210823124321.980847-1-hiroh@chromium.org>","X-Mailer":"git-send-email 2.33.0.rc2.250.ged5fa647cd-goog","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [RFC PATCH 0/3] Improve CameraBuffer\n\timplementation","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>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"This improves CameraBuffer implementation as follows:\n* Maps planes with reasonable assumtion on non ChromeOS platforms\n* Maps planes in the first plane() call\n* Adds stride/offset/size getter functions\n\nHirokazu Honda (3):\n  android: generic_camera_buffer: Correct buffer mapping\n  android: camera_buffer: Map buffer in the first plane() call\n  android: camera_buffer: Add stride/offset/size function\n\n src/android/camera_buffer.h              |  30 ++++-\n src/android/camera_stream.cpp            |   4 +-\n src/android/mm/cros_camera_buffer.cpp    |  97 ++++++++++-----\n src/android/mm/generic_camera_buffer.cpp | 145 +++++++++++++++++++----\n 4 files changed, 218 insertions(+), 58 deletions(-)\n\n--\n2.33.0.rc2.250.ged5fa647cd-goog"}