{"id":13478,"url":"https://patchwork.libcamera.org/api/1.1/covers/13478/?format=json","web_url":"https://patchwork.libcamera.org/cover/13478/","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":"<20210825044410.2787433-1-hiroh@chromium.org>","date":"2021-08-25T04:44:07","name":"[libcamera-devel,v2,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/13478/mbox/","series":[{"id":2390,"url":"https://patchwork.libcamera.org/api/1.1/series/2390/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2390","date":"2021-08-25T04:44:07","name":"Improve CameraBuffer implementation","version":2,"mbox":"https://patchwork.libcamera.org/series/2390/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/13478/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 BFB89BD87C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 25 Aug 2021 04:44:25 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 20894688A3;\n\tWed, 25 Aug 2021 06:44:25 +0200 (CEST)","from mail-pg1-x535.google.com (mail-pg1-x535.google.com\n\t[IPv6:2607:f8b0:4864:20::535])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id D5B6E60257\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 25 Aug 2021 06:44:22 +0200 (CEST)","by mail-pg1-x535.google.com with SMTP id t1so21891125pgv.3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 24 Aug 2021 21:44:22 -0700 (PDT)","from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:203:ddfd:dd12:81a2:3205])\n\tby smtp.gmail.com with ESMTPSA id\n\tn20sm2797544pfa.91.2021.08.24.21.44.19\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 24 Aug 2021 21:44:20 -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=\"JzE/fYTd\"; 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=HFWiZ7/46hvLig4tJBBwK/difHzvrUqpECM3jt3/+54=;\n\tb=JzE/fYTdPOyvC8n2htLpdLzy54RE07LVqGahJjDkd7ijMD0M7AtxGbf+sHk4F2zYcy\n\tq6/AKPWMaVFCXkph7gJJLQxfyKg5Bdr5ACeOC+3+ngfdwlsaOOQF01DW/dSzliwC0MsA\n\tTIZ8Tn8tnVs9RQR8GrLZvXMnaWpcUw9VTWQns=","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=HFWiZ7/46hvLig4tJBBwK/difHzvrUqpECM3jt3/+54=;\n\tb=G7WZ7awkFatyOI1s8rqb/pWxWMV07wIk0NKJbrw2K0UNmoD8fQyTOxU7UjgmxVoZL2\n\tBgfnMFJF6wI2bjRW5IuuqUE+2v7Rn+5hmwEADuDJ89lViEeb+f4niD1BTOev1F1eiCc+\n\t+SlXrGqnre2hV1GdgcTI5M2r9f68pr6pwV1HQMBnVCdtkzmsM7fyUU4+z+6BnzWMPg3I\n\tKzPyK9sUdLCqPKPr6gi45egcKdVc5SnNpjc8neQVzy1ucIMY11b7HJfbOV1eviKod9U/\n\tQkG/MXor36PZAwNCXx+LnDu1UwA7PiphEsfXvrje+2XvQjsYQh42ncomRYCZGU5p4ZTi\n\tKv2Q==","X-Gm-Message-State":"AOAM530ls4iXE95vAI/4tl15VlwLNhWEYgMiM4jB55ru/TZ8n+VxyiII\n\tUQEnYOH0F8Sp83slo29wcpqQDJXuNOuenw==","X-Google-Smtp-Source":"ABdhPJxyonyZvzn2W0ajGKumpruBgiTjUmlpapNtLx42RhDLBFlS68gINiYKPdC1x+2bfHHU8U/Btg==","X-Received":"by 2002:a63:770f:: with SMTP id\n\ts15mr40239761pgc.137.1629866661028; \n\tTue, 24 Aug 2021 21:44:21 -0700 (PDT)","From":"Hirokazu Honda <hiroh@chromium.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Wed, 25 Aug 2021 13:44:07 +0900","Message-Id":"<20210825044410.2787433-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 v2 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 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 | 169 +++++++++++++++++++----\n 4 files changed, 240 insertions(+), 60 deletions(-)\n\n--\n2.33.0.rc2.250.ged5fa647cd-goog"}