From patchwork Thu Oct 15 13:09:28 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Robert Mader X-Patchwork-Id: 28457 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 2CB5BC3305 for ; Thu, 15 Oct 2026 13:09:45 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id D07ED68E12; 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="dK4X6SgP"; 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 C2B2468E01 for ; Thu, 15 Oct 2026 15:09:40 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; t=1792069777; cv=none; d=zohomail.com; s=zohoarc; b=WGLSrKDqgP2oJ9gjq7L/KmilffmFqGsNM5SNTvUbwiVrGX5LsE6tpoLNCiKiINYgoWnFLGfmUjTFoblY8TfcOOsn3g3DsPFfBcu73166wNiAaDLrwxSprt9godTkqcsN16RkFQFg5q7qgu2YhA8lQABIlECLNSHpjbPId2SEg5A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792069777; 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=NfE5k/qHVz9t/zuYflWqFUUD0ekuFdaLtS1MWR9EhvI=; b=P7AwtmURGaNkIPUFxbdBDusBR6otMgjPwPehkQpUmZYCuDUasC8nCRxMAJpYppIJZ41J1c6FbNTYO5F/UILv7879AOeBDhfOq2Va6qmyyvBb5UV+r+/8TpFVXslKrJDyy9yPFg+LUzRBRvWD1gOkvyzYCVl/GznpPoRi5VWNG+E= 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=1792069777; 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=NfE5k/qHVz9t/zuYflWqFUUD0ekuFdaLtS1MWR9EhvI=; b=dK4X6SgPiuC2m/3JAVne7iFHv71bRvfmAKDGMx++VrZrXc2L7eC6Zdk1XmSdOhGM T8twapQ+QCr9C74m8npFI2cUw8uObW2IoCaKLfs4a4VtmI47wrWhk898c+NF3BUgRuz BDmZP+v0udGnMFaxAGdeHzlj2zTsdoRmFBGEYDYA= Received: by smtp.zohomail.com with SMTPS id 1792069775966582.0548681726328; Thu, 15 Oct 2026 06:09:35 -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 Subject: [PATCH v4 1/2] virtual: Fill alpha channels Date: Thu, 15 Oct 2026 15:09:28 +0200 Message-ID: <20261015130929.311514-2-robert.mader@collabora.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261015130929.311514-1-robert.mader@collabora.com> References: <20261015130929.311514-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 --- 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 */ } } }