From patchwork Sun Aug 7 02:17:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 17006 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 36320C3275 for ; Sun, 7 Aug 2022 02:17:33 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id E23A263334; Sun, 7 Aug 2022 04:17:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1659838652; bh=WJlPPlPIFJcsv0qeU24ME+UUz6tQyxWZ4W6pr9pVbLQ=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=r9qQAx+EXOWwFlAXkhh+UkQPUPfMb9ulTLCu8au35JuNVeR+8DYeV8mQ1xkrZgyfI hFeNQZ3HgsOQqOpkN9fWK7MHlPg0H0FGK5wgls611Ou5smygCF8vsb9cl5bA5whUkh Vrl01geL3kJA/NUlDm4JpJv51QNBzwtJJ4IulxqjP/jM8Vm5ZQvT3LMJ6CEmpvBn/Q 4Q1BF19x2TXY6DhsmjoIW81oisJw+5rAgkrMep1vOu3TzH6MaeA5tLXfCPFrAnq7xK QbOljQ0ocDXwbE6K/giOXIJk5eSb7HclMf7YCEXEWugdNAnbgvdIo95H7HMXEg+uVi dJKWQtHiozZJA== 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 E09BD6332E for ; Sun, 7 Aug 2022 04:17:29 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="fslkkzpm"; 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 4F41487A; Sun, 7 Aug 2022 04:17:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1659838649; bh=WJlPPlPIFJcsv0qeU24ME+UUz6tQyxWZ4W6pr9pVbLQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fslkkzpmAz+2LM5KiEW5LWPdatNCIrolI1/50AyBtelplP1YDR4EcnXb5Ngcrk6+l UOB5jAWy1QAeqdj7+c/oVYJrY5MpQgktOTEEleG4XkZICLZI0PtTJ430xmV5/n1135 SlWZxYfBMmWMldURxJV9C+Dxnbm9QbWs7Bz4bBKU= To: libcamera-devel@lists.libcamera.org Date: Sun, 7 Aug 2022 05:17:16 +0300 Message-Id: <20220807021718.9789-3-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220807021718.9789-1-laurent.pinchart@ideasonboard.com> References: <20220807021718.9789-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 2/4] cam: Rename sdl_texture_yuyv.{cpp, h} to sdl_texture_yuv.{cpp, h} 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" In preparation for the addition of NV12 support in the SDL sink, rename the sdl_texture_yuyv.{cpp,h} files to just "yuv". Separate sdl_texture_nv12.{cpp,h} files could be added instead, but given how short the implementation will be, grouping all YUV formats in a single file is better. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham Reviewed-by: Jacopo Mondi Reviewed-by: Eric Curtin --- src/cam/meson.build | 2 +- src/cam/sdl_sink.cpp | 2 +- src/cam/{sdl_texture_yuyv.cpp => sdl_texture_yuv.cpp} | 4 ++-- src/cam/{sdl_texture_yuyv.h => sdl_texture_yuv.h} | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename src/cam/{sdl_texture_yuyv.cpp => sdl_texture_yuv.cpp} (83%) rename src/cam/{sdl_texture_yuyv.h => sdl_texture_yuv.h} (100%) diff --git a/src/cam/meson.build b/src/cam/meson.build index 4dfa7b22aea9..8259239ff5a2 100644 --- a/src/cam/meson.build +++ b/src/cam/meson.build @@ -40,7 +40,7 @@ if libsdl2.found() cam_sources += files([ 'sdl_sink.cpp', 'sdl_texture.cpp', - 'sdl_texture_yuyv.cpp' + 'sdl_texture_yuv.cpp', ]) if libjpeg.found() diff --git a/src/cam/sdl_sink.cpp b/src/cam/sdl_sink.cpp index a59d07519e1f..04350bd5365b 100644 --- a/src/cam/sdl_sink.cpp +++ b/src/cam/sdl_sink.cpp @@ -24,7 +24,7 @@ #ifdef HAVE_LIBJPEG #include "sdl_texture_mjpg.h" #endif -#include "sdl_texture_yuyv.h" +#include "sdl_texture_yuv.h" using namespace libcamera; diff --git a/src/cam/sdl_texture_yuyv.cpp b/src/cam/sdl_texture_yuv.cpp similarity index 83% rename from src/cam/sdl_texture_yuyv.cpp rename to src/cam/sdl_texture_yuv.cpp index cb51fb0ef478..07df4961a1ab 100644 --- a/src/cam/sdl_texture_yuyv.cpp +++ b/src/cam/sdl_texture_yuv.cpp @@ -2,10 +2,10 @@ /* * Copyright (C) 2022, Ideas on Board Oy * - * sdl_texture_yuyv.cpp - SDL Texture YUYV + * sdl_texture_yuv.cpp - SDL Texture YUYV */ -#include "sdl_texture_yuyv.h" +#include "sdl_texture_yuv.h" using namespace libcamera; diff --git a/src/cam/sdl_texture_yuyv.h b/src/cam/sdl_texture_yuv.h similarity index 100% rename from src/cam/sdl_texture_yuyv.h rename to src/cam/sdl_texture_yuv.h