Show camera name and pixel format in startup banner

This commit is contained in:
Milan Nikolic
2026-06-30 15:28:53 +02:00
parent 1a24bd6337
commit 87461e519e
7 changed files with 96 additions and 1 deletions

View File

@@ -215,6 +215,11 @@ func (c *Camera) Close() (err error) {
return
}
// Info returns the negotiated capture format.
func (c *Camera) Info() Info {
return Info{Format: fourccName(c.config.Format), Width: c.config.Width, Height: c.config.Height}
}
// Devices returns the available capture devices.
func Devices() ([]DeviceInfo, error) {
infos := v4l.FindDevices()