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>
This commit is contained in:
Laurent Pinchart 2023-10-20 19:10:43 +03:00
parent 53b4419986
commit fd98779d78
2 changed files with 4 additions and 1 deletions

View file

@ -71,7 +71,6 @@ constexpr Transform operator~(Transform t)
} }
Transform transformFromRotation(int angle, bool *success = nullptr); Transform transformFromRotation(int angle, bool *success = nullptr);
Transform transformFromOrientation(const Orientation &orientation);
Transform operator/(const Orientation &o1, const Orientation &o2); Transform operator/(const Orientation &o1, const Orientation &o2);
Orientation operator*(const Orientation &o, const Transform &t); Orientation operator*(const Orientation &o, const Transform &t);

View file

@ -301,6 +301,8 @@ Transform transformFromRotation(int angle, bool *success)
return Transform::Identity; return Transform::Identity;
} }
namespace {
/** /**
* \brief Return the transform representing \a orientation * \brief Return the transform representing \a orientation
* \param[in] orientation The orientation to convert * \param[in] orientation The orientation to convert
@ -330,6 +332,8 @@ Transform transformFromOrientation(const Orientation &orientation)
return Transform::Identity; return Transform::Identity;
} }
} /* namespace */
/** /**
* \brief Return the Transform that applied to \a o2 gives \a o1 * \brief Return the Transform that applied to \a o2 gives \a o1
* \param o1 The Orientation to obtain * \param o1 The Orientation to obtain