libcamera: pipeline_handler: Drop controls() and properties() functions
The PipelineHandler controls() and properties() functions are only used by the Camera class. Now that the controls and properties are stored in the Camera::Private class, we can drop those functions and access the private data directly in Camera::controls() and Camera::properties(). Suggested-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
@@ -800,7 +800,7 @@ int Camera::release()
|
||||
*/
|
||||
const ControlInfoMap &Camera::controls() const
|
||||
{
|
||||
return _d()->pipe_->controls(this);
|
||||
return _d()->controlInfo_;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -813,7 +813,7 @@ const ControlInfoMap &Camera::controls() const
|
||||
*/
|
||||
const ControlList &Camera::properties() const
|
||||
{
|
||||
return _d()->pipe_->properties(this);
|
||||
return _d()->properties_;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user