From patchwork Tue Aug 4 11:31:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 9178 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id C02E3BD86F for ; Tue, 4 Aug 2020 11:31:16 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 47B8F6042B; Tue, 4 Aug 2020 13:31:16 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="qiMv1kfi"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 86C4C603C9 for ; Tue, 4 Aug 2020 13:31:14 +0200 (CEST) Received: from Q.local (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B8A8B27B; Tue, 4 Aug 2020 13:31:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1596540671; bh=YeIaP6JGt2XQR34MBr0zKiUoQbjfhlR5H4ZgU7dBhss=; h=From:To:Cc:Subject:Date:From; b=qiMv1kfidqVtDXjnVq9h0Y+/KpyN7FxXdkBdsLF/TH9T2KW0su3S0qv4EzY+7I/4d FwURG5HjO1Gcv8SNPfDgN0hQn9PgOgn4DDNtccl4TLMph2sfvlXbvCJWHqplSKis07 XoVYlljbOhz5I4mHO//VapceDPIpvDB7VQw9psio= From: Kieran Bingham To: libcamera devel Date: Tue, 4 Aug 2020 12:31:05 +0100 Message-Id: <20200804113107.127257-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] android: metadata usage tracking X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" These are probably mostly just out for RFC, but I've used them to determine how many entries, and how many bytes we are actually consuming from the metadata objects through the android layer. If they are useful, we can integrate them, or if someone wants to determine this information locally, they can use these directly. They add a bit of bloat to the objects, to store 4 extra size_t variables, but I don't think that's too heavy, as there are probably only three instances of this class. Kieran Bingham (2): android: camera_metadata: Track storage usage android: camera_metadata: Report storage usages src/android/camera_device.cpp | 6 ++++++ src/android/camera_metadata.cpp | 17 ++++++++++++++++- src/android/camera_metadata.h | 12 ++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-)