From patchwork Mon Oct 19 22:49:00 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Robert Mader X-Patchwork-Id: 28529 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 99DF8C324C for ; Mon, 19 Oct 2026 22:49:23 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id BD0A368ED2; Tue, 20 Oct 2026 00:49: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="IU/KGB5Z"; 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 D04F868EC2 for ; Tue, 20 Oct 2026 00:49:17 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; t=1792450153; cv=none; d=zohomail.com; s=zohoarc; b=Th6SlSpzrO9tvpisnvq81725wYRYdNP/e8WorCspMxUWZ2AT2j0nNqH68GxGP92saWbWvUHUtHNZXw+KQRbmkNbej8JGhvDRTsKyx8W/dU+xzo5a9vx5tzoS56PZRyWh/WR0r8c9CkYDsL5/nap9ge3dt8M1hsDRzoErBy8BIaE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792450153; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=p5aBHnWhIrxAqLCqTaLoTV+0K7UUUS5SE1+YJ2l87KQ=; b=PP9q44UatfL7A73RrLkY5XXV/CNlt+jwouq+Sj4ll4eaIA8RAtxZeQkBrQXmEpLRdKFjp+MqRDZDLJ487QH3BFftAIJwomjz2u6ZMRR+gLOcpXJyydNqS1krkP4UZs9DNHSfirWbkIkTojAQVdELCEQSmJmSzwOWgWCE8/qjwVc= 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=1792450153; s=zohomail; d=collabora.com; i=robert.mader@collabora.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=p5aBHnWhIrxAqLCqTaLoTV+0K7UUUS5SE1+YJ2l87KQ=; b=IU/KGB5ZXgcwvs6VVoqMkAjHTareXpEwMYv6X2NKjlsXa+iHda7IoJUqYN0qlHkn VeUBEnf5gSu/fiMlHzG9clN7PHRDpzxjqZtmdETPIGE0gyCT/GxOcxHTfr5mpvP9GyP lr0fb/CUGORXhpdQpiW8UmKH75QqyjUb0HH+fZTI= Received: by smtp.zohomail.com with SMTPS id 179245015115929.514820147340856; Mon, 19 Oct 2026 15:49:11 -0700 (PDT) From: Robert Mader To: libcamera-devel@lists.libcamera.org Cc: Robert Mader , =?utf-8?q?Barnab=C3=A1s_P?= =?utf-8?b?xZFjemU=?= , Kieran Bingham , Laurent Pinchart Subject: [PATCH v5 1/3] virtual: Fill alpha channels Date: Tue, 20 Oct 2026 00:49:00 +0200 Message-ID: <20261019224902.177382-2-robert.mader@collabora.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261019224902.177382-1-robert.mader@collabora.com> References: <20261019224902.177382-1-robert.mader@collabora.com> 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" While libyuv::ARGBToNV12() seems to ignore the alpha values, let's set them to fully opaque to avoid potential glitches going forward. Signed-off-by: Robert Mader Reviewed-by: Barnabás Pőcze Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- src/libcamera/pipeline/virtual/test_pattern_generator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcamera/pipeline/virtual/test_pattern_generator.cpp b/src/libcamera/pipeline/virtual/test_pattern_generator.cpp index 1be3847d63a4..7b53e8b32327 100644 --- a/src/libcamera/pipeline/virtual/test_pattern_generator.cpp +++ b/src/libcamera/pipeline/virtual/test_pattern_generator.cpp @@ -100,7 +100,7 @@ void ColorBarsGenerator::configure(const Size &size) *buf++ = kColorBar[index][2]; /* B */ *buf++ = kColorBar[index][1]; /* G */ *buf++ = kColorBar[index][0]; /* R */ - *buf++ = 0x00; /* A */ + *buf++ = 0xff; /* A */ } } } @@ -127,7 +127,7 @@ void DiagonalLinesGenerator::configure(const Size &size) *buf++ = kColorBar[index][2]; /* B */ *buf++ = kColorBar[index][1]; /* G */ *buf++ = kColorBar[index][0]; /* R */ - *buf++ = 0x00; /* A */ + *buf++ = 0xff; /* A */ } } }