libcamera: Support draft controls and properties
Extend the control and property framework to support exposing draft controls and properties in a scoped namespace. The controls/properties themselves will retain the same ordering in the relevant enum/id maps - but the access to any draft control will require explicitly referencing through its' draft:: namespace prefix. Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> [Added missing hunk in control_ids.cpp.in and changed subject] Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
committed by
Jacopo Mondi
parent
581bb27495
commit
89916a486c
@@ -26,6 +26,12 @@ ${controls}
|
||||
|
||||
extern const ControlIdMap controls;
|
||||
|
||||
namespace draft {
|
||||
|
||||
${draft_controls}
|
||||
|
||||
} /* namespace draft */
|
||||
|
||||
} /* namespace controls */
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
||||
@@ -24,6 +24,12 @@ ${ids}
|
||||
|
||||
${controls}
|
||||
|
||||
namespace draft {
|
||||
|
||||
${draft_controls}
|
||||
|
||||
} /* namespace draft */
|
||||
|
||||
extern const ControlIdMap properties;
|
||||
|
||||
} /* namespace properties */
|
||||
|
||||
Reference in New Issue
Block a user