From patchwork Tue Jul 27 11:05:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 13125 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 8C360C322C for ; Tue, 27 Jul 2021 11:04:37 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 03896687C8; Tue, 27 Jul 2021 13:04:37 +0200 (CEST) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 171FD60272 for ; Tue, 27 Jul 2021 13:04:35 +0200 (CEST) Received: (Authenticated sender: jacopo@jmondi.org) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 8B19E2000D; Tue, 27 Jul 2021 11:04:34 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Tue, 27 Jul 2021 13:05:16 +0200 Message-Id: <20210727110519.11587-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/3] android: Drive-by cleanups 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" While working a larger series I found a small cleanup occasions I thought I could send out earlier to fast track them. The first two are basically just cosmetics, the second might impact the way capabilities are collected in future. No regressions detected when running CTS. Thanks j v2->v3: - Use a switch case for format enumeration as suggested by Laurent v1->v2: - Collected tags - Fix format mapping: as reported by Laurent in the previous version RAW formats != 16 bpp where passed to initializeYUVResolutions(). Fix that by handling all RAW formats in a single if() branch Jacopo Mondi (3): android: capabilities: Use a throw-away config for YUV stream building android: capabilties: Rationalize get[YUV|Raw]Resolution names android: capabilities: Centralize RAW support check src/android/camera_capabilities.cpp | 57 +++++++++++++++++------------ src/android/camera_capabilities.h | 8 ++-- 2 files changed, 37 insertions(+), 28 deletions(-) --- 2.32.0