{"id":11645,"url":"https://patchwork.libcamera.org/api/1.1/covers/11645/?format=json","web_url":"https://patchwork.libcamera.org/cover/11645/","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":"<20210323014226.3211412-1-hiroh@chromium.org>","date":"2021-03-23T01:42:18","name":"[libcamera-devel,0/8] Improve pointer types in android HAL adaptation layer","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/11645/mbox/","series":[{"id":1817,"url":"https://patchwork.libcamera.org/api/1.1/series/1817/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=1817","date":"2021-03-23T01:42:18","name":"Improve pointer types in android HAL adaptation layer","version":1,"mbox":"https://patchwork.libcamera.org/series/1817/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/11645/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 D1F78C32E1\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 23 Mar 2021 01:42:40 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 2371668D66;\n\tTue, 23 Mar 2021 02:42:40 +0100 (CET)","from mail-pg1-x533.google.com (mail-pg1-x533.google.com\n\t[IPv6:2607:f8b0:4864:20::533])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 1DDAB6051B\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 23 Mar 2021 02:42:38 +0100 (CET)","by mail-pg1-x533.google.com with SMTP id n11so10111761pgm.12\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 22 Mar 2021 18:42:38 -0700 (PDT)","from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:2:8115:e5cc:747b:64de])\n\tby smtp.gmail.com with ESMTPSA id\n\th13sm590527pjv.52.2021.03.22.18.42.34\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 22 Mar 2021 18:42:35 -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=\"k6FamN4W\"; 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=P7xXTs96oPohFsnvOJj4h8lxl/WYO8eO94BCVE5iCVE=;\n\tb=k6FamN4WFkJ3WOJ4m2UbLY/6NIen/3uiquvKeBr7njtsFw61Yt/zhxDN5Xa0sL6nvx\n\tKjY+aJTiuanNDrd9bHn7VLt/yw0FQJi7jV/j6Sg24UaKL5En8d11ZGw7M8FXcsPCgv1o\n\tsD7xDVEijUF+lXMqhYnUjE5yb+v4rQkmstS5E=","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=P7xXTs96oPohFsnvOJj4h8lxl/WYO8eO94BCVE5iCVE=;\n\tb=d65bZFisRPDj0t46WA8LTtraIzmEUsBB7DKmoE37Qe/LImg0kE5hM1tx42pO5we5No\n\tXER81vu8iOppobRoHOMjuoFvKDP6FP0fSDtuwLpeWyo17cctD1hFRBIOSq0GLmdRpXCh\n\tZZQ/IXntVvbB+iCFlqO2zErt6xvtDs9dPISyjzI/qOL5czMBY+9BVPpgEw5XfsZ5t6Tn\n\tq55zNuTWRkvl13PKkkECq5uZHoUw2iDUaChKdUSOxAMg99wf4bTSC5kd3JcLSeT4ly8N\n\tG6E6mWbSGXRFfCflexdN0CjbPRcKuaAxf4H60qFV2D2oUy5/XzGp3IAt9Nu+BpiqqmY7\n\tUMuA==","X-Gm-Message-State":"AOAM530pvo/5ZoLGJQQjuc7crs9IfbkDV8Dl21CeFjS6b00x7lw52q7f\n\tyC/cBzsNmeq0jNv+hsmF16kRb0fgpqF9OQ==","X-Google-Smtp-Source":"ABdhPJz02UVFyHtD7u39baCFilp91Hi0MI53hyZHir6DfEHJO935JmBbMZADTWVm+s/LPtIjLAJAfw==","X-Received":"by 2002:a63:5f0f:: with SMTP id\n\tt15mr1867583pgb.225.1616463756243; \n\tMon, 22 Mar 2021 18:42:36 -0700 (PDT)","From":"Hirokazu Honda <hiroh@chromium.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Tue, 23 Mar 2021 10:42:18 +0900","Message-Id":"<20210323014226.3211412-1-hiroh@chromium.org>","X-Mailer":"git-send-email 2.31.0.rc2.261.g7f71774620-goog","MIME-Version":"1.0","Subject":"[libcamera-devel] [PATCH 0/8] Improve pointer types in android HAL\n\tadaptation layer","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>","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":"This patch series is intended to clarify the ownership of objects\nand omit manual new/delete code by improving pointer types in\nandroid HAL adaptation layer.\n\nHirokazu Honda (8):\n  android: CameraHalManager: Hold CameraDevice with std::unique_ptr\n  android: CameraHalManager: Hold CameraManager with std::unique_ptr\n  android: CameraHalManager: Fix a function call of a moved Camera\n  android: CameraDevice: Take shared_ptr in constructor\n  android: CameraDevice: Return const shared_ptr& by camera()\n  android: Camera3RequestDescriptor: Manage buffers with std::vector\n  android: CameraDevice: Manage staticMetadata_ with std::unique_ptr\n  android: CameraDevice: Manage requestTemplates_ with std::unique_ptr\n\n src/android/camera_device.cpp      | 82 ++++++++++++------------------\n src/android/camera_device.h        | 19 ++++---\n src/android/camera_hal_manager.cpp | 31 ++++-------\n src/android/camera_hal_manager.h   |  4 +-\n 4 files changed, 55 insertions(+), 81 deletions(-)\n\n--\n2.31.0.rc2.261.g7f71774620-goog"}