libcamera  v0.0.0+100-debian/0_git20200629+e7aa92a-8-9-g77f5237c-dirty (2021-05-05T16:20:29+01:00)
Supporting cameras in Linux since 2019
Namespaces | Enumerations | Functions
transform.h File Reference

Enum to represent and manipulate 2D plane transforms. More...

#include <string>

Go to the source code of this file.

Namespaces

 libcamera
 Top-level libcamera namespace.
 

Enumerations

enum  libcamera::Transform : int {
  Identity = 0, Rot0 = Identity, HFlip = 1, VFlip = 2,
  HVFlip = HFlip | VFlip, Rot180 = HVFlip, Transpose = 4, Rot270 = HFlip | Transpose,
  Rot90 = VFlip | Transpose, Rot180Transpose = HFlip | VFlip | Transpose
}
 Enum to represent a 2D plane transform. More...
 

Functions

constexpr Transform libcamera::operator & (Transform t0, Transform t1)
 Apply bitwise AND operator between the bits in the two transforms. More...
 
constexpr Transform libcamera::operator| (Transform t0, Transform t1)
 Apply bitwise OR operator between the bits in the two transforms. More...
 
constexpr Transform libcamera::operator^ (Transform t0, Transform t1)
 Apply bitwise XOR operator between the bits in the two transforms. More...
 
constexpr Transform & libcamera::operator &= (Transform &t0, Transform t1)
 Apply bitwise AND-assignment operator between the bits in the two transforms. More...
 
constexpr Transform & libcamera::operator|= (Transform &t0, Transform t1)
 Apply bitwise OR-assignment operator between the bits in the two transforms. More...
 
constexpr Transform & libcamera::operator^= (Transform &t0, Transform t1)
 Apply bitwise XOR-assignment operator between the bits in the two transforms. More...
 
Transform libcamera::operator* (Transform t1, Transform t0)
 Compose two transforms together. More...
 
Transform libcamera::operator- (Transform t)
 Invert a transform. More...
 
constexpr bool libcamera::operator! (Transform t)
 Return true if the transform is the Identity, otherwise false More...
 
constexpr Transform libcamera::operator~ (Transform t)
 Return the transform with all the bits inverted individually. More...
 
Transform libcamera::transformFromRotation (int angle, bool *success)
 Return the transform representing a rotation of the given angle clockwise. More...
 
const char * libcamera::transformToString (Transform t)
 Return a character string describing the transform. More...
 

Detailed Description

Enum to represent and manipulate 2D plane transforms.