From patchwork Fri May 14 06:43:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 12284 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 5B9C0C31F6 for ; Fri, 14 May 2021 06:43:24 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 717956891C; Fri, 14 May 2021 08:43:23 +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="mODVViYD"; 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 EF24E602B4 for ; Fri, 14 May 2021 08:43:22 +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 65AB09F0; Fri, 14 May 2021 08:43:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1620974602; bh=h6/zbzif8jlpda99eDfrAVqqMButj9Va05KdiMDZnnA=; h=From:To:Cc:Subject:Date:From; b=mODVViYDYq2edGt5f4rYVB5O7hbT/PQOJN4uHsxmoAuIejrNjSg4J5+T+zu+YyFb+ Js9Js+QV77XXlT0Jia8wHRiWZKIXAyD6VKUNdLtiJR7IhHrfK1Xxr0xI0ibOScerGB u6tIzAjabqrkUZCUjp+TAT48lVFBaqNQCNQ+/Lpo= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Fri, 14 May 2021 15:43:00 +0900 Message-Id: <20210514064303.798045-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v5 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 to CameraMetadata (and contains the bulk of the content of this patch series), 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 | 290 +++++++++-------------- src/android/camera_device.h | 1 - src/android/camera_metadata.cpp | 84 ++++++- src/android/camera_metadata.h | 52 +++- src/android/jpeg/post_processor_jpeg.cpp | 11 +- 5 files changed, 239 insertions(+), 199 deletions(-)