From patchwork Thu Jul 2 21:36:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 8555 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 665D5BE905 for ; Thu, 2 Jul 2020 21:37:04 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 2B1CD60C5D; Thu, 2 Jul 2020 23:37:04 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="PGjBG+Ns"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C63B1603B4 for ; Thu, 2 Jul 2020 23:37:02 +0200 (CEST) Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 591159CB; Thu, 2 Jul 2020 23:37:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1593725822; bh=RxlTN8NPou7uJOBR0PGZOq6HM5z77wQA3xBgSXCT1QY=; h=From:To:Cc:Subject:Date:From; b=PGjBG+Nst7KjC6CEn212eEWyfhNitWEnqb5u+R4nNzqBeds5Fejbc+FmrqAn4v7f+ +tWfM1quFUtGxp9bBAHAFTBkUU7rbK23wvKTVUC+4dTp7UrkQ+ULJrio21lKIRQwEP QWMBVTbKw5Zh+OYU38eEcUAFPz+yZCsgpoWTH+lY= From: Kieran Bingham To: libcamera devel Date: Thu, 2 Jul 2020 22:36:45 +0100 Message-Id: <20200702213654.2129054-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/9] android: Multi-stream support 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" A second (hopefully less RFC) iteration of my multi-stream work which I needed to work on to progress MJPG support on the Android HAL. Because of this, you'll notice that the multi-stream support here already supports exposing different stream indexes for the libcamera streams than the camera3 indexes requested. This allows extra streams to be created later to support MJPG, or for an MJPG stream to reference an existing stream. Kieran Bingham (9): libcamera: camera: Allow unspecified roles for generateConfiguration android: camera_device: Provide a toPixelFormat helper android: camera_device: Support multiple stream configurations android: camera_device: Simplify FrameBuffer construction from a buffer_handle_t android: camera_device: Create the Request and Camera3RequestDescriptor together android: camera_device: Maintain a vector of CameraStream android: camera_device: Add buffers for each stream to Requests android: camera_device: Remove single buffer restriction. android: camera_device: Report an error in notifyError() include/libcamera/camera.h | 2 +- src/android/camera_device.cpp | 164 ++++++++++++++++++++-------------- src/android/camera_device.h | 7 ++ 3 files changed, 103 insertions(+), 70 deletions(-)