summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-10-20 19:10:43 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-10-23 16:06:22 +0300
commitfd98779d7838cca1b52ba3cb34c22e964e69eb7e (patch)
tree9413dd75f550e59b7457204272a1b0e7485f0b6d
parent53b4419986953e6f20b10588e187e403b3d0791e (diff)
libcamera: transform: Make the transformFromOrientation() function static
Now that the transformFromOrientation() function isn't used outside of transform.cpp, make it static to remove it from the public API. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
-rw-r--r--include/libcamera/transform.h1
-rw-r--r--src/libcamera/transform.cpp4
2 files changed, 4 insertions, 1 deletions
diff --git a/include/libcamera/transform.h b/include/libcamera/transform.h
index 4998a6c0..44cb4c6f 100644
--- a/include/libcamera/transform.h
+++ b/include/libcamera/transform.h
@@ -71,7 +71,6 @@ constexpr Transform operator~(Transform t)
}
Transform transformFromRotation(int angle, bool *success = nullptr);
-Transform transformFromOrientation(const Orientation &orientation);
Transform operator/(const Orientation &o1, const Orientation &o2);
Orientation operator*(const Orientation &o, const Transform &t);
diff --git a/src/libcamera/transform.cpp b/src/libcamera/transform.cpp
index cd2717c2..fb2d55ac 100644
--- a/src/libcamera/transform.cpp
+++ b/src/libcamera/transform.cpp
@@ -301,6 +301,8 @@ Transform transformFromRotation(int angle, bool *success)
return Transform::Identity;
}
+namespace {
+
/**
* \brief Return the transform representing \a orientation
* \param[in] orientation The orientation to convert
@@ -330,6 +332,8 @@ Transform transformFromOrientation(const Orientation &orientation)
return Transform::Identity;
}
+} /* namespace */
+
/**
* \brief Return the Transform that applied to \a o2 gives \a o1
* \param o1 The Orientation to obtain