Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions include/libcamera_app.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <libcamera/formats.h>
#include <libcamera/framebuffer_allocator.h>
#include <libcamera/property_ids.h>
#include <libcamera/version.h>

class Options;
struct CompletedRequest;
Expand Down Expand Up @@ -226,9 +227,15 @@ struct FrameInfo
if (fom)
focus = *fom;

auto ae = ctrls.get(libcamera::controls::AeState);
if (ae)
aelock = (*ae == libcamera::controls::AeStateSearching);
#if LIBCAMERA_VERSION_MINOR == 4
auto ae = ctrls.get(libcamera::controls::draft::AeState);
if (ae)
aelock = (*ae == libcamera::controls::draft::AeStateLocked);
#else
auto ae = ctrls.get(libcamera::controls::AeState);
if (ae)
aelock = (*ae == libcamera::controls::AeStateSearching);
#endif//LIBCAMERA_VERSION_MINOR
}

std::string ToString(std::string &info_string) const
Expand Down