From patchwork Fri May 14 06:13:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 12280 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 37114C31F6 for ; Fri, 14 May 2021 06:13:27 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 680396891C; Fri, 14 May 2021 08:13:26 +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="Bj/puChF"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 4D138602B4 for ; Fri, 14 May 2021 08:13:25 +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 BA2C49F0; Fri, 14 May 2021 08:13:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1620972804; bh=xLEuL3I83tkN6rIgVkgxL9kdbvKT7Yl279qJRzGRSpQ=; h=From:To:Cc:Subject:Date:From; b=Bj/puChF4YT4kCLSilyRos4+PR2AHKJm7EvJUtT9YblbViQdsN5giqb+CpW/Zd5uH pPNQ8+anqhJ42c571/T+DcpFUF8fd8Lp2FRulPS8Ah4wQT7AcKwNHluNkRdrh21RDT DCSYrYES3mvhpCEM2DJabdWewIPHpTeDDZziynp8= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Fri, 14 May 2021 15:13:06 +0900 Message-Id: <20210514061309.791987-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 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 | 286 +++++++++-------------- src/android/camera_device.h | 1 - src/android/camera_metadata.cpp | 84 ++++++- src/android/camera_metadata.h | 40 +++- src/android/jpeg/post_processor_jpeg.cpp | 11 +- 5 files changed, 225 insertions(+), 197 deletions(-)