From patchwork Fri Apr 7 10:20:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cheng-Hao Yang X-Patchwork-Id: 18531 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 585FBBD808 for ; Fri, 7 Apr 2023 10:20:58 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 67BFE603A4; Fri, 7 Apr 2023 12:20:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1680862857; bh=0rtAw7Bdj6hLYb9mQ5m4fqiepVa4gd9FyNcAmnDSUaQ=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=dfPoqWkPjMcouVvJBKvmnSb3J7VIP8+ebFhUulESsYuLHC2Ee1FgPdezD5V3f6TPq Mt2qRnzMY/AJBJhNhOAVefL3W41mZ6WsUbqnT3xXV8w6YgLcELdTWXZBK2/pD23dlD Kv+hCGrk8TCvhuiHC8hS7bwR7Xr4BEPJKW+puuQPnr68uB0JDU1QIQPgLcaq4Bpl0/ b12eAnYWLS2hKET/WsVlnCmyxhiJ8O6+Kje4KUr+DmzfqIcxyJz8o1bYckm68guQxv Iq/u27aSXmvp7HCbfU8nSmSvJf+fdnSsIES1lZuNfYzPvM5DIUyFAEzPWrUX6YNrkP gcXwLtHtKfWGw== 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 8D314603A4 for ; Fri, 7 Apr 2023 12:20:55 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="ZdHRUf/T"; dkim-atps=neutral Received: by mail-pl1-x631.google.com with SMTP id o11so39685718ple.1 for ; Fri, 07 Apr 2023 03:20:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1680862854; x=1683454854; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=TrGf2cbvMN8H76hn6Qyl+Q2wqNd8RzfyFXvwYtN5kEE=; b=ZdHRUf/TiigLW+ytJJFIDhV+pHSjHwzLrwqnnv7OED/1XxbbdTKDBabcQhOANF+RE/ 6rzgq/lCuAF9p1qqZaKYCftV7T8sT60cIP8V3Iq+viLiMlWjqA+p4Ey37kXUhc9EU9O7 5pDRAjiUDI7k7B0J4A+1W8b10fQu7jxG0+SoY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680862854; x=1683454854; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TrGf2cbvMN8H76hn6Qyl+Q2wqNd8RzfyFXvwYtN5kEE=; b=f6yqvQ3wiDLtObUAwLFbIPPxCPSS8HP3y2VAtMGFM/zt5hHV//gIkv6Zp39/hOxGOb l/8pwDC6Jbc4u0LAjBkjW8WMopIxhZXejphWqPEOEGKI0SPtJis7lWNQydjgJG3Zqtz2 KnNsPuZJdEgLXB3hqa+Vbc0nk4zvtKwCj9qAnVMk+wSYm+LapbCqy4kWygRKUcnLSTAu 8O3JclSzFk7EpWFN9WjGcaW5hqqKlqnjBmN/f/NSrMdq/15D4wvfyGv/8iX32YP68T4K d61vp02qHAxX0dYvFhi5LZIg/Erxa6u/WM+Z/lG9PPHx8Or0r37o5s+Da30STA3JGbLu XcCQ== X-Gm-Message-State: AAQBX9eNQHGxZwGf26xiXtgxNQmKJZqPM3LX7acZzf+3uQOSLeyBP0gA W3XPvSZXfu1uT6HTdO3eglRrO7HhvQ/VvGocxJWNtA== X-Google-Smtp-Source: AKy350axc22Nw/s52FguUeVu6IzO1fwt5B78uTBul5S2aPX74w3xwxMF0LBJ95AWFBA7k5onmp9YWg== X-Received: by 2002:a17:902:ec8a:b0:1a1:ee8c:eef7 with SMTP id x10-20020a170902ec8a00b001a1ee8ceef7mr3002061plg.48.1680862853795; Fri, 07 Apr 2023 03:20:53 -0700 (PDT) Received: from harveyyang.localdomain (1-163-45-206.dynamic-ip.hinet.net. [1.163.45.206]) by smtp.gmail.com with ESMTPSA id l11-20020a17090270cb00b0019a997bca5csm2641409plt.121.2023.04.07.03.20.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 03:20:53 -0700 (PDT) X-Google-Original-From: Harvey Yang To: libcamera-devel@lists.libcamera.org Date: Fri, 7 Apr 2023 18:20:48 +0800 Message-Id: <20230407102050.17537-1-harveyycyang@gmail.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v5 0/2] Virtual Pipeline Handler 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: Harvey Yang via libcamera-devel From: Cheng-Hao Yang Reply-To: Harvey Yang Cc: Harvey Yang Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi all, Based on the patches of HeapAllocator, Virtual Pipeline Handler can now generate blank (green) frames. Following Kieran's suggestion, I squashed the commits of the pipeline handler implementation into one. Please take another look if it makes sense. We still have quite some work to do to customize the camera config and the fake data (i.e. images or videos). BR, Harvey Harvey Yang (2): libcamera: pipeline: Accept a camera having no MediaDevice libcamera: pipeline: Add VirtualPipelineHandler meson.build | 1 + meson_options.txt | 3 +- src/libcamera/pipeline/virtual/meson.build | 5 + src/libcamera/pipeline/virtual/virtual.cpp | 302 +++++++++++++++++++++ src/libcamera/pipeline_handler.cpp | 4 - 5 files changed, 310 insertions(+), 5 deletions(-) create mode 100644 src/libcamera/pipeline/virtual/meson.build create mode 100644 src/libcamera/pipeline/virtual/virtual.cpp