mirror of
https://github.com/gen2brain/cam2ip.git
synced 2026-07-27 07:15:06 +00:00
Show camera name and pixel format in startup banner
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user