From patchwork Fri Oct 9 19:40:03 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Robert Mader X-Patchwork-Id: 28429 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 BC29ABDCB2 for ; Fri, 9 Oct 2026 19:40:22 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id BEDBC68A1C; Fri, 9 Oct 2026 21:40:21 +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="iqDA7e3Y"; dkim-atps=neutral Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C6018689CD for ; Fri, 9 Oct 2026 21:40:19 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; t=1791574816; cv=none; d=zohomail.com; s=zohoarc; b=a9wIMQ2bH84Jl92V04tI6xPwcrYlIPH/ipjVxB/iAsiMISmkDoHOKG7AFddx+7p5bmUZ9jZW2DYgQSPuJYXU7i0ficKCfjBPlrgWI9Hk6aWgKs/H/aRQZJIJr0w2+wqYsIpwhiR2ScpNk0RhRHXY8Qu4AgwBc3Ipm/g6BC1mMVk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791574816; 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=+mKmmyXwI0AqVNeTL2dqNb5fqVWdN2wtoXuOSc8vzwQ=; b=d09wLb90I3QuKxO6cy8ZepnugHmg1hClPt3yryVHkJlaHm0fjcFCfhQ584ogHGa455yH969L4VoQWJGKjkUghOHCul6ZygixV3ml5SG3VWXQLRauZk4t1Raq/JzCGQMOZXy1omjKSNjAp90il2ny4ngsGP1AcrctuMVpphuxAz8= 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=1791574816; 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=+mKmmyXwI0AqVNeTL2dqNb5fqVWdN2wtoXuOSc8vzwQ=; b=iqDA7e3Yxf9ox9f0TbNvXIADd4J5wHyhxt6foAY5hAug6uty70AVPh5ojX5o5txl NQhWjzJn6MaVGh1glp7F2VciOt18n1xZ3bZTC6mHiMuuCY29/xLlrqSzDMQGR0zweXo jeBlvcbu26oXqdLt8Xc8k62axEprwNEu2Cehpfjo= Received: by smtp.zohomail.com with SMTPS id 1791574815543794.2495272178643; Fri, 9 Oct 2026 12:40:15 -0700 (PDT) From: Robert Mader To: libcamera-devel@lists.libcamera.org Cc: Robert Mader Subject: [PATCH v2 0/4] virtual: Support more common pixel formats Date: Fri, 9 Oct 2026 21:40:03 +0200 Message-ID: <20261009194007.23175-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 v2: - Applied tag - Applied various suggestions by Barnabás Robert Mader (4): virtual: Fill alpha channels virtual: Support more common pixel formats virtual: Validate stride and frameSize virtual: Align strides to 256 bytes .../pipeline/virtual/frame_generator.h | 4 +- .../virtual/image_frame_generator.cpp | 66 +++++++++++++++---- .../pipeline/virtual/image_frame_generator.h | 2 +- .../virtual/test_pattern_generator.cpp | 56 +++++++++++++--- .../pipeline/virtual/test_pattern_generator.h | 2 +- src/libcamera/pipeline/virtual/virtual.cpp | 59 +++++++++++++---- 6 files changed, 152 insertions(+), 37 deletions(-)