From patchwork Tue Dec 8 03:42:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hirokazu Honda X-Patchwork-Id: 10606 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 7FAEBBDB20 for ; Tue, 8 Dec 2020 03:43:16 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4A0AC67E6E; Tue, 8 Dec 2020 04:43:16 +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="Fh7yX1cf"; dkim-atps=neutral Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 84EC360323 for ; Tue, 8 Dec 2020 04:43:15 +0100 (CET) Received: by mail-pl1-x631.google.com with SMTP id u4so596584plr.12 for ; Mon, 07 Dec 2020 19:43:15 -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=wfuHnw/o1BEKzZB+FNrcaj5EYzRpluI2L6jqwUrfoeU=; b=Fh7yX1cfyZkBmBjFAgeAtsTr9QmP5JQO8wDwBYnqpPalWiuNvgmm5fnk318PkBwgyg Wa8Yinx1TVs0W2nNT19AhN8/S+69+LK6btqtq8EPc+5KUvZnt/5my/VQpd/uX4mmIoaP 9k+/BBgTaAWm0/Q0uoqLeV+BalCfxMNdrsKkg= 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=wfuHnw/o1BEKzZB+FNrcaj5EYzRpluI2L6jqwUrfoeU=; b=QD+J5/GgTjM1it372jaIbE5gZY+3e9NQKt/7pScef4uyELKEVDhvSqAz17MZJ/Fp3n ACRy+ClL0Yj3mKSUz/PNrbn2ZixhVoYBFg5678OU+8NUfp/8PSQUZD8qHmo8YAMtJKVp bDimrghfmx1+Xfs02CqAALXdIdcsnwqep/zmIXmNWFTZHXjGgZWgXzGH/nGgridNDCNW Vk1o8p81l+3pheM3D9ChH7O19uY7jZypxZxEwbbVg/A/r2igmey8Lmgg30gmtl+tJkA+ dcBAMa1CGWnYLk0PphhXTtZyzsaT6oZtKyA+dHYzQTslgRmxcfIUKneq17cXx6i5hhdR 5SmQ== X-Gm-Message-State: AOAM533qMFGzrbWcoN8wTbraKHK5lWacPKlelHdFs6fKtDSfmnX8UXG+ 47Ig2ljSCmJ+nXkbWcu/K/3oUKMyB9f+PDpC X-Google-Smtp-Source: ABdhPJwzF3QI0lpZV2Daha3GIFSq/0WBHhhJT/Y5K1ypJ34IIBr+cKU9pqQTXVpGhBFNBaNajC/UHw== X-Received: by 2002:a17:902:8649:b029:d9:fcd9:522a with SMTP id y9-20020a1709028649b02900d9fcd9522amr19542708plt.83.1607398993898; Mon, 07 Dec 2020 19:43:13 -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 y23sm9028227pfc.178.2020.12.07.19.43.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 19:43:13 -0800 (PST) From: Hirokazu Honda To: libcamera-devel@lists.libcamera.org Date: Tue, 8 Dec 2020 03:42:31 +0000 Message-Id: <20201208034234.2501401-1-hiroh@chromium.org> X-Mailer: git-send-email 2.29.2.576.ga3fc446d84-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 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 --- 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)