From patchwork Wed Dec 9 05:54:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hirokazu Honda X-Patchwork-Id: 10620 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 55F35BDE19 for ; Wed, 9 Dec 2020 05:54:19 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C9B0B67F31; Wed, 9 Dec 2020 06:54:18 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="dv2dV+XR"; dkim-atps=neutral Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 907CD67F0B for ; Wed, 9 Dec 2020 06:54:17 +0100 (CET) Received: by mail-pj1-x1042.google.com with SMTP id m5so303391pjv.5 for ; Tue, 08 Dec 2020 21:54:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ha1qEOXC4zJGgg3PbuEXW93Vpopx9aFVJPSPCxvQKSU=; b=dv2dV+XRT/8jw01GHWUIWVppI9QuAs3Jd6MQVJKikBVyqaXqBarLvCmsrvouInzOnX 4Kn28vVlp2k/uwvb2+IuX6KN1pDFzHQGhLs5UCOxrJ/fdsOFkZ9agqlZJ44MOOBPimdY a5jnZYwGrLbdxbt47q0nxhYHKowDM6Ngs1P/s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ha1qEOXC4zJGgg3PbuEXW93Vpopx9aFVJPSPCxvQKSU=; b=a13bhRM6hoXB+ysLvdmSGkb4ab8Yc1AFcmp51MreR5/hO6EQGS8gmH0vowls4m6MrQ llfS471m2YbsZ6sX5/vHWujtZLmRvWpQdofCUjzAC2MEX2CYcGwAil9TOj7iXSlbjFns 24Kkv2/f3hQheglnuzz2N8HrkYxOSr6+NERXDmq5B74Pa182jdfmdFsMshvIpHeT9ukB H5HWFUsTk4F6l8BUaUTpK1B2LvAMSCFDWWwfOjxOkdh1caisHiiuPjHe23pZzUKuydVB fESLj0jjJMkgnBq2lad2sCwuhokrIIyYCX54QVq0ANektHHxe63ZVA1Cb7FgAmNAe+xE x5qw== X-Gm-Message-State: AOAM533VqXOlAPjlc4VrQJ3BTNhc87NAbgGeUct2hfMcKIEAY7iLuBcs vtxsreldpWBNMdfh6DNVpEdp+37MFqnZCg== X-Google-Smtp-Source: ABdhPJz2s3TpTvIqOwVWNc5Ownb/HPrY1g2LlQBbZIx9E0BTnKFjwmVl6jQeFJkBWxMGvvq/1786Gg== X-Received: by 2002:a17:902:bf44:b029:da:d0ee:cef with SMTP id u4-20020a170902bf44b02900dad0ee0cefmr914026pls.12.1607493255573; Tue, 08 Dec 2020 21:54:15 -0800 (PST) Received: from hiroh.c.googlers.com.com (128.141.236.35.bc.googleusercontent.com. [35.236.141.128]) by smtp.gmail.com with ESMTPSA id oc13sm641275pjb.5.2020.12.08.21.54.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Dec 2020 21:54:14 -0800 (PST) From: Hirokazu Honda To: libcamera-devel@lists.libcamera.org Date: Wed, 9 Dec 2020 05:54:08 +0000 Message-Id: <20201209055410.3232987-1-hiroh@chromium.org> X-Mailer: git-send-email 2.29.2.576.ga3fc446d84-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v5 1/3] android: camera_device: Introduce Camera3StreamConfig 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" Camera3StreamConfig is a new class to store camera3_stream and types with associated StreamConfiguration. Signed-off-by: Hirokazu Honda Reviewed-by: Jacopo Mondi Reviewed-by: Kieran Bingham Reviewed-by: Umang Jain Reviewed-by: Laurent Pinchart --- src/android/camera_device.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 2.29.2.576.ga3fc446d84-goog diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp index 675af570..09269d95 100644 --- a/src/android/camera_device.cpp +++ b/src/android/camera_device.cpp @@ -128,6 +128,18 @@ const std::map camera3FormatsMap = { }, }; +/* + * \struct Camera3StreamConfig + * \brief Data to store StreamConfiguration associated with camera3_stream(s). + * \var streams List of streams requested by Android HAL client. + * \var types List of CameraStream::Type associated with streams. + * \var config StreamConfiguration for streams. + */ +struct Camera3StreamConfig { + std::vector streams; + std::vector types; + StreamConfiguration config; +}; } /* namespace */ LOG_DECLARE_CATEGORY(HAL)