mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-12 14:59:44 +03:00
guides: pipeline-handler: Update name of pipeline handler stop function
Since commit f6b6f15b54
("libcamera: pipeline: Introduce
stopDevice()") the stop function needed to be implemented by pipeline
handlers was renamed to stopDevice().
Update the pipeline handler writers guide to match this.
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jai Luthra <jai.luthra@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
4b5856533a
commit
fabee6055f
1 changed files with 5 additions and 5 deletions
|
@ -213,7 +213,7 @@ implementations for the overridden class members.
|
||||||
std::vector<std::unique_ptr<FrameBuffer>> *buffers) override;
|
std::vector<std::unique_ptr<FrameBuffer>> *buffers) override;
|
||||||
|
|
||||||
int start(Camera *camera, const ControlList *controls) override;
|
int start(Camera *camera, const ControlList *controls) override;
|
||||||
void stop(Camera *camera) override;
|
void stopDevice(Camera *camera) override;
|
||||||
|
|
||||||
int queueRequestDevice(Camera *camera, Request *request) override;
|
int queueRequestDevice(Camera *camera, Request *request) override;
|
||||||
|
|
||||||
|
@ -247,7 +247,7 @@ implementations for the overridden class members.
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PipelineHandlerVivid::stop(Camera *camera)
|
void PipelineHandlerVivid::stopDevice(Camera *camera)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1152,7 +1152,7 @@ available to the devices which have to be started and ready to produce
|
||||||
images. At the end of a capture session the ``Camera`` device needs to be
|
images. At the end of a capture session the ``Camera`` device needs to be
|
||||||
stopped, to gracefully clean up any allocated memory and stop the hardware
|
stopped, to gracefully clean up any allocated memory and stop the hardware
|
||||||
devices. Pipeline handlers implement two functions for these purposes, the
|
devices. Pipeline handlers implement two functions for these purposes, the
|
||||||
``start()`` and ``stop()`` functions.
|
``start()`` and ``stopDevice()`` functions.
|
||||||
|
|
||||||
The memory initialization phase that happens at ``start()`` time serves to
|
The memory initialization phase that happens at ``start()`` time serves to
|
||||||
configure video devices to be able to use memory buffers exported as dma-buf
|
configure video devices to be able to use memory buffers exported as dma-buf
|
||||||
|
@ -1255,8 +1255,8 @@ algorithms, or other devices you should also stop them.
|
||||||
.. _releaseBuffers: https://libcamera.org/api-html/classlibcamera_1_1V4L2VideoDevice.html#a191619c152f764e03bc461611f3fcd35
|
.. _releaseBuffers: https://libcamera.org/api-html/classlibcamera_1_1V4L2VideoDevice.html#a191619c152f764e03bc461611f3fcd35
|
||||||
|
|
||||||
Of course we also need to handle the corresponding actions to stop streaming on
|
Of course we also need to handle the corresponding actions to stop streaming on
|
||||||
a device, Add the following to the ``stop`` function, to stop the stream with
|
a device, Add the following to the ``stopDevice()`` function, to stop the
|
||||||
the `streamOff`_ function and release all buffers.
|
stream with the `streamOff`_ function and release all buffers.
|
||||||
|
|
||||||
.. _streamOff: https://libcamera.org/api-html/classlibcamera_1_1V4L2VideoDevice.html#a61998710615bdf7aa25a046c8565ed66
|
.. _streamOff: https://libcamera.org/api-html/classlibcamera_1_1V4L2VideoDevice.html#a61998710615bdf7aa25a046c8565ed66
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue