From patchwork Fri Jul 24 14:21:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 8968 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 D8AB3BD878 for ; Fri, 24 Jul 2020 14:17:49 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 74FC6611B4; Fri, 24 Jul 2020 16:17:49 +0200 (CEST) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C940560535 for ; Fri, 24 Jul 2020 16:17:47 +0200 (CEST) X-Originating-IP: 2.224.242.101 Received: from uno.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 2E87560005; Fri, 24 Jul 2020 14:17:46 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Fri, 24 Jul 2020 16:21:14 +0200 Message-Id: <20200724142120.95538-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/6] android: camera_device: generate templates per use-case 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 series aims to be a starting point to fix several CTS reported issues on the request template generation. we currently return the same template for all the supported use cases, which was a temporary shortcut at the time, but doesn't match what is expected by CTS. Start by fixing the PREVIEW template, and pave the road to make the other templates generated depending on the requested use case. Thanks j Jacopo Mondi (6): android: camera_metadata: Mark isValid() as const android: camera_metadata: Add const version of get() andrdid: camera_device: Store const templates android: camera_metadata: Add method to update an entry android: camera_device: Create request templates per use-case android: camera_device: Fix preview template src/android/camera_device.cpp | 178 ++++++++++++++++++++++++-------- src/android/camera_device.h | 9 +- src/android/camera_metadata.cpp | 32 ++++++ src/android/camera_metadata.h | 4 +- 4 files changed, 179 insertions(+), 44 deletions(-) --- 2.27.0