Re: [PATCH] output human readable form of the .status field from VIDIOC_ENUMINPUT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> The attach patch modifies v4l2-ctl -I to also output signal status as
> detected by the driver/hardware. This info is available in the status
> field of the data returned by VIDIOC_ENUMINPUT which v4l2-ctl -I
> already calls. The strings are copied from the v4l2 api specification
> and could perhaps be modified a bit to fit the application.
>
> Best regards
>
> Sigmund Augdal
>

Hi Sigmund,

This doesn't work right: the status field is a bitmask, so multiple bits
can be set at the same time. So a switch is not the right choice for that.
Look at some of the other functions to print bitmasks in v4l2-ctl.cpp for
ideas on how to implement this properly.

But it will be nice to have this in v4l2-ctl!

Regards,

      Hans

-- 
Hans Verkuil - video4linux developer - sponsored by TANDBERG Telecom

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux