mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 08:35:07 +03:00
libcamera: stream: Add stream configuration to the stream object
Add a cache of the active stream configuration to the stream object. This cache is to be updated from the Camera object and can be accessed read only from both the application and pipeline handlers. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
1b7051b492
commit
1d7b6297f2
2 changed files with 51 additions and 37 deletions
|
@ -11,15 +11,7 @@
|
|||
|
||||
namespace libcamera {
|
||||
|
||||
class Stream final
|
||||
{
|
||||
public:
|
||||
Stream();
|
||||
BufferPool &bufferPool() { return bufferPool_; }
|
||||
|
||||
private:
|
||||
BufferPool bufferPool_;
|
||||
};
|
||||
class Camera;
|
||||
|
||||
struct StreamConfiguration {
|
||||
unsigned int width;
|
||||
|
@ -29,6 +21,22 @@ struct StreamConfiguration {
|
|||
unsigned int bufferCount;
|
||||
};
|
||||
|
||||
class Stream final
|
||||
{
|
||||
public:
|
||||
Stream();
|
||||
BufferPool &bufferPool() { return bufferPool_; }
|
||||
const StreamConfiguration &configuration() const { return configuration_; }
|
||||
|
||||
private:
|
||||
friend Camera;
|
||||
|
||||
BufferPool bufferPool_;
|
||||
StreamConfiguration configuration_;
|
||||
};
|
||||
|
||||
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
||||
#endif /* __LIBCAMERA_STREAM_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue