29 StreamFormats(
const std::map<
PixelFormat, std::vector<SizeRange>> &formats);
37 std::map<PixelFormat, std::vector<SizeRange>> formats_;
64std::ostream &
operator<<(std::ostream &out,
const StreamConfiguration &cfg);
Camera device.
Definition camera.h:115
Describe a range of sizes.
Definition geometry.h:199
Describe a two-dimensional size.
Definition geometry.h:51
Video stream for a camera.
Definition stream.h:76
StreamConfiguration configuration_
The stream configuration.
Definition stream.h:85
Stream()
Construct a stream with default parameters.
Definition stream.cpp:478
const StreamConfiguration & configuration() const
Retrieve the active configuration of the stream.
Definition stream.h:80
Class and enums to represent color spaces.
Data structures related to geometric objects.
Top-level libcamera namespace.
Definition backtrace.h:17
StreamRole
Identify the role a stream is intended to play.
Definition stream.h:66
@ Viewfinder
Definition stream.h:70
@ Raw
Definition stream.h:67
@ StillCapture
Definition stream.h:68
@ VideoRecording
Definition stream.h:69
std::ostream & operator<<(std::ostream &out, const Point &p)
Insert a text representation of a Point into an output stream.
Definition geometry.cpp:91
Configuration parameters for a stream.
Definition stream.h:40
void setStream(Stream *stream)
Associate a stream with a configuration.
Definition stream.h:54
std::optional< ColorSpace > colorSpace
The ColorSpace for this stream.
Definition stream.h:51
StreamConfiguration()
Definition stream.cpp:282
const StreamFormats & formats() const
Retrieve advisory stream format information.
Definition stream.h:55
Stream * stream() const
Retrieve the stream associated with the configuration.
Definition stream.h:53
unsigned int bufferCount
Requested number of buffers to allocate for the stream.
Definition stream.h:49
unsigned int frameSize
Frame size for the stream, in bytes.
Definition stream.h:47
unsigned int stride
Image stride for the stream, in bytes.
Definition stream.h:46
PixelFormat pixelFormat
Stream pixel format.
Definition stream.h:44
std::string toString() const
Assemble and return a string describing the configuration.
Definition stream.cpp:393
Size size
Stream size in pixels.
Definition stream.h:45