diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2020-01-07 17:47:09 +0100 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2020-01-08 11:05:39 +0100 |
commit | fce110c6d961c3bb645289184c59d9443d56e224 (patch) | |
tree | 73b68b2081f9aabce910f880d36fac926d637b17 /src/v4l2/v4l2_camera_proxy.h | |
parent | 769ca0a5503ce99fd9687aa3a3a96eea6242116c (diff) |
v4l2: camera_proxy: Break out try_fmt
Calling vidioc_s_fmt() calls vidioc_try_fmt() duplicating prinouts.
Breakout try format procedure and call it from both functions.
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/v4l2/v4l2_camera_proxy.h')
-rw-r--r-- | src/v4l2/v4l2_camera_proxy.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/v4l2/v4l2_camera_proxy.h b/src/v4l2/v4l2_camera_proxy.h index 3d702084..b59d19d7 100644 --- a/src/v4l2/v4l2_camera_proxy.h +++ b/src/v4l2/v4l2_camera_proxy.h @@ -39,6 +39,7 @@ private: void setFmtFromConfig(StreamConfiguration &streamConfig); unsigned int calculateSizeImage(StreamConfiguration &streamConfig); void querycap(std::shared_ptr<Camera> camera); + void tryFormat(struct v4l2_format *arg); void updateBuffers(); int freeBuffers(); |