summaryrefslogtreecommitdiff
path: root/src/libcamera/include/v4l2_videodevice.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-13 03:38:00 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-10 23:58:34 +0300
commitcd6addc31b72059dbbb1319afeebbc4d0908c064 (patch)
treecc7340ed0aaed14440b09d0b8246be8256873685 /src/libcamera/include/v4l2_videodevice.h
parent972bb30c4b2fdd50f8fc02683130fd45b0d793f6 (diff)
libcamera: v4l2_videodevice: Support filtering formats by media bus code
Add support for the recent V4L2 extension to VIDIOC_ENUM_FMT that allows filtering pixel formats by media bus codes. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/libcamera/include/v4l2_videodevice.h')
-rw-r--r--src/libcamera/include/v4l2_videodevice.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcamera/include/v4l2_videodevice.h b/src/libcamera/include/v4l2_videodevice.h
index 982fee6b..94565b97 100644
--- a/src/libcamera/include/v4l2_videodevice.h
+++ b/src/libcamera/include/v4l2_videodevice.h
@@ -187,7 +187,7 @@ public:
int getFormat(V4L2DeviceFormat *format);
int setFormat(V4L2DeviceFormat *format);
- std::map<V4L2PixelFormat, std::vector<SizeRange>> formats();
+ std::map<V4L2PixelFormat, std::vector<SizeRange>> formats(uint32_t code = 0);
int setSelection(unsigned int target, Rectangle *rect);
@@ -225,7 +225,7 @@ private:
int getFormatSingleplane(V4L2DeviceFormat *format);
int setFormatSingleplane(V4L2DeviceFormat *format);
- std::vector<V4L2PixelFormat> enumPixelformats();
+ std::vector<V4L2PixelFormat> enumPixelformats(uint32_t code);
std::vector<SizeRange> enumSizes(V4L2PixelFormat pixelFormat);
int requestBuffers(unsigned int count, enum v4l2_memory memoryType);