libcamera v0.1.0+127-8e215127-dirty (2023-12-02T01:06:12+00:00)
Supporting cameras in Linux since 2019
orientation.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2/*
3 * Copyright (C) 2023, Ideas On Board Oy
4 *
5 * orientation.h - Image orientation
6 */
7
8#pragma once
9
10#include <iostream>
11
12namespace libcamera {
13
14enum class Orientation {
15 /* EXIF tag 274 starts from '1' */
16 Rotate0 = 1,
24};
25
26Orientation orientationFromRotation(int angle, bool *success = nullptr);
27
28std::ostream &operator<<(std::ostream &out, const Orientation &orientation);
29
30} /* namespace libcamera */
Top-level libcamera namespace.
Definition: backtrace.h:17
std::ostream & operator<<(std::ostream &out, const Point &p)
Insert a text representation of a Point into an output stream.
Definition: geometry.cpp:91
Orientation
The image orientation in a memory buffer.
Definition: orientation.h:14
Orientation orientationFromRotation(int angle, bool *success=nullptr)
Return the orientation representing a rotation of the given angle clockwise.
Definition: orientation.cpp:69