diff options
author | NĂcolas F. R. A. Prado <nfraprado@collabora.com> | 2021-03-17 16:28:30 -0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-03-19 01:58:43 +0200 |
commit | f87be145cd023e81862391a010b9c29af50770ba (patch) | |
tree | e7e30587b563352e9b9712bfdd74231fb929e57b /Documentation/guides/pipeline-handler.rst | |
parent | 30a4e7804322958b25d816e505eb7ea593069f35 (diff) |
Documentation: guides: pipeline-handler: Update code, commands and logs
The pipeline-handler guide is a bit outdated:
- ControlList* in start() is now const.
- Registered pipeline handler log now comes from Camera log and the message is different.
Update the pipeline-handler guide to reflect these changes.
Signed-off-by: NĂcolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: Sebastian Fricke <sebastian.fricke@posteo.net>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'Documentation/guides/pipeline-handler.rst')
-rw-r--r-- | Documentation/guides/pipeline-handler.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/guides/pipeline-handler.rst b/Documentation/guides/pipeline-handler.rst index eb8ddfd5..288f572c 100644 --- a/Documentation/guides/pipeline-handler.rst +++ b/Documentation/guides/pipeline-handler.rst @@ -209,7 +209,7 @@ methods for the overridden class members. int exportFrameBuffers(Camera *camera, Stream *stream, std::vector<std::unique_ptr<FrameBuffer>> *buffers) override; - int start(Camera *camera, ControlList *controls) override; + int start(Camera *camera, const ControlList *controls) override; void stop(Camera *camera) override; int queueRequestDevice(Camera *camera, Request *request) override; @@ -239,7 +239,7 @@ methods for the overridden class members. return -1; } - int PipelineHandlerVivid::start(Camera *camera, ControlList *controls) + int PipelineHandlerVivid::start(Camera *camera, const ControlList *controls) { return -1; } @@ -303,13 +303,13 @@ new pipeline handler by running: .. code-block:: shell - LIBCAMERA_LOG_LEVELS=Pipeline:0 ./build/src/cam/cam -l + LIBCAMERA_LOG_LEVELS=Camera:0 ./build/src/cam/cam -l And you should see output like the below: .. code-block:: shell - DEBUG Pipeline pipeline_handler.cpp:680 Registered pipeline handler "PipelineHandlerVivid" + DEBUG Camera camera_manager.cpp:148 Found registered pipeline handler 'PipelineHandlerVivid' Matching devices ~~~~~~~~~~~~~~~~ |