From patchwork Mon Dec 7 08:42:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hirokazu Honda X-Patchwork-Id: 10588 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 82A07BDB1F for ; Mon, 7 Dec 2020 10:25:33 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4EE7B67E18; Mon, 7 Dec 2020 11:25:33 +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="JP2QLIrm"; dkim-atps=neutral Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2CA4467E12 for ; Mon, 7 Dec 2020 11:25:32 +0100 (CET) Received: by mail-pf1-x433.google.com with SMTP id d2so5526348pfq.5 for ; Mon, 07 Dec 2020 02:25:32 -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=uL9kLwdJcM4nkkeSwEdQHHno8rfLImGJ6usEyAzyh0Y=; b=JP2QLIrmKaTMqNCrQmO5iGkvIxpjMQF2mQ+r0OJNTcCKwlDgJX/HsrFl2LnTkVyhWL /A6VGrnBvhSWfuQ6AkUrHo++JxdbftV/S4AQaTDgyu2Su0obr9ZS+fn6RkYJa0oYEKVF lE+0MSCNCdlYiK59tJpRqvATe0f4cMuxUcqD8= 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=uL9kLwdJcM4nkkeSwEdQHHno8rfLImGJ6usEyAzyh0Y=; b=SFe7SyVE5Th19RbAWLsojrPAQ7Fp9B8UQMGHgA5HDFl1C1+UELpddlZUD07EiG93DC Y9QnQaQKAsOd+G9gfAZkexnhEYO2rnnuWvhB0JCEuXjQv0QfL0UP3JyVlJyLcwzheGCl dT7qwPSZcRuWOmwPIFwzu1wM0xQo9PiPygM26KCtts0t9/CV9Z7q+VyLV1N6XakCJs/T tuPTUDeo6hx/kb0cILM/txyM764TJuErQX92lSXvrdNEbOVqNZyC3NsmYV/0fDSFvyBU Tyz2wnOf48P+cXYDSe13wpYTA1KFJU6X0DZj5DC6rMGDS5plu9vHaXmmwBfaWWFn9Lfd PvqQ== X-Gm-Message-State: AOAM530fQnbc5vJV7MtMwPIIsDKUiF0vofubT5MqNMoncQHLUY4kbeop YrKP7KxgzxOvkwMuYSYB9Y1gC/bFS6JwwUe3kBA= X-Google-Smtp-Source: ABdhPJzJp8zfdxq2UkOSYVrl59qQWUWOeml/GirHNYVDsm++y4RPaElY3bzZrjS93CUB0Yb3r9JQeg== X-Received: by 2002:a62:1ec7:0:b029:197:e012:19b with SMTP id e190-20020a621ec70000b0290197e012019bmr14791399pfe.77.1607330552040; Mon, 07 Dec 2020 00:42:32 -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 22sm12772144pfn.190.2020.12.07.00.42.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 00:42:31 -0800 (PST) From: Hirokazu Honda To: libcamera-devel@lists.libcamera.org Date: Mon, 7 Dec 2020 08:42:16 +0000 Message-Id: <20201207084218.2307410-1-hiroh@chromium.org> X-Mailer: git-send-email 2.29.2.576.ga3fc446d84-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 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. --- 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)