From patchwork Sun Aug 7 02:17:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 17004 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 F2F3ABE173 for ; Sun, 7 Aug 2022 02:17:29 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8229261FAA; Sun, 7 Aug 2022 04:17:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1659838649; bh=sw0R3O9mdORlO/euwbhl2wc4Kk9rOtGFZCkuSyAPcUc=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=xPFjVodkDVLaMSS7FpwheGjVOEuysf6Hhf2uEbrxNDXMNxtrNdFDxSjeeKzJ80he7 OSmwy0zhe1GEzhdUODKs9CimUP67DU/XIu0diUIhys3feu/MaxZ7bRWUm9e/3/6YuU bniNVUM9+8GO/uXaufTa0NFYDKHzSsbYoROu2cWKPKa5Jk0zdoPnxBx9OJM4L4o8sP 3TB5bKJcVeD4Ad/LHZa5YwzJ8FhD4orAlfya+Of6HiQl4osZzyGNnGPvDBVLVwUjZQ NdPO/siau1NGjxoXy+jqXnmhng9/jZQIhlbEksW+2vhNohB0BipGyAUB4IoWM7Eer8 VQeY4UWE1hUzg== 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 71B1C61FAA for ; Sun, 7 Aug 2022 04:17:27 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="IZcB0OnO"; dkim-atps=neutral Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E8EE356D; Sun, 7 Aug 2022 04:17:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1659838647; bh=sw0R3O9mdORlO/euwbhl2wc4Kk9rOtGFZCkuSyAPcUc=; h=From:To:Cc:Subject:Date:From; b=IZcB0OnOOGJ/kYXov8s0Ft6qvSIDzQ5vOrXCR3KY4SdT9x5l2Rxp2lKMOf4kWh6EG SKbRNME06ysYOUXQawTgffLrCZGVD56bPop++qfsEU3hY7EnOHtMaChDkVs9UBrwG5 ejYOsd61vue5e3U2HPkauzbaPxuoScQBzhx9wGDg= To: libcamera-devel@lists.libcamera.org Date: Sun, 7 Aug 2022 05:17:14 +0300 Message-Id: <20220807021718.9789-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/4] cam: Add support for NV12 in the SDL sink 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: , X-Patchwork-Original-From: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hello, This series adds NV12 support to the SDL sink in the cam application. There's not much to say here apart from the fact I've successfully tested this on a RK3399 board. Please see individual patches for details. Laurent Pinchart (4): cam: sdl_texture_yuyv: Make line stride configurable cam: Rename sdl_texture_yuyv.{cpp,h} to sdl_texture_yuv.{cpp,h} cam: sdl_sink: Support multi-planar formats cam: sdl_sink: Add NV12 texture support src/cam/meson.build | 2 +- src/cam/sdl_sink.cpp | 28 ++++++++++++++++++---------- src/cam/sdl_texture.h | 4 +++- src/cam/sdl_texture_mjpg.cpp | 4 ++-- src/cam/sdl_texture_mjpg.h | 2 +- src/cam/sdl_texture_yuv.cpp | 31 +++++++++++++++++++++++++++++++ src/cam/sdl_texture_yuv.h | 24 ++++++++++++++++++++++++ src/cam/sdl_texture_yuyv.cpp | 20 -------------------- src/cam/sdl_texture_yuyv.h | 17 ----------------- 9 files changed, 80 insertions(+), 52 deletions(-) create mode 100644 src/cam/sdl_texture_yuv.cpp create mode 100644 src/cam/sdl_texture_yuv.h delete mode 100644 src/cam/sdl_texture_yuyv.cpp delete mode 100644 src/cam/sdl_texture_yuyv.h base-commit: 26c82ce13697e1af5950f4935ecff83c6453f351 Tested-by: Kieran Bingham