Show a patch.

GET /api/patches/20781/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 20781,
    "url": "https://patchwork.libcamera.org/api/patches/20781/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/20781/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20240805135104.139932-5-chenghaoyang@google.com>",
    "date": "2024-08-05T13:48:35",
    "name": "[v8,4/8] libcamera: pipeline: Add test pattern for VirtualPipelineHandler",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "5c913eb23b29b7ac85617df676e753758abbaf20",
    "submitter": {
        "id": 117,
        "url": "https://patchwork.libcamera.org/api/people/117/?format=api",
        "name": "Cheng-Hao Yang",
        "email": "chenghaoyang@chromium.org"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/20781/mbox/",
    "series": [
        {
            "id": 4487,
            "url": "https://patchwork.libcamera.org/api/series/4487/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4487",
            "date": "2024-08-05T13:48:31",
            "name": "Add VirtualPipelineHandler",
            "version": 8,
            "mbox": "https://patchwork.libcamera.org/series/4487/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/20781/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/20781/checks/",
    "tags": {},
    "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 A7EEEBE173\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon,  5 Aug 2024 13:51:19 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id C684B63381;\n\tMon,  5 Aug 2024 15:51:18 +0200 (CEST)",
            "from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com\n\t[IPv6:2a00:1450:4864:20::22a])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id DC52363384\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon,  5 Aug 2024 15:51:08 +0200 (CEST)",
            "by mail-lj1-x22a.google.com with SMTP id\n\t38308e7fff4ca-2ef1c12ae23so117510411fa.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 05 Aug 2024 06:51:08 -0700 (PDT)",
            "from chenghaoyang-germany.c.googlers.com.com\n\t(49.222.77.34.bc.googleusercontent.com. [34.77.222.49])\n\tby smtp.gmail.com with ESMTPSA id\n\t5b1f17b1804b1-428e8d6555fsm137146675e9.26.2024.08.05.06.51.07\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 05 Aug 2024 06:51:07 -0700 (PDT)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=chromium.org header.i=@chromium.org\n\theader.b=\"fN6oqAdE\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=chromium.org; s=google; t=1722865868; x=1723470668;\n\tdarn=lists.libcamera.org; \n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:from:to:cc:subject:date\n\t:message-id:reply-to;\n\tbh=C1NEI6Y0uTSrug/sZh2RvLVS7lS1QIMtdy3YzOmxR9k=;\n\tb=fN6oqAdESxW/vUfzXNt5nZcgvCLZfa/XuRFeWuGxxNtdKIwKtCTSbQmfZ9lVNYr5i/\n\tywm8y/vU5yBomqHw4bsy7fIr+KaksgKMLQV74fOh37p0ozGJuEl6+VjA5eh4KzFLceJC\n\t+4fqPwthq4FBNGx5t+58rNaaoGnjD3Eyz/ww8=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1722865868; x=1723470668;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n\t:subject:date:message-id:reply-to;\n\tbh=C1NEI6Y0uTSrug/sZh2RvLVS7lS1QIMtdy3YzOmxR9k=;\n\tb=QLAsb9bt48Ujh8S1go8sd+/QPUphOyA2z3ML+f4Eh1h9IdftA0gg9cJksb4c3hIL9X\n\tWq7T/asN6VSsFXQ7x1FKSxgDOjnPZEn76NXWEnSWaUvLnHQFOIeM+ZSgsSFr/IFqn15k\n\tyn8XUphIWqFNUR7tE7JfC6RLMSnyZOGgo91fYu63dh6zbUicO3EZrTSTqbzOr/yf8KER\n\truM99JZwFM1BFwfNvbGTIaudgYYO7XCyRowVRDYRISaMyDgEaxH9cid3xeitJdNX/UOs\n\txzjXjbRWBjjHJ7jhCJZ5OTuvcyyyeuE9uITFpSoaMMJE0c8B0whGUMTdYl8E8h+mjQuu\n\tTYew==",
        "X-Gm-Message-State": "AOJu0YzGpsaYK5InDKYWbKDW0kDYGYoamBpjVjdaVd/ZY4KsYiICEZrV\n\tOt+7drzoMzgIwmTTDL9Q/p18fDvCqQyqNjcrSaGOvvjRo0etbo7cfuyuXjjZtbKgERa5eGXUrhq\n\tINyQtRD4=",
        "X-Google-Smtp-Source": "AGHT+IGEv0iJsAvQ7CCkt19oWYWKV+GMPWfDMtClFqJP+0J7PdiKlT4Oj2jGFEkmsc1a4cNZ4Rgr2w==",
        "X-Received": "by 2002:a2e:b1c8:0:b0:2ef:564c:9b6b with SMTP id\n\t38308e7fff4ca-2f15aaa848bmr89674301fa.23.1722865867656; \n\tMon, 05 Aug 2024 06:51:07 -0700 (PDT)",
        "From": "Harvey Yang <chenghaoyang@chromium.org>",
        "X-Google-Original-From": "Harvey Yang <chenghaoyang@google.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "Konami Shu <konamiz@google.com>, Harvey Yang <chenghaoyang@chromium.org>,\n\tYunke Cao <yunkec@chromium.org>, Tomasz Figa <tfiga@chromium.org>",
        "Subject": "[PATCH v8 4/8] libcamera: pipeline: Add test pattern for\n\tVirtualPipelineHandler",
        "Date": "Mon,  5 Aug 2024 13:48:35 +0000",
        "Message-ID": "<20240805135104.139932-5-chenghaoyang@google.com>",
        "X-Mailer": "git-send-email 2.46.0.rc2.264.g509ed76dc8-goog",
        "In-Reply-To": "<20240805135104.139932-1-chenghaoyang@google.com>",
        "References": "<20240805135104.139932-1-chenghaoyang@google.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "From: Konami Shu <konamiz@google.com>\n\n- There are two test patterns: color bars and diagonal lines\n- Add class for generating test patterns\n- Add libyuv to build dependencies\n- Make VirtualPipelineHandler show the test pattern\n- Format the code\n\n- Rename test_pattern to frame_generator\n- reflect comment\n\t- Fix const variable name\n\t- Use #pragma once\n\t- Make configure() private\n\nSigned-off-by: Konami Shu <konamiz@google.com>\nCo-developed-by: Harvey Yang <chenghaoyang@chromium.org>\nCo-developed-by: Yunke Cao <yunkec@chromium.org>\nCo-developed-by: Tomasz Figa <tfiga@chromium.org>\n---\n .../pipeline/virtual/frame_generator.h        |  33 ++++++\n src/libcamera/pipeline/virtual/meson.build    |  22 ++++\n .../virtual/test_pattern_generator.cpp        | 112 ++++++++++++++++++\n .../pipeline/virtual/test_pattern_generator.h |  58 +++++++++\n src/libcamera/pipeline/virtual/virtual.cpp    |  28 ++++-\n src/libcamera/pipeline/virtual/virtual.h      |   8 ++\n 6 files changed, 258 insertions(+), 3 deletions(-)\n create mode 100644 src/libcamera/pipeline/virtual/frame_generator.h\n create mode 100644 src/libcamera/pipeline/virtual/test_pattern_generator.cpp\n create mode 100644 src/libcamera/pipeline/virtual/test_pattern_generator.h",
    "diff": "diff --git a/src/libcamera/pipeline/virtual/frame_generator.h b/src/libcamera/pipeline/virtual/frame_generator.h\nnew file mode 100644\nindex 00000000..9699af7a\n--- /dev/null\n+++ b/src/libcamera/pipeline/virtual/frame_generator.h\n@@ -0,0 +1,33 @@\n+/* SPDX-License-Identifier: LGPL-2.1-or-later */\n+/*\n+ * Copyright (C) 2023, Google Inc.\n+ *\n+ * frame_generator.h - Virtual cameras helper to generate frames\n+ */\n+\n+#pragma once\n+\n+#include <libcamera/framebuffer.h>\n+#include <libcamera/geometry.h>\n+\n+namespace libcamera {\n+\n+class FrameGenerator\n+{\n+public:\n+\tvirtual ~FrameGenerator() = default;\n+\n+\t/* Create buffers for using them in `generateFrame` */\n+\tvirtual void configure(const Size &size) = 0;\n+\n+\t/** Fill the output frame buffer.\n+\t * Use the frame at the frameCount of image frames\n+\t */\n+\tvirtual void generateFrame(const Size &size,\n+\t\t\t\t   const FrameBuffer *buffer) = 0;\n+\n+protected:\n+\tFrameGenerator() {}\n+};\n+\n+} /* namespace libcamera */\ndiff --git a/src/libcamera/pipeline/virtual/meson.build b/src/libcamera/pipeline/virtual/meson.build\nindex ba7ff754..e1e65e68 100644\n--- a/src/libcamera/pipeline/virtual/meson.build\n+++ b/src/libcamera/pipeline/virtual/meson.build\n@@ -2,4 +2,26 @@\n \n libcamera_sources += files([\n     'virtual.cpp',\n+    'test_pattern_generator.cpp',\n ])\n+\n+libyuv_dep = dependency('libyuv', required : false)\n+\n+# Fallback to a subproject if libyuv isn't found, as it's typically not\n+# provided by distributions.\n+if not libyuv_dep.found()\n+    cmake = import('cmake')\n+\n+    libyuv_vars = cmake.subproject_options()\n+    libyuv_vars.add_cmake_defines({'CMAKE_POSITION_INDEPENDENT_CODE': 'ON'})\n+    libyuv_vars.set_override_option('cpp_std', 'c++17')\n+    libyuv_vars.append_compile_args('cpp',\n+         '-Wno-sign-compare',\n+         '-Wno-unused-variable',\n+         '-Wno-unused-parameter')\n+    libyuv_vars.append_link_args('-ljpeg')\n+    libyuv = cmake.subproject('libyuv', options : libyuv_vars)\n+    libyuv_dep = libyuv.dependency('yuv')\n+endif\n+\n+libcamera_deps += [libyuv_dep]\ndiff --git a/src/libcamera/pipeline/virtual/test_pattern_generator.cpp b/src/libcamera/pipeline/virtual/test_pattern_generator.cpp\nnew file mode 100644\nindex 00000000..8dfe626e\n--- /dev/null\n+++ b/src/libcamera/pipeline/virtual/test_pattern_generator.cpp\n@@ -0,0 +1,112 @@\n+/* SPDX-License-Identifier: LGPL-2.1-or-later */\n+/*\n+ * Copyright (C) 2023, Google Inc.\n+ *\n+ * test_pattern_generator.cpp - Derived class of FrameGenerator for\n+ * generating test patterns\n+ */\n+\n+#include \"test_pattern_generator.h\"\n+\n+#include <libcamera/base/log.h>\n+\n+#include \"libcamera/internal/mapped_framebuffer.h\"\n+\n+#include \"libyuv/convert_from_argb.h\"\n+namespace libcamera {\n+\n+LOG_DECLARE_CATEGORY(Virtual)\n+\n+static const unsigned int kARGBSize = 4;\n+\n+void TestPatternGenerator::generateFrame(\n+\tconst Size &size,\n+\tconst FrameBuffer *buffer)\n+{\n+\tMappedFrameBuffer mappedFrameBuffer(buffer,\n+\t\t\t\t\t    MappedFrameBuffer::MapFlag::Write);\n+\n+\tauto planes = mappedFrameBuffer.planes();\n+\n+\t/* Convert the template_ to the frame buffer */\n+\tint ret = libyuv::ARGBToNV12(\n+\t\ttemplate_.get(), /*src_stride_argb=*/size.width * kARGBSize,\n+\t\tplanes[0].begin(), size.width,\n+\t\tplanes[1].begin(), size.width,\n+\t\tsize.width, size.height);\n+\tif (ret != 0) {\n+\t\tLOG(Virtual, Error) << \"ARGBToNV12() failed with \" << ret;\n+\t}\n+}\n+\n+std::unique_ptr<ColorBarsGenerator> ColorBarsGenerator::create()\n+{\n+\treturn std::make_unique<ColorBarsGenerator>();\n+}\n+\n+void ColorBarsGenerator::configure(const Size &size)\n+{\n+\tconstexpr uint8_t kColorBar[8][3] = {\n+\t\t//  R,    G,    B\n+\t\t{ 0xff, 0xff, 0xff }, // White\n+\t\t{ 0xff, 0xff, 0x00 }, // Yellow\n+\t\t{ 0x00, 0xff, 0xff }, // Cyan\n+\t\t{ 0x00, 0xff, 0x00 }, // Green\n+\t\t{ 0xff, 0x00, 0xff }, // Magenta\n+\t\t{ 0xff, 0x00, 0x00 }, // Red\n+\t\t{ 0x00, 0x00, 0xff }, // Blue\n+\t\t{ 0x00, 0x00, 0x00 }, // Black\n+\t};\n+\n+\ttemplate_ = std::make_unique<uint8_t[]>(\n+\t\tsize.width * size.height * kARGBSize);\n+\n+\tunsigned int colorBarWidth = size.width / std::size(kColorBar);\n+\n+\tuint8_t *buf = template_.get();\n+\tfor (size_t h = 0; h < size.height; h++) {\n+\t\tfor (size_t w = 0; w < size.width; w++) {\n+\t\t\t// repeat when the width is exceed\n+\t\t\tint index = (w / colorBarWidth) % std::size(kColorBar);\n+\n+\t\t\t*buf++ = kColorBar[index][2]; // B\n+\t\t\t*buf++ = kColorBar[index][1]; // G\n+\t\t\t*buf++ = kColorBar[index][0]; // R\n+\t\t\t*buf++ = 0x00; // A\n+\t\t}\n+\t}\n+}\n+\n+std::unique_ptr<DiagonalLinesGenerator> DiagonalLinesGenerator::create()\n+{\n+\treturn std::make_unique<DiagonalLinesGenerator>();\n+}\n+\n+void DiagonalLinesGenerator::configure(const Size &size)\n+{\n+\tconstexpr uint8_t kColorBar[8][3] = {\n+\t\t//  R,    G,    B\n+\t\t{ 0xff, 0xff, 0xff }, // White\n+\t\t{ 0x00, 0x00, 0x00 }, // Black\n+\t};\n+\n+\ttemplate_ = std::make_unique<uint8_t[]>(\n+\t\tsize.width * size.height * kARGBSize);\n+\n+\tunsigned int lineWidth = size.width / 10;\n+\n+\tuint8_t *buf = template_.get();\n+\tfor (size_t h = 0; h < size.height; h++) {\n+\t\tfor (size_t w = 0; w < size.width; w++) {\n+\t\t\t// repeat when the width is exceed\n+\t\t\tint index = ((w + h) / lineWidth) % 2;\n+\n+\t\t\t*buf++ = kColorBar[index][2]; // B\n+\t\t\t*buf++ = kColorBar[index][1]; // G\n+\t\t\t*buf++ = kColorBar[index][0]; // R\n+\t\t\t*buf++ = 0x00; // A\n+\t\t}\n+\t}\n+}\n+\n+} /* namespace libcamera */\ndiff --git a/src/libcamera/pipeline/virtual/test_pattern_generator.h b/src/libcamera/pipeline/virtual/test_pattern_generator.h\nnew file mode 100644\nindex 00000000..ed8d4e43\n--- /dev/null\n+++ b/src/libcamera/pipeline/virtual/test_pattern_generator.h\n@@ -0,0 +1,58 @@\n+/* SPDX-License-Identifier: LGPL-2.1-or-later */\n+/*\n+ * Copyright (C) 2023, Google Inc.\n+ *\n+ * test_pattern_generator.h - Derived class of FrameGenerator for\n+ * generating test patterns\n+ */\n+\n+#pragma once\n+\n+#include <memory>\n+\n+#include <libcamera/framebuffer.h>\n+#include <libcamera/geometry.h>\n+\n+#include \"frame_generator.h\"\n+\n+namespace libcamera {\n+\n+enum class TestPattern : char {\n+\tColorBars = 0,\n+\tDiagonalLines = 1,\n+};\n+\n+class TestPatternGenerator : public FrameGenerator\n+{\n+private:\n+\tvoid generateFrame(const Size &size,\n+\t\t\t   const FrameBuffer *buffer) override;\n+\n+protected:\n+\t/* Shift the buffer by 1 pixel left each frame */\n+\tvoid shiftLeft(const Size &size);\n+\t/* Buffer of test pattern template */\n+\tstd::unique_ptr<uint8_t[]> template_;\n+};\n+\n+class ColorBarsGenerator : public TestPatternGenerator\n+{\n+public:\n+\tstatic std::unique_ptr<ColorBarsGenerator> create();\n+\n+private:\n+\t/* Generate a template buffer of the color bar test pattern. */\n+\tvoid configure(const Size &size) override;\n+};\n+\n+class DiagonalLinesGenerator : public TestPatternGenerator\n+{\n+public:\n+\tstatic std::unique_ptr<DiagonalLinesGenerator> create();\n+\n+private:\n+\t/* Generate a template buffer of the diagonal lines test pattern. */\n+\tvoid configure(const Size &size) override;\n+};\n+\n+} /* namespace libcamera */\ndiff --git a/src/libcamera/pipeline/virtual/virtual.cpp b/src/libcamera/pipeline/virtual/virtual.cpp\nindex 74eb8c7a..357fdd03 100644\n--- a/src/libcamera/pipeline/virtual/virtual.cpp\n+++ b/src/libcamera/pipeline/virtual/virtual.cpp\n@@ -192,10 +192,14 @@ int PipelineHandlerVirtual::exportFrameBuffers(\n \treturn dmaBufAllocator_.exportBuffers(config.bufferCount, planeSizes, buffers);\n }\n \n-int PipelineHandlerVirtual::start([[maybe_unused]] Camera *camera,\n+int PipelineHandlerVirtual::start(Camera *camera,\n \t\t\t\t  [[maybe_unused]] const ControlList *controls)\n {\n \t/* \\todo Start reading the virtual video if any. */\n+\tVirtualCameraData *data = cameraData(camera);\n+\n+\tdata->frameGenerator_->configure(data->stream_.configuration().size);\n+\n \treturn 0;\n }\n \n@@ -207,9 +211,14 @@ void PipelineHandlerVirtual::stopDevice([[maybe_unused]] Camera *camera)\n int PipelineHandlerVirtual::queueRequestDevice([[maybe_unused]] Camera *camera,\n \t\t\t\t\t       Request *request)\n {\n+\tVirtualCameraData *data = cameraData(camera);\n+\n \t/* \\todo Read from the virtual video if any. */\n-\tfor (auto it : request->buffers())\n-\t\tcompleteBuffer(request, it.second);\n+\tfor (auto const &[stream, buffer] : request->buffers()) {\n+\t\t/* map buffer and fill test patterns */\n+\t\tdata->frameGenerator_->generateFrame(stream->configuration().size, buffer);\n+\t\tcompleteBuffer(request, buffer);\n+\t}\n \n \trequest->metadata().set(controls::SensorTimestamp, currentTimestamp());\n \tcompleteRequest(request);\n@@ -241,11 +250,24 @@ bool PipelineHandlerVirtual::match([[maybe_unused]] DeviceEnumerator *enumerator\n \tstd::set<Stream *> streams{ &data->stream_ };\n \tconst std::string id = \"Virtual0\";\n \tstd::shared_ptr<Camera> camera = Camera::create(std::move(data), id, streams);\n+\n+\tinitFrameGenerator(camera.get());\n+\n \tregisterCamera(std::move(camera));\n \n \treturn false; // Prevent infinite loops for now\n }\n \n+void PipelineHandlerVirtual::initFrameGenerator(Camera *camera)\n+{\n+\tauto data = cameraData(camera);\n+\tif (data->testPattern_ == TestPattern::DiagonalLines) {\n+\t\tdata->frameGenerator_ = DiagonalLinesGenerator::create();\n+\t} else {\n+\t\tdata->frameGenerator_ = ColorBarsGenerator::create();\n+\t}\n+}\n+\n REGISTER_PIPELINE_HANDLER(PipelineHandlerVirtual, \"virtual\")\n \n } /* namespace libcamera */\ndiff --git a/src/libcamera/pipeline/virtual/virtual.h b/src/libcamera/pipeline/virtual/virtual.h\nindex 6fc6b34d..fecd9fa6 100644\n--- a/src/libcamera/pipeline/virtual/virtual.h\n+++ b/src/libcamera/pipeline/virtual/virtual.h\n@@ -13,6 +13,8 @@\n #include \"libcamera/internal/dma_buf_allocator.h\"\n #include \"libcamera/internal/pipeline_handler.h\"\n \n+#include \"test_pattern_generator.h\"\n+\n namespace libcamera {\n \n class VirtualCameraData : public Camera::Private\n@@ -29,9 +31,13 @@ public:\n \n \t~VirtualCameraData() = default;\n \n+\tTestPattern testPattern_;\n+\n \tstd::vector<Resolution> supportedResolutions_;\n \n \tStream stream_;\n+\n+\tstd::unique_ptr<FrameGenerator> frameGenerator_;\n };\n \n class VirtualCameraConfiguration : public CameraConfiguration\n@@ -72,6 +78,8 @@ private:\n \t\treturn static_cast<VirtualCameraData *>(camera->_d());\n \t}\n \n+\tvoid initFrameGenerator(Camera *camera);\n+\n \tDmaBufAllocator dmaBufAllocator_;\n };\n \n",
    "prefixes": [
        "v8",
        "4/8"
    ]
}