From patchwork Mon Aug 5 13:48:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cheng-Hao Yang X-Patchwork-Id: 20777 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 29875BE173 for ; Mon, 5 Aug 2024 13:51:08 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A9D0963387; Mon, 5 Aug 2024 15:51:07 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="LtrEYQCB"; dkim-atps=neutral Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8208E63369 for ; Mon, 5 Aug 2024 15:51:06 +0200 (CEST) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-428e1915e18so29075115e9.1 for ; Mon, 05 Aug 2024 06:51:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1722865866; x=1723470666; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=MUrhn9o2hJJKShYB5mYpAS4wWdMgpiwOYj9RYgFvt+8=; b=LtrEYQCBTMWtOQlBqHTwKRFIwxJUcVLROv/om1ymJQl+/6HFfs2+6+ms727xt0qDlH WnzQfywl2mpRigWYDRPBw0lwgW63M7cYruZ/9xQw7Y6JyL0boYpNTnEcBc4oukYtm7we M5u4VWxuO98dPEZmU4J1ffr6wFfXWnXx8n5cw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722865866; x=1723470666; 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=MUrhn9o2hJJKShYB5mYpAS4wWdMgpiwOYj9RYgFvt+8=; b=VwxcgW1kTEYCleKJi24anflKDJtv2XE10GFmszOEHtvlOEZ5wDWBZYPxfEzpnujMe4 ZAMN1cX00lx0yT7bvdF8ro904QBDuU3nQ+wOvOtmku4QGpcsVhZBxbr5UPkrWJuG6ae3 YtVYRyx2XJHitZ8XzeAWVulb1E2KnB7V4uqRPqbEAdh+C15GE6Y8wYKvv2JWWOF5gHBY vNnIRPzVcBUb3CdrCgUTJwmcONt+aavJvlQij6t43CGEPQGl/E+1Aas0BtM+dwee7Ft1 PIRRXQhKxu/VhoTnhlN+G2bpC6bQ8btvNkVjUUALv+fHBV6p6F2gwaUF7JJAXg2iO1T6 jQ2A== X-Gm-Message-State: AOJu0Ywhqe55fpylbAwFIE5PkG0ei0V5MpdbeYIb4O4az4bSLlvyQeWk irPNdupJctmKpwAHWyZNrwrGQl6M/rgc/IKgFsOJZn2joM77y+ePRkFgeNaZik7krLF7op+AWmL g2TxNW78= X-Google-Smtp-Source: AGHT+IGB8fcDqtxknAysxcu5a9ponDOICxp96W74eDD5IhH89b4/ExBG08F8jND8Jd+YF6FGewZ55w== X-Received: by 2002:a05:600c:35c2:b0:427:9dad:17df with SMTP id 5b1f17b1804b1-428e6b07b0dmr74265455e9.12.1722865865617; Mon, 05 Aug 2024 06:51:05 -0700 (PDT) Received: from chenghaoyang-germany.c.googlers.com.com (49.222.77.34.bc.googleusercontent.com. [34.77.222.49]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-428e8d6555fsm137146675e9.26.2024.08.05.06.51.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 06:51:05 -0700 (PDT) From: Harvey Yang X-Google-Original-From: Harvey Yang To: libcamera-devel@lists.libcamera.org Cc: Harvey Yang Subject: [PATCH v8 0/8] Add VirtualPipelineHandler Date: Mon, 5 Aug 2024 13:48:31 +0000 Message-ID: <20240805135104.139932-1-chenghaoyang@google.com> X-Mailer: git-send-email 2.46.0.rc2.264.g509ed76dc8-goog MIME-Version: 1.0 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" Hi folks, I've updated DmaBufAllocator::exportBuffers with arguments that can be reused in SoftwareIsp::exportBuffers. A patch that refactor SoftwareIsp is also added in the end. Thanks! BR, Harvey Harvey Yang (4): libcamera: add DmaBufAllocator::exportBuffers() libcamera: Remove PipelineHandler Fatal check of non-empty MediaDevices libcamera: pipeline: Add VirtualPipelineHandler libcamera: software_isp: Refactor SoftwareIsp to use DmaBufAllocator::exportBuffers Konami Shu (4): libcamera: pipeline: Add test pattern for VirtualPipelineHandler libcamera: pipeline: Read config and register cameras based on the config libcamera: pipeline: Shift test pattern by 1 pixel left every frame libcamera: pipeline: Load images .../libcamera/internal/dma_buf_allocator.h | 12 + meson.build | 1 + meson_options.txt | 3 +- src/libcamera/dma_buf_allocator.cpp | 55 ++++ src/libcamera/pipeline/virtual/README.md | 76 +++++ .../pipeline/virtual/common_functions.cpp | 27 ++ .../pipeline/virtual/common_functions.h | 18 ++ .../pipeline/virtual/data/virtual.yaml | 49 +++ .../pipeline/virtual/frame_generator.h | 33 ++ .../virtual/image_frame_generator.cpp | 154 ++++++++++ .../pipeline/virtual/image_frame_generator.h | 65 ++++ src/libcamera/pipeline/virtual/meson.build | 32 ++ src/libcamera/pipeline/virtual/parser.cpp | 243 +++++++++++++++ src/libcamera/pipeline/virtual/parser.h | 48 +++ .../virtual/test_pattern_generator.cpp | 148 +++++++++ .../pipeline/virtual/test_pattern_generator.h | 58 ++++ src/libcamera/pipeline/virtual/virtual.cpp | 287 ++++++++++++++++++ src/libcamera/pipeline/virtual/virtual.h | 96 ++++++ src/libcamera/pipeline_handler.cpp | 11 +- src/libcamera/software_isp/software_isp.cpp | 18 +- 20 files changed, 1413 insertions(+), 21 deletions(-) create mode 100644 src/libcamera/pipeline/virtual/README.md create mode 100644 src/libcamera/pipeline/virtual/common_functions.cpp create mode 100644 src/libcamera/pipeline/virtual/common_functions.h create mode 100644 src/libcamera/pipeline/virtual/data/virtual.yaml create mode 100644 src/libcamera/pipeline/virtual/frame_generator.h create mode 100644 src/libcamera/pipeline/virtual/image_frame_generator.cpp create mode 100644 src/libcamera/pipeline/virtual/image_frame_generator.h create mode 100644 src/libcamera/pipeline/virtual/meson.build create mode 100644 src/libcamera/pipeline/virtual/parser.cpp create mode 100644 src/libcamera/pipeline/virtual/parser.h create mode 100644 src/libcamera/pipeline/virtual/test_pattern_generator.cpp create mode 100644 src/libcamera/pipeline/virtual/test_pattern_generator.h create mode 100644 src/libcamera/pipeline/virtual/virtual.cpp create mode 100644 src/libcamera/pipeline/virtual/virtual.h