From fd98779d7838cca1b52ba3cb34c22e964e69eb7e Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 20 Oct 2023 19:10:43 +0300 Subject: 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 Reviewed-by: Jacopo Mondi --- src/libcamera/transform.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libcamera') 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 -- cgit v1.2.1