The MediaPipeline represents a set of entities that together form a data path for stream data. More...
Public Member Functions | |
| int | init (MediaEntity *source, std::string_view sink) |
| Find the path from source to sink. | |
| int | initLinks () |
| Initialise and enable all links through the MediaPipeline. | |
| int | configure (CameraSensor *sensor, V4L2SubdeviceFormat *) |
| Configure the entities of this MediaPipeline. | |
The MediaPipeline represents a set of entities that together form a data path for stream data.
A MediaPipeline instance is constructed from a sink and a source between two entities in a media graph.
| int libcamera::MediaPipeline::configure | ( | CameraSensor * | sensor, |
| V4L2SubdeviceFormat * | format ) |
Configure the entities of this MediaPipeline.
Propagate formats through each of the entities of the Pipeline, validating that each one was not adjusted by the driver from the desired format.
| int libcamera::MediaPipeline::init | ( | MediaEntity * | source, |
| std::string_view | sink ) |
Find the path from source to sink.
Starting from a source entity, determine the shortest path to the target described by sink.
If sink can not be found, or a route from source to sink can not be achieved an error of -ENOLINK will be returned.
When successful, the MediaPipeline will internally store the representation of entities and links to describe the path between the two entities.
| int libcamera::MediaPipeline::initLinks | ( | ) |
Initialise and enable all links through the MediaPipeline.