Files
external_libcamera/include/libcamera/control_ids.h.in
Jacopo Mondi ef7a07dd8a libcamera: controls: Generate an array of valid values
For each Control that supports enumerated values generate an array
of ControlValue which contains the full list of valid values.

At the expense of a slight increase in memory occupation this change
allows the construction of the ControlInfo associated with a Control
from the values list, defaulting the minimum and maximum values
reported by the ControlInfo.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
2020-10-26 17:51:55 +01:00

41 lines
596 B
C

/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2019, Google Inc.
*
* control_ids.h - Control ID list
*
* This file is auto-generated. Do not edit.
*/
#ifndef __LIBCAMERA_CONTROL_IDS_H__
#define __LIBCAMERA_CONTROL_IDS_H__
#include <array>
#include <stdint.h>
#include <libcamera/controls.h>
namespace libcamera {
namespace controls {
enum {
${ids}
};
${controls}
extern const ControlIdMap controls;
namespace draft {
${draft_controls}
} /* namespace draft */
} /* namespace controls */
} /* namespace libcamera */
#endif /* __LIBCAMERA_CONTROL_IDS_H__ */