31 return static_cast<Transform>(
static_cast<int>(t0) &
static_cast<int>(t1));
36 return static_cast<Transform>(
static_cast<int>(t0) |
static_cast<int>(t1));
41 return static_cast<Transform>(
static_cast<int>(t0) ^
static_cast<int>(t1));
70 return static_cast<Transform>(~static_cast<int>(t) & 7);
Top-level libcamera namespace.
Definition backtrace.h:17
constexpr Transform operator&(Transform t0, Transform t1)
Apply bitwise AND operator between the bits in the two transforms.
Definition transform.h:29
constexpr bool operator!(Transform t)
Return true if the transform is the Identity, otherwise false
Definition transform.h:63
Transform
Enum to represent a 2D plane transform.
Definition transform.h:16
constexpr Transform operator~(Transform t)
Return the transform with all the bits inverted individually.
Definition transform.h:68
std::optional< Transform > transformFromRotation(int angle)
Return the transform representing a rotation of the given angle clockwise.
Definition transform.cpp:280
Orientation
The image orientation in a memory buffer.
Definition orientation.h:15
constexpr Transform & operator^=(Transform &t0, Transform t1)
Apply bitwise XOR-assignment operator between the bits in the two transforms.
Definition transform.h:54
const char * transformToString(Transform t)
Return a character string describing the transform.
Definition transform.cpp:389
constexpr Transform & operator|=(Transform &t0, Transform t1)
Apply bitwise OR-assignment operator between the bits in the two transforms.
Definition transform.h:49
constexpr Transform operator|(Transform t0, Transform t1)
Apply bitwise OR operator between the bits in the two transforms.
Definition transform.h:34
Matrix< U, Rows, Cols > operator*(T d, const Matrix< U, Rows, Cols > &m)
Multiply the matrix by a scalar.
Definition matrix.h:152
constexpr Transform operator^(Transform t0, Transform t1)
Apply bitwise XOR operator between the bits in the two transforms.
Definition transform.h:39
Transform operator/(const Orientation &o1, const Orientation &o2)
Return the Transform that applied to o2 gives o1.
Definition transform.cpp:343
constexpr Transform & operator&=(Transform &t0, Transform t1)
Apply bitwise AND-assignment operator between the bits in the two transforms.
Definition transform.h:44
Transform operator-(Transform t)
Invert a transform.
Definition transform.cpp:235