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:
parent
53b4419986
commit
fd98779d78
2 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue