libcamera: Extend u32 control type
V4L2 Controls support a wide variety of types not yet supported by the ControlValue type system. Extend the libcamera ControlValue types to support an explicit 32 bit unsigned integer type, and map that to the corresponding V4L2_CTRL_TYPE_U32 type within the v4l2_device support class. Signed-off-by: Yudhistira Erlandinata <yerlandinata@chromium.org> Co-developed-by: Harvey Yang <chenghaoyang@chromium.org> Signed-off-by: Harvey Yang <chenghaoyang@chromium.org> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Kieran Bingham
parent
1197fff482
commit
86902b39d7
@@ -29,6 +29,7 @@ enum ControlType {
|
||||
ControlTypeNone,
|
||||
ControlTypeBool,
|
||||
ControlTypeByte,
|
||||
ControlTypeUnsigned32,
|
||||
ControlTypeInteger32,
|
||||
ControlTypeInteger64,
|
||||
ControlTypeFloat,
|
||||
@@ -62,6 +63,12 @@ struct control_type<uint8_t> {
|
||||
static constexpr std::size_t size = 0;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct control_type<uint32_t> {
|
||||
static constexpr ControlType value = ControlTypeUnsigned32;
|
||||
static constexpr std::size_t size = 0;
|
||||
};
|
||||
|
||||
template<>
|
||||
struct control_type<int32_t> {
|
||||
static constexpr ControlType value = ControlTypeInteger32;
|
||||
|
||||
Reference in New Issue
Block a user