[libcamera-devel] [PATCH] libcamera: pipeline: Drop setStream() from configure() documentation

Laurent Pinchart laurent.pinchart at ideasonboard.com
Tue Sep 29 01:06:04 CEST 2020


Hi Jacopo,

Thank you for the patch.

On Mon, Sep 28, 2020 at 10:28:58AM +0200, Jacopo Mondi wrote:
> There is no requirement for Stream to be assigned to StreamConfiguration
> during PipelineHandler::configure().

There is a requirement, as it's documented :-) It doesn't mean we can't
drop the requirement if we consider it of no use.

> It actually happens at validate()
> time in most implementations right now.
> 
> Drop this requirement from PipelineHandler::configure() documentation.
> 
> Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>

With the commit message reworded, including a short explanation as for
why this requirement is not needed,

Acked-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>

> ---
>  src/libcamera/pipeline_handler.cpp | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/src/libcamera/pipeline_handler.cpp b/src/libcamera/pipeline_handler.cpp
> index 918aea1e8328..713fe6d1d362 100644
> --- a/src/libcamera/pipeline_handler.cpp
> +++ b/src/libcamera/pipeline_handler.cpp
> @@ -314,10 +314,6 @@ const ControlList &PipelineHandler::properties(const Camera *camera) const
>   * perform further validation and may rely on any custom field stored in its
>   * custom CameraConfiguration derived class.
>   *
> - * When configuring the camera the pipeline handler shall associate a Stream
> - * instance to each StreamConfiguration entry in the CameraConfiguration using
> - * the StreamConfiguration::setStream() method.
> - *
>   * \context This function is called from the CameraManager thread.
>   *
>   * \return 0 on success or a negative error code otherwise

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list