libcamera: v4l2_device: Add META support in g/s_fmt
Add two operations to set and get format on devices implementing the V4L2 Metadata Interface, identified by the META_OUTPUT or META_CAPTURE capabilities. While at it, sort get/setFormat operations alphabetically and unify their style (eg. no empty line before ioctl). Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -150,12 +150,15 @@ protected:
|
||||
std::string logPrefix() const;
|
||||
|
||||
private:
|
||||
int getFormatSingleplane(V4L2DeviceFormat *format);
|
||||
int setFormatSingleplane(V4L2DeviceFormat *format);
|
||||
int getFormatMeta(V4L2DeviceFormat *format);
|
||||
int setFormatMeta(V4L2DeviceFormat *format);
|
||||
|
||||
int getFormatMultiplane(V4L2DeviceFormat *format);
|
||||
int setFormatMultiplane(V4L2DeviceFormat *format);
|
||||
|
||||
int getFormatSingleplane(V4L2DeviceFormat *format);
|
||||
int setFormatSingleplane(V4L2DeviceFormat *format);
|
||||
|
||||
int requestBuffers(unsigned int count);
|
||||
int createPlane(Buffer *buffer, unsigned int plane,
|
||||
unsigned int length);
|
||||
|
||||
Reference in New Issue
Block a user