From patchwork Thu Apr 14 05:26:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanlin Chen X-Patchwork-Id: 15668 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 2ED1AC0F1B for ; Thu, 14 Apr 2022 05:27:00 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4E46E65644; Thu, 14 Apr 2022 07:26:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1649914019; bh=H5rynvsYThqB0RFoIapV4fg70DJHMc8D3GHcDRHchpk=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=0XonvSUP0MjcNex39p+TJUbcI5LBNhtxu6sx0/5LJceYRrb5tcsGXnmYwJvyX9Pfj Cpy/ll3LzZmXw4T0vnwLROXCtGMYB1JdwOuAesWph3heP2I5I7N4LXxHxWlDEoRIrO /6cOFcD+z9R0Z5SVTCmPBy8iL4YO4tBBXCVplKOofYQQtWFLSugfBga9ievm+Yo7S7 u16fPX0w/5h2X4zS1wwYFzBHDzR9iOHiBnzmxDXHqmXDjWsQfGve4xwl6MDPTYIqsm /AGewgIIHD6S43UHG6oZ+IsyqWYXU2b89eRXqf8TKNvoLZkIyfMghsN9Y7xQzIMc9f zLDmjMCtRnH3w== Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D1906604B0 for ; Thu, 14 Apr 2022 07:26:57 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="jWGjGTlB"; dkim-atps=neutral Received: by mail-pg1-x52e.google.com with SMTP id s137so3851527pgs.5 for ; Wed, 13 Apr 2022 22:26:57 -0700 (PDT) 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=TLk3gQv9OlAccdVRah1JcCIvrV+OEMU79fmR8oPBmg0=; b=jWGjGTlBthXx3NjkUN6SoCdVyFlg/8E6X94ewHCCyfgRfbnlHyvvpASQ7v0GxXqpUJ 4p8dy1Hj9VQwAkCpewOBMj80mWJfyL9XRiagSNEAwHf3snnaa/XgphBN7eIPaxWaHUkc db5omzpLF8GEfVmi8Pqm/HgLZCougwD5fNrA4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TLk3gQv9OlAccdVRah1JcCIvrV+OEMU79fmR8oPBmg0=; b=Uux+RZJypVUninF4zAWYS7ab3Ns1pxlNGkAFSKZ6EoYZjHCSMQ1JEXItlfeOJPTimr AOMZXj07sWvR/eyRaOWkGNBgWH1Ol4iOzrHsQScJhyPDRRH+UwrByhm0Y3rGHnipLHAH XsHZnYUBFgT+ppTgrgrewK4DSe000Hg5UNUy5U+c/H0bjs/uskuK2qK96p604x0csjnQ 8lmwfziVy++8WRYOebUCFxxBM4sTqu5mYeh9zGz4Il3GVSXTY5PqY6/2JZombNAHfo+X DljL6+eKVIxjJJx5DtyPjVlBWo5IiFDdeieRYK/Gkg0Vsb+md+iGLyOrqAA59T3DVDB4 VdCQ== X-Gm-Message-State: AOAM533jUVO5QREoSRON3xP9j247qwEagLh6srj79DCUpsDkgZ5hDrLi sKUb95tdrt7DX2XvzuE0gWf2BGpZaWGPaw== X-Google-Smtp-Source: ABdhPJyBFAl3j7Q+IIMDOWYauHLZv7N1h4Eeo5vmZfQ7VyiQ/0ZY++YHezX1ALiFUjpXO5T+3XsiSA== X-Received: by 2002:a63:d454:0:b0:386:86:6aaa with SMTP id i20-20020a63d454000000b0038600866aaamr969578pgj.60.1649914015896; Wed, 13 Apr 2022 22:26:55 -0700 (PDT) Received: from localhost ([2401:fa00:1:17:c20c:e39:f6d8:c53b]) by smtp.gmail.com with UTF8SMTPSA id b7-20020a056a00114700b004f7be3231d6sm802979pfm.7.2022.04.13.22.26.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Apr 2022 22:26:55 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Thu, 14 Apr 2022 13:26:50 +0800 Message-Id: <20220414052652.4165887-1-hanlinchen@chromium.org> X-Mailer: git-send-email 2.35.1.1178.g4f1659d476-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/2] Introduce YamlParser for YAML files 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: , X-Patchwork-Original-From: Han-Lin Chen via libcamera-devel From: Hanlin Chen Reply-To: Han-Lin Chen Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi, The series is a subset of the previous series for configuration files, which moves the YamlParser related patches as the separate series. Many thanks for previous comments. Han-Lin Chen (2): libcamera: Introduce YamlParser as a helper to parse yaml files android: camera_hal_config: Use YamlParser to parse android HAL config README.rst | 4 +- include/libcamera/internal/meson.build | 1 + include/libcamera/internal/yaml_parser.h | 86 +++ src/android/camera_hal_config.cpp | 334 +++------- src/android/meson.build | 1 - src/libcamera/meson.build | 3 + src/libcamera/yaml_parser.cpp | 781 +++++++++++++++++++++++ 7 files changed, 947 insertions(+), 263 deletions(-) create mode 100644 include/libcamera/internal/yaml_parser.h create mode 100644 src/libcamera/yaml_parser.cpp