From patchwork Thu Oct 15 13:09:27 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Robert Mader X-Patchwork-Id: 28456 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 81DB6BDCB6 for ; Thu, 15 Oct 2026 13:09:43 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4E7B468E08; Thu, 15 Oct 2026 15:09:42 +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="Bc2nYtpB"; 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 B528868A73 for ; Thu, 15 Oct 2026 15:09:40 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; t=1792069775; cv=none; d=zohomail.com; s=zohoarc; b=ebCYx+l5LDrxSnipnlbejq7H/aD3U+0HUqWYJAlYsHSdzUSkWYNFbn4Cj6WQQ4rt0UFixYl6g7KDo2k2xTHLzp/wBPn34ZVL1Ibg/f9opHHJMpvoKMSKk4+3+nliGeQ+fSqBSY9h5pac6hzdJUkn7K6AxPbWSqrC0+VMQclSpYg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792069775; 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=yQ3/gAYnxFdq5RXyhwgkD/wxezBNrXSC4BIFAfZkMIs=; b=lEllxWjvOHAonhjn8FXV2yw5MTqrOaYzRuIi+YvQa6zCJWD1j4qMougq+XcMxP3BHg6lwolww2QVsesBdAQmK7QAJi542zgu384W30fLht4axktAx94oiwNTsgs2Tjiq9hPryPSFvS/lEfB3OmdLreG+tAIdYTl/VoZ4MpkN6qY= 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=1792069775; 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=yQ3/gAYnxFdq5RXyhwgkD/wxezBNrXSC4BIFAfZkMIs=; b=Bc2nYtpBr4hJ8RE2IwHP9IsvrEkuQyHBPmOhw1WgpSJ/mmHJsBRY4Hge74ru9kpN 7Uv6mCo+ljyriloXJUGfynhlk7TbMqRKrFS5UKuNVk42a/LGNaQtDZGtPb88MAKxJiW W3whqXk1UfOt1Upry7UGvmUbSMmG0qbdoyCDoqeM= Received: by smtp.zohomail.com with SMTPS id 1792069773916322.66782280006214; Thu, 15 Oct 2026 06:09:33 -0700 (PDT) From: Robert Mader To: libcamera-devel@lists.libcamera.org Cc: Robert Mader Subject: [PATCH v4 0/2] virtual: Support more common pixel formats Date: Thu, 15 Oct 2026 15:09:27 +0200 Message-ID: <20261015130929.311514-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 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 (2): virtual: Fill alpha channels virtual: Support more common pixel formats .../pipeline/virtual/frame_generator.h | 3 +- .../virtual/image_frame_generator.cpp | 55 ++++++++++++++++--- .../pipeline/virtual/image_frame_generator.h | 2 +- .../virtual/test_pattern_generator.cpp | 50 ++++++++++++++--- .../pipeline/virtual/test_pattern_generator.h | 2 +- src/libcamera/pipeline/virtual/virtual.cpp | 41 ++++++++++---- 6 files changed, 125 insertions(+), 28 deletions(-)