From patchwork Fri Dec 11 06:03:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hirokazu Honda X-Patchwork-Id: 10639 X-Patchwork-Delegate: jacopo@jmondi.org 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 F3DE8BD80A for ; Fri, 11 Dec 2020 06:03:25 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C399F634A0; Fri, 11 Dec 2020 07:03:25 +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="dE6B2AqW"; dkim-atps=neutral Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E732D60321 for ; Fri, 11 Dec 2020 07:03:23 +0100 (CET) Received: by mail-pg1-x544.google.com with SMTP id w4so6389350pgg.13 for ; Thu, 10 Dec 2020 22:03:23 -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=pvAznWDlRj1L7vV1SzIcC53gifNN4iz5OzO2gNFdbFk=; b=dE6B2AqWWsYFIB4blLHBNzXRIwrCiNpFFyi4XT9xo0Zpg6M7/GrGIfoZcBFXXMRwdU LmOH+AdgjqY5eaMoCRMR8YHcyDs2EeKycvNJTm1SCNQsmYFUr1erO79XHQu/1hX76qlD NUb7znjS1/BfeubKn9O3ftOiqy4zo7SCoyV7c= 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=pvAznWDlRj1L7vV1SzIcC53gifNN4iz5OzO2gNFdbFk=; b=tF1TK0jmKWZeRPUKkV7AW+/XK1y5EhJ1ZfmqG4TqWU9EUtLr+DHmJUK6sSAWMl0H/+ gnoYwWmYb3k2muDaKY59f/IIiNk53kUClLFTMarYlQG0YpQlsbWKfzBJuea6hHxLhntZ Nbn4vxSG3gRaN+1mdYu/VxO9desK9Dk5UvOlCX0a6kps650uD+8OA10uD6jCFdSO2avV tmKW8iOvQGKrn+KXcgvhBQareGGSQ4rL5misglJcSTZ5uTKEqVKyzUedzbx4p2R9mwih y6D+ViqXsa/a/C+WFyOs/0Hly6j7vIgE6xgePB73E4FNceuz9kGpYIUV29uhN9/c2XuR Bl8Q== X-Gm-Message-State: AOAM530n1XCMWyEXpyx72hPQZ1Si3d7rt1H3yDpLs47psw99KAXZnt4u Or6IW1Zh5q+Xe6AQ/4CplVBrmcG9r6CJ8g== X-Google-Smtp-Source: ABdhPJwH10M1uvVxHoEJmxdExAfxHIGPuyvSLb4wZeckKCkxM+LGxzUXLCY8fc2OYQiEFWheKjgj5Q== X-Received: by 2002:aa7:93cf:0:b029:19d:e287:b02b with SMTP id y15-20020aa793cf0000b029019de287b02bmr817386pff.66.1607666602006; Thu, 10 Dec 2020 22:03:22 -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 m77sm9207503pfd.105.2020.12.10.22.03.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Dec 2020 22:03:21 -0800 (PST) From: Hirokazu Honda To: libcamera-devel@lists.libcamera.org Date: Fri, 11 Dec 2020 06:03:13 +0000 Message-Id: <20201211060315.2637333-1-hiroh@chromium.org> X-Mailer: git-send-email 2.29.2.576.ga3fc446d84-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v6 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 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) -- 2.29.2.576.ga3fc446d84-goog diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp index 872c7b18..58ff329c 100644 --- a/src/android/camera_device.cpp +++ b/src/android/camera_device.cpp @@ -128,6 +128,22 @@ const std::map camera3FormatsMap = { }, }; +/* + * \struct Camera3StreamConfig + * \brief Data to store StreamConfiguration associated with camera3_stream(s). + * \var streams List of the pairs of a stream requested by Android HAL client + * and associated CameraStream::Type associated with the stream. + * \var config StreamConfiguration for streams. + */ +struct Camera3StreamConfig { + struct Camera3Stream { + camera3_stream_t* stream; + CameraStream::Type type; + }; + + std::vector streams; + StreamConfiguration config; +}; } /* namespace */ LOG_DECLARE_CATEGORY(HAL)