From patchwork Fri Jul 24 09:07:40 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: 8958 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 B858FBD86F for ; Fri, 24 Jul 2020 09:07:56 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id CB675611B7; Fri, 24 Jul 2020 11:07:55 +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 B28A76118A for ; Fri, 24 Jul 2020 11:07:53 +0200 (CEST) X-Halon-ID: 26096b2d-cd8d-11ea-8fb8-005056917f90 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (p4fca2eca.dip0.t-ipconnect.de [79.202.46.202]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA id 26096b2d-cd8d-11ea-8fb8-005056917f90; Fri, 24 Jul 2020 11:07:53 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Fri, 24 Jul 2020 11:07:40 +0200 Message-Id: <20200724090744.508110-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 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(-) Reviewed-by: Laurent Pinchart