From patchwork Wed May 12 10:25:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 12254 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 EC635C31E6 for ; Wed, 12 May 2021 10:25:53 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id EC85461538; Wed, 12 May 2021 12:25:51 +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="om3+8oNo"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8CC89602B7 for ; Wed, 12 May 2021 12:25:50 +0200 (CEST) Received: from pyrite.rasen.tech (unknown [IPv6:2400:4051:61:600:2c71:1b79:d06d:5032]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E7335436; Wed, 12 May 2021 12:25:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1620815150; bh=ErK5UakXKiVz/uz2GhHMmxbcA402cLkGMgH6TVJqCCQ=; h=From:To:Cc:Subject:Date:From; b=om3+8oNomVthWLzDWb9eZHQhjxvjq7XPP1o8xQFFE27m1DbDKsl34B7gI2oe7pZ0+ ys4sg3ZtgMPT/GdQ85wTbDj/xehJ+E3p0vHuyI9lui1UWAxDl/dSs5vSQrRaZyRybF Henp3bzNFf8MxrQYqQewep5IwbhFG4JErsJMfCSw= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Wed, 12 May 2021 19:25:38 +0900 Message-Id: <20210512102541.722956-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/3] Auto-resize CameraMetadata 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" This patch series adds auto-resizing to CameraMetadata so that it no longer needs to be pre-allocated. Convenience template overload functions are added to CameraMetadata, so its callers are converted to using them. Patch 1/3 makes the change toe CameraMetadata (and contains the bulk of the content of this patch series, including some discussion points), and patches 2/3 and 3/3 change the callers. Paul Elder (3): android: camera_metadata: Auto-resize CameraMetadata android: camera_device: Use the new CameraMetadata functions android: jpeg: post_processor: Use the new metadata functions src/android/camera_device.cpp | 288 +++++++++-------------- src/android/camera_device.h | 1 - src/android/camera_metadata.cpp | 84 ++++++- src/android/camera_metadata.h | 44 +++- src/android/jpeg/post_processor_jpeg.cpp | 11 +- 5 files changed, 228 insertions(+), 200 deletions(-)