From patchwork Thu Jul 23 17:39:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 8938 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 5E473BD878 for ; Thu, 23 Jul 2020 17:40:49 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B08B861176; Thu, 23 Jul 2020 19:40:48 +0200 (CEST) Received: from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net [195.74.38.229]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 12ACE60496 for ; Thu, 23 Jul 2020 19:40:48 +0200 (CEST) X-Halon-ID: 9d34dc14-cd0b-11ea-933e-005056917a89 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (p4fca2eca.dip0.t-ipconnect.de [79.202.46.202]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA id 9d34dc14-cd0b-11ea-933e-005056917a89; Thu, 23 Jul 2020 19:40:46 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Thu, 23 Jul 2020 19:39:38 +0200 Message-Id: <20200723173942.98182-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/4] android: camera_device: Improve on format related tags 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" Hi, While working on extending the HAL to support RAW format I stumbled upon some small issues with how we report formats to users. These where found running the Open Camera application [1] under a debugger and observing how it consumed tags and by reading the Android documentation. I have tested these changes together with Kieran's JPEG work and the stock camera applications behaves the same as it does without this series so I'm not able to provoke any regressions. This series is a preparation for a small series enabling RAW streams in the HAL. Using this series, the JPEG work and a yet to be sent RAW series I mange to light up the RAW capture options in Open Camera while retaining a functioning stock camera application. 1. https://opencamera.org.uk/ Niklas Söderlund (4): android: camera_device: Remove ANDROID_SCALER_AVAILABLE_FORMATS android: camera_device: Use HAL_PIXEL_FORMAT_* defines for formats android: camera_device: Remove scaler format information from Camera3Format android: camera_device: Add ANDROID_REQUEST_MAX_NUM_INPUT_STREAMS src/android/camera_device.cpp | 35 ++++++++++++----------------------- src/android/camera_device.h | 2 +- 2 files changed, 13 insertions(+), 24 deletions(-)