AeState and AeStateEnum are in the draft namespace under controls in libcamera version 0.4. Since version 0.5, they are directly under the controls namespace. This creates the incompatibility between the libcamera 0.4 and 0.5 or later. Therefore, I propose to check the version and work with the AeState accordingly.
The lines of proposed changes are:
|
auto ae = ctrls.get(libcamera::controls::AeState); |
|
if (ae) |
|
aelock = (*ae == libcamera::controls::AeStateSearching); |
I will submit a PR for this
AeStateandAeStateEnumare in thedraftnamespace undercontrolsin libcamera version 0.4. Since version 0.5, they are directly under thecontrolsnamespace. This creates the incompatibility between the libcamera 0.4 and 0.5 or later. Therefore, I propose to check the version and work with theAeStateaccordingly.The lines of proposed changes are:
LCCV/include/libcamera_app.hpp
Lines 229 to 231 in bca9b3d
I will submit a PR for this