From patchwork Mon Jul 26 15:30:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 13119 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 8C037C322C for ; Mon, 26 Jul 2021 15:30:19 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id D76E8687BF; Mon, 26 Jul 2021 17:30:18 +0200 (CEST) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 20E75687AF for ; Mon, 26 Jul 2021 17:30:17 +0200 (CEST) Received: (Authenticated sender: jacopo@jmondi.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 9BB401C0002; Mon, 26 Jul 2021 15:30:16 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Mon, 26 Jul 2021 17:30:57 +0200 Message-Id: <20210726153100.27856-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 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 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 | 45 ++++++++++++++--------------- src/android/camera_capabilities.h | 8 ++--- 2 files changed, 25 insertions(+), 28 deletions(-) --- 2.32.0