libcamera
v0.0.0
Supporting cameras in Linux since 2019
|
Configuration parameters for a stream. More...
Public Member Functions | |
StreamConfiguration () | |
StreamConfiguration (const StreamFormats &formats) | |
Construct a configuration with stream formats. | |
Stream * | stream () const |
Retrieve the stream associated with the configuration. More... | |
void | setStream (Stream *stream) |
Associate a stream with a configuration. More... | |
const StreamFormats & | formats () const |
Retrieve advisory stream format information. More... | |
std::string | toString () const |
Assemble and return a string describing the configuration. More... | |
Public Attributes | |
PixelFormat | pixelFormat |
Stream pixel format. | |
Size | size |
Stream size in pixels. | |
unsigned int | stride |
Image stride for the stream, in bytes. More... | |
unsigned int | bufferCount |
Requested number of buffers to allocate for the stream. | |
Configuration parameters for a stream.
The StreamConfiguration structure models all information which can be configured for a single video stream.
libcamera::StreamConfiguration::StreamConfiguration | ( | ) |
|
inline |
Retrieve advisory stream format information.
This method retrieves information about the pixel formats and sizes supported by the stream configuration. The sizes are advisory and not all of them are guaranteed to be supported by the stream. Users shall always inspect the size in the stream configuration after calling CameraConfiguration::validate().
|
inline |
Associate a stream with a configuration.
This method is meant for the PipelineHandler::configure() method and shall not be called by applications.
[in] | stream | The stream |
|
inline |
Retrieve the stream associated with the configuration.
When a camera is configured with Camera::configure() Stream instances are associated with each stream configuration entry. This method retrieves the associated Stream, which remains valid until the next call to Camera::configure() or Camera::release().
std::string libcamera::StreamConfiguration::toString | ( | ) | const |
Assemble and return a string describing the configuration.
libcamera::StreamConfiguration::stride |
Image stride for the stream, in bytes.
The stride value reports the number of bytes between the beginning of successive lines in an image buffer for this stream. The value is valid after successfully configuring the camera with this configuration with a call to Camera::Configure().