blob: 9a2c2fb2fbb119c9e7659ef97767a7361bb6a104 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2023, Ideas On Board Oy
*
* orientation.h - 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 */
|