Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

V4L2 decoder does not correctly implement VIDIOC_G_FMT and VIDIOC_S_FMT #888

@EwanRoycroft

Description

@EwanRoycroft

According to the V4L2 documentation, VIDIOC_G_FMT is exclusive to capture devices, and you can use this method with other drivers to get information about the output format; yet yami limits it to V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE.

The documentation also says of VIDIOC_S_FMT that:

"Drivers should not return an error code unless the type field is invalid,"

and that, after setting the format as requested:

"the VIDIOC_S_FMT ioctl returns the current format parameters as VIDIOC_G_FMT does."

I have found that this is not the case with yami. If certain fields are left empty, it will throw an error instead of filling them with the current values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions