From patchwork Tue Oct 13 19:43:43 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Robert Mader X-Patchwork-Id: 28444 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 47930C32F4 for ; Tue, 13 Oct 2026 19:44:03 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 297C268D8E; Tue, 13 Oct 2026 21:44:02 +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="f8QuCuEH"; dkim-atps=neutral Received: from sender6-op-o11.zoho.com (sender6-op-o11.zoho.com [165.173.180.11]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 10FE96849B for ; Tue, 13 Oct 2026 21:43:59 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; t=1791920636; cv=none; d=zohomail.com; s=zohoarc; b=ZIuvoPNqgRdHh1lEdQLBaLN+NAJC4KPtFGURjeXvOSoCoHUS8qJbISQVgyHQWzPH94YHbpUYoFVwLALQpu5Jml0+wD15ScgkGr289tbAnVNuP1RB9lLuPgf2+W7a9EMnS/BJh9uvjZCFpa5haOUQsPyoIDA/22jV5bKoVuX1bFQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791920636; 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=/woRHI4TevW8wkb1tsyL47I0HzMTnczVJoiaUFZk1xw=; b=GQqMxQbPHRH8AbqJENVz4nYxkJyfYJjrS3LNxKw2mLvaPXxSfucenPUbli2mCXEUYiwYl5ru8T6qx1iAMvqQBbekeo8c13udrtcm3yAnevIWcWWz1cMFmRA8ybB1Pgi4sSxcpN2hQi6uKjMZ9HXkfyA9QZlggxoASxFXEYEyNb8= 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=1791920636; 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=/woRHI4TevW8wkb1tsyL47I0HzMTnczVJoiaUFZk1xw=; b=f8QuCuEH1mN+/ZmNO+4bIF4VeGVnp8UPIc0/pGKqOiNn1sewP56Toi7lDQUvwZLL /5eqJpMhGPq7VUpiWw/NKCWnuhUucaSNyGp4IhJfPd7s1sDgIS8fjVg3PasgMYtuaP7 ySnYPvu4a+1IaRFCfjzyczn16ChJ/Lshv6SWbEaQ= Received: by smtp.zohomail.com with SMTPS id 1791920634926863.933073642707; Tue, 13 Oct 2026 12:43:54 -0700 (PDT) From: Robert Mader To: libcamera-devel@lists.libcamera.org Cc: Robert Mader Subject: [PATCH v3 0/2] virtual: Support more common pixel formats Date: Tue, 13 Oct 2026 21:43:43 +0200 Message-ID: <20261013194345.98661-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 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(-)