mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-24 00:55:07 +03:00
libcamera: stream: add initial StreamConfiguration structure
Add an initial StreamConfiguration implementation to hold configuration data for a single stream of a Camera. In its current form not many configuration parameters are supported but it's expected the number of options will grow over time. At this stage the pixel format is represented as an unsigned int to allow for easy mapping to the V4L2 API. This might be subject to change in the future as we finalize how libcamera shall represent pixel formats. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
50e184d3f1
commit
51d442d5a1
2 changed files with 32 additions and 0 deletions
|
@ -13,6 +13,12 @@ class Stream final
|
|||
{
|
||||
};
|
||||
|
||||
struct StreamConfiguration {
|
||||
unsigned int width;
|
||||
unsigned int height;
|
||||
unsigned int pixelFormat;
|
||||
};
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
||||
#endif /* __LIBCAMERA_STREAM_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue