Commit 307b2d4
committed
utils: Preserve API by overloading libpisp::compute_optimal_stride
The signature for compute_optimal_stride has changed, and it is called by libcamera
extrenally. While adding a default parameter makes it backwards compatible, using
libcamera.so to build rpicam-apps with -Wl, --no-undefined will cause undefined symbols.
This change preserves the API by overloading the function to have both the previous and
new signature. This will emit both symbols in the shared object. Only
compute_optimal_stride in utils.hpp needs this change as this is the only function being
used in libcamera as an API from utils.1 parent 981977f commit 307b2d4
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
121 | 126 | | |
122 | 127 | | |
123 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
0 commit comments