From patchwork Mon Aug 8 15:56:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 17026 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 5581CBE173 for ; Mon, 8 Aug 2022 15:56:19 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 72D5C6332B; Mon, 8 Aug 2022 17:56:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1659974178; bh=Kj2rZ81pZGbxgDAHjhYFkox0hGeXR2KIhTICAcv/Ehk=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=3nkll0t8/6Wv0qTKBrpD25xJYDl6wgC+Kcib6EX438MfPlUQaawdUTOwAsmzhvn8Q kxlUwM3RdyQmsJqzHeEK4n4qeVpzqeDi10BrHb3CNLdXdieIqXiV5gs0DujZwS8Q9P 5ZUCRl6gEvPjcXqyMsUa1SdJCF1n+TYEhBnuRVDsiQmlpBG+0NVZsSN5R/NM0sfswE t1sFYCIhJlj+kC+GosuaGQYN/ehG+4EtX1+V2WyvV/5IGUexETZLLjhPohyMoZq9rW R+iZc4hF17JgdVKHIHdFWsk6RVopDSGXHinLq5I85iJwedFaCB+oi2k+0udz2tK2Tf XRdNB9sVO2ADw== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 96B1763315 for ; Mon, 8 Aug 2022 17:56:16 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="CYa9sr5p"; 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 0CD55481; Mon, 8 Aug 2022 17:56:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1659974176; bh=Kj2rZ81pZGbxgDAHjhYFkox0hGeXR2KIhTICAcv/Ehk=; h=From:To:Cc:Subject:Date:From; b=CYa9sr5pwLDPowIWD5B93/hJ/SMk0hH3zgyVKvjY6qp/PJwSK439i0Vwqdt6P7x3N S6P147aY3BPA/kiP1MycWidf/MuvVf6y0UysdFxGrafYayT+WYCEmrrz+5bPh/mHlr xlvdaS8XofM/MGoXaUMek/dZXcy3f+zdtMDvB3Hg= To: libcamera-devel@lists.libcamera.org Date: Mon, 8 Aug 2022 18:56:03 +0300 Message-Id: <20220808155605.7925-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] cam: Miscellaneous fixes for 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 patch series fixes two issues with the SDL sink in cam. The first one, addressed by 1/2, is a compilation breakage against SDL versions older than 2.0.16 that don't have NV12 texture support. The second one, in 2/2, is a small cleanup to maintain consistent variable naming. Laurent Pinchart (2): cam: sdl_sink: Fix compilation with SDL2 <2.0.16 cam: sdl_texture: Renaming 'pitch' to 'stride' src/cam/sdl_sink.cpp | 2 ++ src/cam/sdl_texture.cpp | 4 ++-- src/cam/sdl_texture.h | 4 ++-- src/cam/sdl_texture_mjpg.cpp | 6 +++--- src/cam/sdl_texture_yuv.cpp | 8 +++++--- src/cam/sdl_texture_yuv.h | 2 ++ 6 files changed, 16 insertions(+), 10 deletions(-) base-commit: 7b8df9fe6b3eedc46667d07ad2c90c89ca823e0c