libcamera: v4l2_videodevice: Add using statement for format map
Define a using statement for the format maps returned by V4L2Device::formats() and use it in all call sites. There is no functional change in this patch. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -168,6 +168,8 @@ public:
|
||||
class V4L2VideoDevice : public V4L2Device
|
||||
{
|
||||
public:
|
||||
using Formats = std::map<V4L2PixelFormat, std::vector<SizeRange>>;
|
||||
|
||||
explicit V4L2VideoDevice(const std::string &deviceNode);
|
||||
explicit V4L2VideoDevice(const MediaEntity *entity);
|
||||
V4L2VideoDevice(const V4L2VideoDevice &) = delete;
|
||||
@@ -188,7 +190,7 @@ public:
|
||||
int getFormat(V4L2DeviceFormat *format);
|
||||
int tryFormat(V4L2DeviceFormat *format);
|
||||
int setFormat(V4L2DeviceFormat *format);
|
||||
std::map<V4L2PixelFormat, std::vector<SizeRange>> formats(uint32_t code = 0);
|
||||
Formats formats(uint32_t code = 0);
|
||||
|
||||
int setSelection(unsigned int target, Rectangle *rect);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user