libcamera: include/libcamera/transform.h File Reference

libcamera v0.0.1 Supporting cameras in Linux since 2019

Namespaces | Enumerations | Functions
transform.h File Reference

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

`#include <string>`
Include dependency graph for transform.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Namespaces
namespace | libcamera
| Top-level libcamera namespace.

## Enumerations
enum class | libcamera::Transform : int { libcamera::Identity = 0 , libcamera::Rot0 = Identity , libcamera::HFlip = 1 , libcamera::VFlip = 2 , libcamera::HVFlip = HFlip | VFlip , libcamera::Rot180 = HVFlip , libcamera::Transpose = 4 , libcamera::Rot270 = HFlip | Transpose , libcamera::Rot90 = VFlip | Transpose , libcamera::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.