summaryrefslogtreecommitdiff
path: root/include/libcamera/transform.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libcamera/transform.h')
-rw-r--r--include/libcamera/transform.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/libcamera/transform.h b/include/libcamera/transform.h
index 2e76b940..44cb4c6f 100644
--- a/include/libcamera/transform.h
+++ b/include/libcamera/transform.h
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
- * Copyright (C) 2020, Raspberry Pi (Trading) Limited
+ * Copyright (C) 2020, Raspberry Pi Ltd
*
* transform.h - 2D plane transforms
*/
@@ -11,6 +11,8 @@
namespace libcamera {
+enum class Orientation;
+
enum class Transform : int {
Identity = 0,
Rot0 = Identity,
@@ -70,6 +72,9 @@ constexpr Transform operator~(Transform t)
Transform transformFromRotation(int angle, bool *success = nullptr);
+Transform operator/(const Orientation &o1, const Orientation &o2);
+Orientation operator*(const Orientation &o, const Transform &t);
+
const char *transformToString(Transform t);
} /* namespace libcamera */