libcamera
v0.8.0
Supporting cameras in Linux since 2019
Toggle main menu visibility
Loading...
Searching...
No Matches
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
* Image orientation
6
*/
7
8
#pragma once
9
10
#include <iostream>
11
#include <optional>
12
13
namespace
libcamera
{
14
15
enum class
Orientation
{
16
/* EXIF tag 274 starts from '1' */
17
Rotate0
= 1,
18
Rotate0Mirror
,
19
Rotate180
,
20
Rotate180Mirror
,
21
Rotate90Mirror
,
22
Rotate270
,
23
Rotate270Mirror
,
24
Rotate90
,
25
};
26
27
std::optional<Orientation>
orientationFromRotation
(
int
angle);
28
29
std::ostream &
operator<<
(std::ostream &out,
const
Orientation
&orientation);
30
31
}
/* 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:93
libcamera::Orientation
Orientation
The image orientation in a memory buffer.
Definition
orientation.h:15
libcamera::Orientation::Rotate90
@ Rotate90
Definition
orientation.h:24
libcamera::Orientation::Rotate0
@ Rotate0
Definition
orientation.h:17
libcamera::Orientation::Rotate180
@ Rotate180
Definition
orientation.h:19
libcamera::Orientation::Rotate270Mirror
@ Rotate270Mirror
Definition
orientation.h:23
libcamera::Orientation::Rotate270
@ Rotate270
Definition
orientation.h:22
libcamera::Orientation::Rotate0Mirror
@ Rotate0Mirror
Definition
orientation.h:18
libcamera::Orientation::Rotate180Mirror
@ Rotate180Mirror
Definition
orientation.h:20
libcamera::Orientation::Rotate90Mirror
@ Rotate90Mirror
Definition
orientation.h:21
libcamera::orientationFromRotation
std::optional< Orientation > orientationFromRotation(int angle)
Return the orientation representing a rotation of the given angle clockwise.
Definition
orientation.cpp:70
include
libcamera
orientation.h
Generated by
1.17.0