{"id":13497,"url":"https://patchwork.libcamera.org/api/1.1/covers/13497/?format=json","web_url":"https://patchwork.libcamera.org/cover/13497/","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":"<20210826080021.3454520-1-hiroh@chromium.org>","date":"2021-08-26T08:00:18","name":"[libcamera-devel,v3,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/13497/mbox/","series":[{"id":2397,"url":"https://patchwork.libcamera.org/api/1.1/series/2397/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2397","date":"2021-08-26T08:00:18","name":"Improve CameraBuffer implementation","version":3,"mbox":"https://patchwork.libcamera.org/series/2397/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/13497/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 9002CBD87C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 26 Aug 2021 08:00:32 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 9D72C688AE;\n\tThu, 26 Aug 2021 10:00:31 +0200 (CEST)","from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com\n\t[IPv6:2607:f8b0:4864:20::52c])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id AFC5D6025A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 26 Aug 2021 10:00:29 +0200 (CEST)","by mail-pg1-x52c.google.com with SMTP id k24so2388190pgh.8\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 26 Aug 2021 01:00:29 -0700 (PDT)","from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:203:a5bc:b3dd:7208:bec1])\n\tby smtp.gmail.com with ESMTPSA id\n\tg3sm2570805pgj.66.2021.08.26.01.00.25\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 26 Aug 2021 01:00: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=\"ksQRkvfq\"; 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=OwzjQWywEs5J9RMipBsiBdaVHtsTY69nhdRt6WGwIKI=;\n\tb=ksQRkvfq1GIGKkMCDmyo8aPXiubsvJ72VmTydgJYCo0Ot1X+4zPcNb8bqVECD0RNV7\n\tYWrxCYSejl/vBCkD858s7bPkLUKadRbmV24foir3U7FORBDJIdU9EVkZ/z18M5ba++i9\n\tLqiCukT+34s+AHw/kgR2WLVzWcDhXLbUUyC/k=","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=OwzjQWywEs5J9RMipBsiBdaVHtsTY69nhdRt6WGwIKI=;\n\tb=X50l10CC/KmaX+m1IDVJQeUuvDRqq/c6d/u7+VEgDBFMx2hUd6G2IMHnKwzhG5yJNF\n\tD+niMZygAVtpwFZZpn60jwsXegIAKaAf7+IaVzv1UepqrqGQ2U4g+NrXDfKuQTM4GxWN\n\tY0J+QDB4LsasAZttLcDKkN+1YltyFTM5NUVS3QtB1KTBsQomzF2IhO5AwOrC01628fzM\n\tnIsF/KDMr/IEwQjkEDBU9bCOnJyH5t890/2yFNmzX8FkrFXh19BNDILHV7+wawF7vOk8\n\trqME+OXZjVqNf7Z/PPKrfZsHVGOb7MJHs1fscMb0k19x9rS2lTqP/s8B5GiSnH71k/lo\n\tnmQw==","X-Gm-Message-State":"AOAM5306o8RNYfNQ5U7etu+NrPJQY3JU4Elbkvj5pUAFmsLQjSNB5X/v\n\t3NYSSi8fvVbjQ3KJDt+KQsISAWJVbhSahg==","X-Google-Smtp-Source":"ABdhPJwJBzGlmV+C2xmYvIoywHQHhdKINruH6hJIjlHdJFDO2vGrxYZgmzzfmaItN9gB2cGEmASFzg==","X-Received":"by 2002:a62:8144:0:b0:3af:7e99:f48f with SMTP id\n\tt65-20020a628144000000b003af7e99f48fmr2423023pfd.2.1629964827721; \n\tThu, 26 Aug 2021 01:00:27 -0700 (PDT)","From":"Hirokazu Honda <hiroh@chromium.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Thu, 26 Aug 2021 17:00:18 +0900","Message-Id":"<20210826080021.3454520-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] [PATCH v3 0/3] Improve CameraBuffer implementation","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\nChange in v3:\n- Address comments from Jacopo and Laurent\n\nChange in v2:\n- Address Laurent's comments\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 | 165 +++++++++++++++++++----\n 4 files changed, 238 insertions(+), 58 deletions(-)\n\n--\n2.33.0.rc2.250.ged5fa647cd-goog"}