mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-24 17:15:07 +03:00
v4l2: camera: Merge getStreamConfig() with open()
The V4L2CameraProxy always calls V4L2Camera::getStreamConfig() right after V4L2Camera::open(), and never afterwards. Simplify the code by returning the initial configuration from V4L2Camera::open() and removing V4L2Camera::getStreamConfig(). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
parent
852b9d0a76
commit
3bd1985545
3 changed files with 5 additions and 10 deletions
|
@ -37,11 +37,11 @@ public:
|
|||
V4L2Camera(std::shared_ptr<Camera> camera);
|
||||
~V4L2Camera();
|
||||
|
||||
int open();
|
||||
int open(StreamConfiguration *streamConfig);
|
||||
void close();
|
||||
void bind(int efd);
|
||||
void unbind();
|
||||
void getStreamConfig(StreamConfiguration *streamConfig);
|
||||
|
||||
std::vector<Buffer> completedBuffers();
|
||||
|
||||
int configure(StreamConfiguration *streamConfigOut,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue