|
libcamera
v0.1.0
Supporting cameras in Linux since 2019
|
Go to the documentation of this file.
19 HVFlip = HFlip | VFlip,
22 Rot270 = HFlip | Transpose,
23 Rot90 = VFlip | Transpose,
29 return static_cast<Transform>(
static_cast<int>(t0) &
static_cast<int>(t1));
34 return static_cast<Transform>(
static_cast<int>(t0) |
static_cast<int>(t1));
39 return static_cast<Transform>(
static_cast<int>(t0) ^
static_cast<int>(t1));
63 return t == Transform::Identity;
68 return static_cast<Transform>(~static_cast<int>(t) & 7);
constexpr Transform & operator&=(Transform &t0, Transform t1)
Apply bitwise AND-assignment operator between the bits in the two transforms.
Definition: transform.h:42
constexpr Transform operator|(Transform t0, Transform t1)
Apply bitwise OR operator between the bits in the two transforms.
Definition: transform.h:32
Transform
Enum to represent a 2D plane transform.
Definition: transform.h:14
constexpr Transform & operator|=(Transform &t0, Transform t1)
Apply bitwise OR-assignment operator between the bits in the two transforms.
Definition: transform.h:47
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:27
Transform operator*(Transform t0, Transform t1)
Compose two transforms together.
Definition: transform.cpp:207
Transform operator-(Transform t)
Invert a transform.
Definition: transform.cpp:233
constexpr Transform & operator^=(Transform &t0, Transform t1)
Apply bitwise XOR-assignment operator between the bits in the two transforms.
Definition: transform.h:52
constexpr bool operator!(Transform t)
Return true if the transform is the Identity, otherwise false
Definition: transform.h:61
constexpr Transform operator~(Transform t)
Return the transform with all the bits inverted individually.
Definition: transform.h:66
const char * transformToString(Transform t)
Return a character string describing the transform.
Definition: transform.cpp:306
constexpr Transform operator^(Transform t0, Transform t1)
Apply bitwise XOR operator between the bits in the two transforms.
Definition: transform.h:37
Transform transformFromRotation(int angle, bool *success=nullptr)
Return the transform representing a rotation of the given angle clockwise.
Definition: transform.cpp:276