#!/bin/sh # SPDX-License-Identifier: GPL-2.0-or-later # Prepare a project release set -e # Abort if we are not within the project root or the tree is not clean. if [ ! -e utils/gen-version.sh ] || [ ! -e .git ]; then echo "This release script must be run from the root of libcamera git tree." exit 1 fi if ! git diff-index --quiet HEAD; then echo "Tree must be clean to release." exit 1 fi # Identify current version components version=$(./utils/gen-version.sh) # Decide if we are here to bump major, minor, or patch release. case $1 in major|minor|patch) bump=$1; ;; *) echo "You must specify the version bump level: (major, minor, patch)" exit 1 ;; esac new_version=$(./utils/semver bump "$bump" "$version") echo "Bumping $bump" echo " Existing version is: $version" echo " New version is : $new_version" # Patch in the version to our meson.build sed -i -E "s/ version : '.*',/ version : '$new_version',/" meson.build # Commit the update git commit meson.build -esm "libcamera v$new_version" # Create a tag from that commit git show -s --format=%B | git tag "v$new_version" -s -F - osting on libcamera.org
summaryrefslogtreecommitdiff
path: root/src/cam/image.cpp
blob: fe2cc6da5a159822a5cd86623830c0a0d13834ad (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109