Loading...
Searching...
No Matches
orientation.h
Go to the documentation of this file.
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2023, Ideas On Board Oy
*
* Image orientation
*/
#pragma once
#include <iostream>
namespace libcamera {
enum class Orientation {
/* EXIF tag 274 starts from '1' */
Rotate0 = 1,
Rotate0Mirror,
Rotate180,
Rotate180Mirror,
Rotate90Mirror,
Rotate270,
Rotate270Mirror,
Rotate90,
};
Orientation orientationFromRotation(int angle, bool *success = nullptr);
std::ostream &operator<<(std::ostream &out, const Orientation &orientation);
} /* namespace libcamera */
libcamera
Top-level libcamera namespace.
Definition bound_method.h:15
libcamera::operator<<
std::ostream & operator<<(std::ostream &out, const Point &p)
Insert a text representation of a Point into an output stream.
Definition geometry.cpp:91
libcamera::Orientation
Orientation
The image orientation in a memory buffer.
Definition orientation.h:14
libcamera::Orientation::Rotate90
@ Rotate90
Definition orientation.h:23
libcamera::Orientation::Rotate0
@ Rotate0
Definition orientation.h:16
libcamera::Orientation::Rotate180
@ Rotate180
Definition orientation.h:18
libcamera::Orientation::Rotate270Mirror
@ Rotate270Mirror
Definition orientation.h:22
libcamera::Orientation::Rotate270
@ Rotate270
Definition orientation.h:21
libcamera::Orientation::Rotate0Mirror
@ Rotate0Mirror
Definition orientation.h:17
libcamera::Orientation::Rotate180Mirror
@ Rotate180Mirror
Definition orientation.h:19
libcamera::Orientation::Rotate90Mirror
@ Rotate90Mirror
Definition orientation.h:20
libcamera::orientationFromRotation
Orientation orientationFromRotation(int angle, bool *success=nullptr)
Return the orientation representing a rotation of the given angle clockwise.
Definition orientation.cpp:68