I just ran a simple test. Fetching formats of my webcam. Formats is always empty because v4l2_fmtdesc.type member must be set according to documentation of V4L2 API.
https://linuxtv.org/downloads/v4l-dvb-apis/vidioc-enum-fmt.html
Valid values are V4L2_BUF_TYPE_VIDEO_CAPTURE, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, V4L2_BUF_TYPE_VIDEO_OUTPUT, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE and V4L2_BUF_TYPE_VIDEO_OVERLAY.
Maybe I could inherit from Adapater and make an addition to set the type but the class is sealed.
I just ran a simple test. Fetching formats of my webcam. Formats is always empty because v4l2_fmtdesc.type member must be set according to documentation of V4L2 API.
https://linuxtv.org/downloads/v4l-dvb-apis/vidioc-enum-fmt.html
Valid values are V4L2_BUF_TYPE_VIDEO_CAPTURE, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, V4L2_BUF_TYPE_VIDEO_OUTPUT, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE and V4L2_BUF_TYPE_VIDEO_OVERLAY.
Maybe I could inherit from Adapater and make an addition to set the type but the class is sealed.