From patchwork Mon Oct 19 22:48:59 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Robert Mader X-Patchwork-Id: 28527 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 54F75C324C for ; Mon, 19 Oct 2026 22:49:18 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 18DD068ED0; Tue, 20 Oct 2026 00:49:17 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=collabora.com header.i=robert.mader@collabora.com header.b="Nzr6VhZ4"; dkim-atps=neutral Received: from sender5-op-o11.zoho.com (sender5-op-o11.zoho.com [165.173.182.11]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 758C968E22 for ; Tue, 20 Oct 2026 00:49:14 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; t=1792450149; cv=none; d=zohomail.com; s=zohoarc; b=gD5uJi7QPjEl//QKO+uVFWffoZ4m+1pXSPWx6hgxY+IyuxyPfe+qyQuWSvN+PSPeim7VJooy6DhG4LtXcq6vF1P9vRLsgBkNGQKF9Yahn+RheEoi9YfIoJ5K1iyeANCo4lBaAgHH418Gyu9QvQXZq1PgryZB3GqsdgYo2+jQaUs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792450149; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=JoSrhw/YQET3suu57cHFx4RGkg9W3lV7Z8hmW7mUvus=; b=bJEt7TdIHWWz1pfSZJLPVxXrCYlEvn1YnGpQsJFteD5DxA+87jExc1qXEfroQj3DhqA2l2qtV24PWkVUZiMhoqAQ9NfGXyfrOcC1O3bqm49XHCLaUsoYh2q00IcqMnFwvg6Am2BXZ+t1bE+GK1vWdYz1htY1Dw+D7J/CY9bAAO4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=robert.mader@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1792450149; s=zohomail; d=collabora.com; i=robert.mader@collabora.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=JoSrhw/YQET3suu57cHFx4RGkg9W3lV7Z8hmW7mUvus=; b=Nzr6VhZ4wgXhKK6rPXB7Grn+texbkA5EXWtda34ih3AykQF4C1Ggh+W0huSky/T4 EjKKv+UIGlOk+hmAHXVHs+NbekM1lAHqBzaJyoGwiGzO8GqLhnFnnEKE3DfDTMd1LLk nE12JIRppo+JeryFYIuUj0xErZXogb+j3UKPgts4= Received: by smtp.zohomail.com with SMTPS id 1792450148560297.8181981429519; Mon, 19 Oct 2026 15:49:08 -0700 (PDT) From: Robert Mader To: libcamera-devel@lists.libcamera.org Cc: Robert Mader Subject: [PATCH v5 0/3] virtual: Support more common pixel formats Date: Tue, 20 Oct 2026 00:48:59 +0200 Message-ID: <20261019224902.177382-1-robert.mader@collabora.com> X-Mailer: git-send-email 2.56.0 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" A small list of patches originally developed for testing the webrtc patch at https://webrtc-review.googlesource.com/c/src/+/491680 I found them so useful that I cleaned them up and would like to see them upstream. --- Changes in v5: - Various style improvements (Laurent) - Split out stride helper patch (Laurent) Changes in v4: - Fixed R<->B swap in ImageFrameGenerator (NV12ToARGB -> NV12ToABGR) - Added tags Changes in v3: - Dropped stride-related patches. The last patch requires further work to figure out how to best deal with https://gitlab.freedesktop.org/camera/libcamera/-/work_items/360 and the other one doesn't make much sense on its own. Thus defer those patches to their own series. - Added tag Changes in v2: - Applied tag - Applied various suggestions by Barnabás Robert Mader (3): virtual: Fill alpha channels virtual: Use stride helper for final buffer copy virtual: Support more common pixel formats .../pipeline/virtual/frame_generator.h | 3 +- .../virtual/image_frame_generator.cpp | 62 ++++++++++++++++--- .../pipeline/virtual/image_frame_generator.h | 2 +- .../virtual/test_pattern_generator.cpp | 55 +++++++++++++--- .../pipeline/virtual/test_pattern_generator.h | 2 +- src/libcamera/pipeline/virtual/virtual.cpp | 45 +++++++++++--- 6 files changed, 141 insertions(+), 28 deletions(-)