libcamera  v0.3.2+116-83c5ad0f
Supporting cameras in Linux since 2019
Public Member Functions | Protected Attributes | Friends | List of all members
libcamera::Stream Class Reference

Video stream for a camera. More...

Collaboration diagram for libcamera::Stream:
Collaboration graph
[legend]

Public Member Functions

 Stream ()
 Construct a stream with default parameters.
 
const StreamConfigurationconfiguration () const
 Retrieve the active configuration of the stream. More...
 

Protected Attributes

StreamConfiguration configuration_
 The stream configuration. More...
 

Friends

class Camera
 

Detailed Description

Video stream for a camera.

The Stream class models all static information which are associated with a single video stream. Streams are exposed by the Camera object they belong to.

Cameras may supply more than one stream from the same video source. In such cases an application can inspect all available streams and select the ones that best fit its use case.

Todo:
Add capabilities to the stream API. Without this the Stream class only serves to reveal how many streams of unknown capabilities a camera supports. This in itself is productive as it allows applications to configure and capture from one or more streams even if they won't be able to select the optimal stream for the task.

Member Function Documentation

◆ configuration()

libcamera::Stream::configuration ( ) const
inline

Retrieve the active configuration of the stream.

Returns
The active configuration of the stream

Member Data Documentation

◆ configuration_

libcamera::Stream::configuration_
protected

The stream configuration.

The configuration for the stream is set by any successful call to Camera::configure() that includes the stream, and remains valid until the next call to Camera::configure() regardless of if it includes the stream.


The documentation for this class was generated from the following files: