From patchwork Fri Apr 25 10:46:59 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= X-Patchwork-Id: 23262 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 1D98EC327D for ; Fri, 25 Apr 2025 10:47:11 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0B12868AD5; Fri, 25 Apr 2025 12:47:10 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Io5pBiKM"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 68990617E4 for ; Fri, 25 Apr 2025 12:47:07 +0200 (CEST) Received: from pb-laptop.local (185.221.143.16.nat.pool.zt.hu [185.221.143.16]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 64A45EE4 for ; Fri, 25 Apr 2025 12:47:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1745578024; bh=YO6dX/q/3baR3bKuvTf3h5KpWupR2jOKnT0LmSNoV90=; h=From:To:Subject:Date:From; b=Io5pBiKMRRF+Wb5/Snph9ESjA3vJzZ7ncivxZZpFx+QwYZEJnj/LRimFbNv6/ocv5 3wVq0fc5u10Dpki7SSPVoSRK1yI7KpNZ9Ros7S0NvbQ8BCYS2pHpyC06+sWHE6Lrni zOPikQyhL9G+QzPySqDDigOgAO4b+WJitF4dmY9U= From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= To: libcamera-devel@lists.libcamera.org Subject: [PATCH v2 0/4] apps: cam: sdl_sink: Support more RGB and YUV formats Date: Fri, 25 Apr 2025 12:46:59 +0200 Message-ID: <20250425104703.805170-1-barnabas.pocze@ideasonboard.com> X-Mailer: git-send-email 2.49.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" Add support for more RGB and YUV formats in the SDL sink. changes in v2: * support more formats, not just RGB888, BGR888 * don't specify area to be updated explicitly when calling `SDL_Update{NV,}Texture()` v1: https://patchwork.libcamera.org/cover/23196/ Barnabás Pőcze (4): apps: cam: sdl_texture: Take list of buffers in span apps: cam: sdl_texture: Drop `&rect_` from `SDL_Update{NV,}Texture()` call apps: cam: sdl_texture: Add `SDLTexture1Plane` apps: cam: sdl_sink: Support more single-plane formats src/apps/cam/sdl_sink.cpp | 39 ++++++++++++++++++++++++++++++- src/apps/cam/sdl_texture.h | 4 ++-- src/apps/cam/sdl_texture_1plane.h | 18 ++++++++++++++ src/apps/cam/sdl_texture_mjpg.cpp | 2 +- src/apps/cam/sdl_texture_mjpg.h | 2 +- src/apps/cam/sdl_texture_yuv.cpp | 14 ++--------- src/apps/cam/sdl_texture_yuv.h | 9 +------ 7 files changed, 63 insertions(+), 25 deletions(-) create mode 100644 src/apps/cam/sdl_texture_1plane.h --- 2.49.0