|
libcamera v0.7.0+1-4ceceb68
Supporting cameras in Linux since 2019
|
The MediaPipeline represents a set of entities that together form a data path for stream data. More...
Classes | |
| struct | Entity |
| A node composing the media pipeline. 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. | |
| const std::list< Entity > & | entities () const |
| Retrieve list of entities composing the media pipeline. | |
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.
|
inline |
Retrieve list of entities composing the media pipeline.
| 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.