Skip to content

Incompatibility between libcamera 0.4 and libcamera 0.5 #45

@ONLYA

Description

@ONLYA

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. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions