From patchwork Thu Oct 19 14:01:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 19151 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 52E88C3272 for ; Thu, 19 Oct 2023 14:01:55 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 2CF2A6298A; Thu, 19 Oct 2023 16:01:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1697724114; bh=vyVixfRAB1MoIguSxyUe4vvZ8DqCVVEBiQUjG4hWmss=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=AoDbRcERtShl6Ifj1GBWzxTcL3MYORnsB7tXPbaxC0Lt89/ZF5iF6i4MLU1eetDFB NnWa8fZgL+p57o/zPJUuV+c93qN/RTUgSk9RXNpdDUzSTs26p/uTCD5KNDow4crSkb KgmA0fQD8sagXrly3iPICrDcY9VAAbUJI6yyXrb4HH0v9JTWo4UG5mhFnEFb42n5WE TK/6VLyC9WwsiYI8HEZ40MwMZBlhxLgYRi9i1S7RtSYwov2URJvW4WupOVQG5Wk3iI 1HHqxBrH7TGhZVz+QM/r9UqgG8/jT5Sqz2A7SsxBzPc/fHQBSmmETICtm5Bw8e1CkG toVmKSx9RGVQA== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id F10B362984 for ; Thu, 19 Oct 2023 16:01:50 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Ei5HJ3L/"; dkim-atps=neutral Received: from uno.LocalDomain (93-61-96-190.ip145.fastwebnet.it [93.61.96.190]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id DB47110FF; Thu, 19 Oct 2023 16:01:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1697724103; bh=vyVixfRAB1MoIguSxyUe4vvZ8DqCVVEBiQUjG4hWmss=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ei5HJ3L/trJk5AMx8ZKC91V0Fy7v1yFeme3pPlujvAH2Ltr/6tboloYs7rVQUy5OS zgYb2xsYSUiCc31JUOHtaYjHannULdwbuuCQMoDEhpQkTJ1Mnlc3M0z94tJEXuIvlD Uwy9fNcJ4Qr3hM6Qr/RM84D1D18jTMudFxJwLKOg= To: libcamera-devel@lists.libcamera.org Date: Thu, 19 Oct 2023 16:01:24 +0200 Message-ID: <20231019140133.32090-4-jacopo.mondi@ideasonboard.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231019140133.32090-1-jacopo.mondi@ideasonboard.com> References: <20231019140133.32090-1-jacopo.mondi@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v6 03/12] Documentation: Add figures to document Orientation 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: Jacopo Mondi via libcamera-devel From: Jacopo Mondi Reply-To: Jacopo Mondi Cc: Jacopo Mondi Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add figures in Documentation/rotation/ to document the plane transformations defined by the Orientation enumeration. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart --- Documentation/Doxyfile.in | 2 + Documentation/rotation/rotate0.svg | 132 ++++++++++++++++++++ Documentation/rotation/rotate0Mirror.svg | 135 +++++++++++++++++++++ Documentation/rotation/rotate180.svg | 135 +++++++++++++++++++++ Documentation/rotation/rotate180Mirror.svg | 135 +++++++++++++++++++++ Documentation/rotation/rotate270.svg | 135 +++++++++++++++++++++ Documentation/rotation/rotate270Mirror.svg | 135 +++++++++++++++++++++ Documentation/rotation/rotate90.svg | 135 +++++++++++++++++++++ Documentation/rotation/rotate90Mirror.svg | 135 +++++++++++++++++++++ src/libcamera/orientation.cpp | 17 +++ 10 files changed, 1096 insertions(+) create mode 100644 Documentation/rotation/rotate0.svg create mode 100644 Documentation/rotation/rotate0Mirror.svg create mode 100644 Documentation/rotation/rotate180.svg create mode 100644 Documentation/rotation/rotate180Mirror.svg create mode 100644 Documentation/rotation/rotate270.svg create mode 100644 Documentation/rotation/rotate270Mirror.svg create mode 100644 Documentation/rotation/rotate90.svg create mode 100644 Documentation/rotation/rotate90Mirror.svg diff --git a/Documentation/Doxyfile.in b/Documentation/Doxyfile.in index 697a14d1dfe2..67ee51afb6e3 100644 --- a/Documentation/Doxyfile.in +++ b/Documentation/Doxyfile.in @@ -78,6 +78,8 @@ EXPAND_ONLY_PREDEF = YES INCLUDE_PATH = "@TOP_SRCDIR@/include/libcamera" INCLUDE_FILE_PATTERNS = *.h +IMAGE_PATH = "@TOP_SRCDIR@/Documentation" + PREDEFINED = __DOXYGEN__ \ __cplusplus \ __attribute__(x)= \ diff --git a/Documentation/rotation/rotate0.svg b/Documentation/rotation/rotate0.svg new file mode 100644 index 000000000000..13cde16ada51 --- /dev/null +++ b/Documentation/rotation/rotate0.svg @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Documentation/rotation/rotate0Mirror.svg b/Documentation/rotation/rotate0Mirror.svg new file mode 100644 index 000000000000..a7edda873bf5 --- /dev/null +++ b/Documentation/rotation/rotate0Mirror.svg @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Documentation/rotation/rotate180.svg b/Documentation/rotation/rotate180.svg new file mode 100644 index 000000000000..d092a5322fb1 --- /dev/null +++ b/Documentation/rotation/rotate180.svg @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Documentation/rotation/rotate180Mirror.svg b/Documentation/rotation/rotate180Mirror.svg new file mode 100644 index 000000000000..d4a77d500d94 --- /dev/null +++ b/Documentation/rotation/rotate180Mirror.svg @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Documentation/rotation/rotate270.svg b/Documentation/rotation/rotate270.svg new file mode 100644 index 000000000000..13ea1e5df918 --- /dev/null +++ b/Documentation/rotation/rotate270.svg @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Documentation/rotation/rotate270Mirror.svg b/Documentation/rotation/rotate270Mirror.svg new file mode 100644 index 000000000000..6116f50aa96e --- /dev/null +++ b/Documentation/rotation/rotate270Mirror.svg @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Documentation/rotation/rotate90.svg b/Documentation/rotation/rotate90.svg new file mode 100644 index 000000000000..af6276383c79 --- /dev/null +++ b/Documentation/rotation/rotate90.svg @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Documentation/rotation/rotate90Mirror.svg b/Documentation/rotation/rotate90Mirror.svg new file mode 100644 index 000000000000..1760c46226ab --- /dev/null +++ b/Documentation/rotation/rotate90Mirror.svg @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/libcamera/orientation.cpp b/src/libcamera/orientation.cpp index 61f26cfda31b..5caf76f73865 100644 --- a/src/libcamera/orientation.cpp +++ b/src/libcamera/orientation.cpp @@ -37,6 +37,23 @@ namespace libcamera { * In example Orientation::Rotate90Mirror describes the image transformation * obtained by rotating 90 degrees clockwise first and then applying an * horizontal mirroring. + * + * \var CameraConfiguration::Rotate0 + * \image html rotation/rotate0.svg + * \var CameraConfiguration::Rotate0Mirror + * \image html rotation/rotate0Mirror.svg + * \var CameraConfiguration::Rotate180 + * \image html rotation/rotate180.svg + * \var CameraConfiguration::Rotate180Mirror + * \image html rotation/rotate180Mirror.svg + * \var CameraConfiguration::Rotate90Mirror + * \image html rotation/rotate90Mirror.svg + * \var CameraConfiguration::Rotate270 + * \image html rotation/rotate270.svg + * \var CameraConfiguration::Rotate270Mirror + * \image html rotation/rotate270Mirror.svg + * \var CameraConfiguration::Rotate90 + * \image html rotation/rotate90.svg */ /**