libcamera: v4l2_videodevice: Update to the new kernel metadata API
With support for metadata in the streams API, the v4l2_meta_format structure has been extended with width, height and bytesperline fields. Support them in the V4L2VideoDevice getFormat() and setFormat() functions is the video device is meta capture device and if the pixel format is one of the generic line-based metadata formats. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Jacopo Mondi
parent
accee0fe1e
commit
99b54c2c55
@@ -49,6 +49,8 @@ public:
|
||||
static const std::vector<V4L2PixelFormat> &
|
||||
fromPixelFormat(const PixelFormat &pixelFormat);
|
||||
|
||||
bool isGenericLineBasedMetadata() const;
|
||||
|
||||
private:
|
||||
uint32_t fourcc_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user