{"id":18086,"url":"https://patchwork.libcamera.org/api/covers/18086/?format=json","web_url":"https://patchwork.libcamera.org/cover/18086/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20230105043726.679968-1-chenghaoyang@google.com>","date":"2023-01-05T04:37:17","name":"[libcamera-devel,v3,0/9] Virtual pipeline handler","submitter":{"id":117,"url":"https://patchwork.libcamera.org/api/people/117/?format=json","name":"Cheng-Hao Yang","email":"chenghaoyang@chromium.org"},"mbox":"https://patchwork.libcamera.org/cover/18086/mbox/","series":[{"id":3700,"url":"https://patchwork.libcamera.org/api/series/3700/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3700","date":"2023-01-05T04:37:17","name":"Virtual pipeline handler","version":3,"mbox":"https://patchwork.libcamera.org/series/3700/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/18086/comments/","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 15972C322E\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu,  5 Jan 2023 04:37:58 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 2924F625E2;\n\tThu,  5 Jan 2023 05:37:57 +0100 (CET)","from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com\n\t[IPv6:2607:f8b0:4864:20::1036])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id AE0FC61F06\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu,  5 Jan 2023 05:37:54 +0100 (CET)","by mail-pj1-x1036.google.com with SMTP id\n\tc2-20020a17090a020200b00226c762ed23so861505pjc.5\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 04 Jan 2023 20:37:54 -0800 (PST)","from chenghaoyang-low.c.googlers.com.com\n\t(46.165.189.35.bc.googleusercontent.com. [35.189.165.46])\n\tby smtp.gmail.com with ESMTPSA id\n\tx23-20020a170902b41700b00188c5f0f9e9sm25015200plr.199.2023.01.04.20.37.51\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 04 Jan 2023 20:37:52 -0800 (PST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1672893477;\n\tbh=eOsGIBGA5yWBV/rQo6j3HNMQ6vngqeh5zkWczmiKopo=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:Cc:From;\n\tb=CvdIX08lzhWWY62Fnvr2jGjIX0DFgyoFDdnPfGNH15o4dCG3f2ThXa/gdBjs7iRz9\n\t5W/G0gec/5LefZ4aESVNa1LYbqfvJTWlisyc5JeXb0+7LzyNFCHV5nsHLTXftEioXV\n\twb6VkRqsahAFOk0GhaC0EaQKKSWCGR1Kh87d2fvNuBegRodoWN9dCbaFO++ZJYGENl\n\t75txV+4YLU+Mmnm/igioBgJNGmiOQT2FLQEIb2MzwKMMXky5ZQUh7Fm24WUKCHVbFx\n\tArn4iEPAxvD3r/p3MVHQd8yzbWHMyg/bUpQNpNgOqSWOyZw7ZYzdcWvUm3+QuJNImW\n\tmQwxFhZKhVTpQ==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org;\n\ts=google; \n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:from:to:cc:subject:date:message-id:reply-to;\n\tbh=d+HFpDIj3GJ2jHBx7kTFn5tUrtkiLq1/ccdiiSt6p/M=;\n\tb=SFxCKC9RmeLZwPyM+Yhq57l/PtTyDM0fxyk4eXSpNH0CH94ywv0wrMzvrb739i2y+P\n\t111c2YxXvP8i1uSrnJqHucb8T3naDJYZ37YRnyP8AISgaqqeMJhXFGqYsf02TjD/X4Xz\n\tvGrk1Oh/TbPdjG4Y8PZ1cF7v5+D+RCzN9f7ZU="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=chromium.org\n\theader.i=@chromium.org header.b=\"SFxCKC9R\"; \n\tdkim-atps=neutral","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\n\th=content-transfer-encoding:mime-version:message-id:date:subject:cc\n\t:to:from:x-gm-message-state:from:to:cc:subject:date:message-id\n\t:reply-to;\n\tbh=d+HFpDIj3GJ2jHBx7kTFn5tUrtkiLq1/ccdiiSt6p/M=;\n\tb=Kho32Jqc568hx0tkA176VWJzf7jq7F7TtMN0aLQWGeglWa4/FzXkjcB04FPtAuPOPw\n\tkFNCStqj2awVo8/z93UZl91ltVpBF+U7SEz9A8ktlZFtgvLiVBUzMHXSgzDqefqpsXPO\n\tVP/lhNHboXG7EDAb01Q+XzS8ie2Ja39TBCSusLBgx+xDWr2HiaelMcJnxsu48WHyh9Io\n\tU1DMh08Di454NehZM+pX6PTAovqXG6L08gOir1Afnr6uw2BxpjpkePZJ5Eg/TmltcwPY\n\tiEusnunKrXMDuuHsSHXnoOhI515nYBwuaFzDF8N52EMMAJEC1IfamrTDLFEwxn6DqR+Z\n\tN0og==","X-Gm-Message-State":"AFqh2kpDFUtEi45SH4wVMjyVybUaGEHmgZNLHdwiB06wJLQVttgv48vW\n\teJ06MKzqfGY7p4fZB1uU9L0Lrrx4+ujm47OQ","X-Google-Smtp-Source":"AMrXdXvj56b331r2YKzfp7TjkJ5xVnHTK/qkmwncCEXn0s0xAGQl6moqz0Y10sqrUCQZWki9wBWNqg==","X-Received":"by 2002:a05:6a20:438d:b0:b2:18da:1515 with SMTP id\n\ti13-20020a056a20438d00b000b218da1515mr65169763pzl.20.1672893472827; \n\tWed, 04 Jan 2023 20:37:52 -0800 (PST)","X-Google-Original-From":"Harvey Yang <chenghaoyang@google.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Thu,  5 Jan 2023 04:37:17 +0000","Message-Id":"<20230105043726.679968-1-chenghaoyang@google.com>","X-Mailer":"git-send-email 2.39.0.314.g84b9a713c41-goog","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v3 0/9] Virtual pipeline handler","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","From":"Harvey Yang via libcamera-devel <libcamera-devel@lists.libcamera.org>","Reply-To":"Harvey Yang <chenghaoyang@chromium.org>","Cc":"Harvey Yang <chenghaoyang@google.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Hi all,\n\nThis is the third version of POC patches of the virtual/fake pipeline\nhandler. Thanks to Kieran's comments, I split the patches and added a\nbase class MediaDeviceBase. Still need to work on the buffer allocation,\nvirtual config file, and virtual video for testing.\n\nPlease take a look and let me know if the design makes sense.\n\nBR,\nHarvey\n\nHarvey Yang (9):\n  libcamera: pipeline: Introduce skeleton Virtual Pipeline\n  libcamera: Add MediaDeviceBase\n  libcamera: Use MediaDeviceBase in base classes\n  libcamera: Add MediaDeviceVirtual\n  libcamera: pipeline: virtual: Add MediaDeviceVirtual\n  libcamera: pipeline: virtual: Create a Camera\n  libcamera: pipeline: virtual: Generate and validate\n    StreamConfigurations\n  libcamera: pipeline: virtual: Queue requests\n  libcamera: pipeline: virtual: Set camera properties & controls\n\n .../libcamera/internal/device_enumerator.h    |  12 +-\n .../internal/device_enumerator_sysfs.h        |   4 +-\n .../internal/device_enumerator_udev.h         |   8 +-\n include/libcamera/internal/media_device.h     |  35 +-\n .../libcamera/internal/media_device_base.h    |  68 ++++\n .../libcamera/internal/media_device_virtual.h |  21 ++\n include/libcamera/internal/meson.build        |   2 +\n include/libcamera/internal/pipeline_handler.h |  12 +-\n meson_options.txt                             |   2 +-\n src/libcamera/device_enumerator.cpp           |  30 +-\n src/libcamera/device_enumerator_sysfs.cpp     |   4 +-\n src/libcamera/device_enumerator_udev.cpp      |   4 +-\n src/libcamera/media_device.cpp                |  97 +-----\n src/libcamera/media_device_base.cpp           | 140 ++++++++\n src/libcamera/media_device_virtual.cpp        |  22 ++\n src/libcamera/meson.build                     |   2 +\n src/libcamera/pipeline/imx8-isi/imx8-isi.cpp  |   2 +-\n src/libcamera/pipeline/ipu3/ipu3.cpp          |   4 +-\n .../pipeline/raspberrypi/raspberrypi.cpp      |   4 +-\n src/libcamera/pipeline/rkisp1/rkisp1.cpp      |   2 +-\n src/libcamera/pipeline/simple/simple.cpp      |   4 +-\n src/libcamera/pipeline/uvcvideo/uvcvideo.cpp  |   2 +-\n src/libcamera/pipeline/vimc/vimc.cpp          |   2 +-\n src/libcamera/pipeline/virtual/meson.build    |   5 +\n src/libcamera/pipeline/virtual/virtual.cpp    | 301 ++++++++++++++++++\n src/libcamera/pipeline_handler.cpp            |  18 +-\n 26 files changed, 629 insertions(+), 178 deletions(-)\n create mode 100644 include/libcamera/internal/media_device_base.h\n create mode 100644 include/libcamera/internal/media_device_virtual.h\n create mode 100644 src/libcamera/media_device_base.cpp\n create mode 100644 src/libcamera/media_device_virtual.cpp\n create mode 100644 src/libcamera/pipeline/virtual/meson.build\n create mode 100644 src/libcamera/pipeline/virtual/virtual.cpp"}