Skip to content

Video.Analog.Adapter.Formats is always empty because type member of v4l2_fmtdesc is never set to a valid value.  #2

@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions