From patchwork Wed Jun 15 16:25:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Semkowicz X-Patchwork-Id: 16222 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 31C0CBD161 for ; Wed, 15 Jun 2022 16:26:37 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 634BE65635; Wed, 15 Jun 2022 18:26:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1655310396; bh=Z9rqxLL+qvvc4KyVh985KuxXyw9Nzmza1cVOPLcC3D0=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=wn+U/3T2pHk2F+SEusm7urRhBz6MKJZ2ovmOOPHcuPfqW7R/Ow6+VcfYbMJq0NSLu R9oHJS4AVFVm4TcOpQfpQJCtcqY3R8VbXxqxJw8hb2UiBV3XxaT1IB/g4wpwzj6JtY Rra0szRwExU4QaKbdGUhnu0MAANvkU85ab3/c4btWBembbtHLTaxY8DzgtAt4BD9o6 z5X0R0G6wUmB9WCZowzobq5ojm3UXkvcye4h5sV7qqXZpXxyzGC0hOJQYWqjb8UsnQ f+HjxVdtpQ2varByMxxF/hWOfv4EDKKTum31bwTerJQ0JK/4iUM9Kv8ndqGO+J4DYS rSUAGnk7GXDqQ== Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id A344C6559A for ; Wed, 15 Jun 2022 18:26:34 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=thaumatec-com.20210112.gappssmtp.com header.i=@thaumatec-com.20210112.gappssmtp.com header.b="nssFhs+w"; dkim-atps=neutral Received: by mail-wm1-x333.google.com with SMTP id a10so6600748wmj.5 for ; Wed, 15 Jun 2022 09:26:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=klTIaeoJ7KNJe+sJSkXmbHKtDZHwZRd98QqsHTeIDv4=; b=nssFhs+wmFflGlKqRgR3tLN1mabYMgZWYxWUT+fLsQ5ri40ETlXk+kkzprA4jFbVbG PRUFfRQ+ISmtZmTHtMVbY71WUJAmQOVV+v+riwI3wtGmTa8EGjagjLT4oIU+wMWRv+6w cPyNroTOZW6Gc2aC512wyRagnW1jhoeczF7/3S60XXjqsQlWNiQj+G4DfDe7ClYURhbT g2vICUEIiQ53DMxz+yQdv2wrjUsNDzdZxCPWJphQ8Clw6DkVPGmisHMW4N8lYzBcJeUD G+lF6QnihdmhE4m+H6S8EU/YY0IMyNYFpu7KvSIdeHkZSsFADqfUzQ6efbnqg9Dy8EYZ HExw== 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=klTIaeoJ7KNJe+sJSkXmbHKtDZHwZRd98QqsHTeIDv4=; b=QerpR/V5c8ssHj2MfdbP+Do9g/HYgZhXmaUQ1HP/MYog7+QnxZLY9sJEsQJ6Fv5S5x x84Z8ZJeWys1H+z0rXTve49zBcJLV7CeZdVvhSrW5cx9FdlCVcra2Pr4+7uw6EuIt1sL LVgC+1EQJQ2AgGK2+PuKaF+ttQ3hhCCKeTJHG9ensvyPlSc7gY9aaFdAEx24OCcuKFoY ak9Qd5kC4y84KZ0m3GiAXLSlAzxelIiOnnDXcs6oV0FEDgo77S7b6UaH6kormI1K57qM V0MyvX06FLcPOStLbsVV2YLhSKQO9VW2srAhAuq3KeodA/xhsqAceZXqCemsCw90Ea/6 nb0g== X-Gm-Message-State: AOAM533PIcJYbIEtOxvWIW8Q1YNoAPCYGwD6981gmCkSF11mzO2hLh30 LjXhlmAmE02LeC3u+XPebbA53IMl1DqeVjOz X-Google-Smtp-Source: ABdhPJz5wyRzi719jP2kGlg9bqcnb7W9VgUsNSM9x/nPbLhzaowVcc28aFAanYLo1KKtNgC05RH9vg== X-Received: by 2002:a05:600c:214c:b0:39c:43b9:9d5f with SMTP id v12-20020a05600c214c00b0039c43b99d5fmr10795199wml.56.1655310394284; Wed, 15 Jun 2022 09:26:34 -0700 (PDT) Received: from localhost.localdomain (ip092042140082.rev.nessus.at. [92.42.140.82]) by smtp.gmail.com with ESMTPSA id r17-20020a05600c35d100b0039c8d181ac6sm3135772wmq.26.2022.06.15.09.26.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 09:26:33 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Wed, 15 Jun 2022 18:25:58 +0200 Message-Id: <20220615162601.48619-1-dse@thaumatec.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/3] Documentation: Update code examples in Application Writer's Guide 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: Daniel Semkowicz via libcamera-devel From: Daniel Semkowicz Reply-To: Daniel Semkowicz Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hello, I tried to follow "Application Writer's Guide" to build an example C++ application that uses libcamera. Unfortunately, it looks that code examples in documentation no longer match the libcamera source code. The following patches include necessary updates to documentation, that make the example code build and work correctly again. These patches mainly base on the cam and qcam source code as reference. I am new to libcamera, but I hope I understood the software architecture correctly. All comments are appreciated. Best regards Daniel Semkowicz Daniel Semkowicz (3): Documentation: Update code examples to match Request related changes Documentation: Update code examples to use the Request::reuse() method Documentation: Update the "Start an event loop" section .../guides/application-developer.rst | 48 +++++++------------ 1 file changed, 18 insertions(+), 30 deletions(-)