Versions in this module Expand all Collapse all v1 v1.1.0 Dec 29, 2021 v1.0.5 Dec 12, 2021 v1.0.4 Oct 6, 2021 v1.0.3 Aug 22, 2021 v1.0.2 Dec 13, 2020 v1.0.0 Nov 20, 2020 Changes in this version + const CtrlAutoBrightness — linux/amd64 + const CtrlAutoGain — linux/amd64 + const CtrlAutoHue — linux/amd64 + const CtrlAutoWhiteBalance — linux/amd64 + const CtrlBacklightCompensation — linux/amd64 + const CtrlBrightness — linux/amd64 + const CtrlContrast — linux/amd64 + const CtrlDoWhiteBalance — linux/amd64 + const CtrlExposure — linux/amd64 + const CtrlGain — linux/amd64 + const CtrlGamma — linux/amd64 + const CtrlHFlip — linux/amd64 + const CtrlHue — linux/amd64 + const CtrlPowerLineFreq — linux/amd64 + const CtrlSaturation — linux/amd64 + const CtrlSharpness — linux/amd64 + const CtrlVFlip — linux/amd64 + const CtrlWhiteBalance — linux/amd64 + const ErrBufferGone — linux/amd64 + const ErrUnsupported — linux/amd64 + const ErrWrongDevice — linux/amd64 + const PowerLineFreq50Hz — linux/amd64 + const PowerLineFreq60Hz — linux/amd64 + const PowerLineFreqAuto — linux/amd64 + const PowerLineFreqDisabled — linux/amd64 + type Buffer struct — linux/amd64 + func (b *Buffer) Len() int + func (b *Buffer) Read(dst []byte) (int, error) + func (b *Buffer) ReadAt(dst []byte, offset int64) (int, error) + func (b *Buffer) ReadByte() (byte, error) + func (b *Buffer) Seek(offset int64, whence int) (int64, error) + func (b *Buffer) SeqNum() uint32 + func (b *Buffer) Size() int64 + type BufferInfo struct — linux/amd64 + BufferSize int + ImageStride int + type ControlInfo struct — linux/amd64 + CID uint32 + Default int32 + Max int32 + Min int32 + Name string + Options []struct{ ... } + Step int32 + Type string + type Device struct — linux/amd64 + func Open(path string) (*Device, error) + func (d *Device) BufferInfo() (BufferInfo, error) + func (d *Device) Capture() (*Buffer, error) + func (d *Device) Close() + func (d *Device) ControlInfo(cid uint32) (ControlInfo, error) + func (d *Device) DeviceInfo() (DeviceInfo, error) + func (d *Device) GetConfig() (DeviceConfig, error) + func (d *Device) GetControl(cid uint32) (int32, error) + func (d *Device) ListConfigs() ([]DeviceConfig, error) + func (d *Device) ListControls() ([]ControlInfo, error) + func (d *Device) SetConfig(cfg DeviceConfig) error + func (d *Device) SetControl(cid uint32, value int32) error + func (d *Device) TurnOff() + func (d *Device) TurnOn() error + type DeviceConfig struct — linux/amd64 + FPS Frac + Format uint32 + Height int + Width int + type DeviceInfo struct — linux/amd64 + BusInfo string + Camera bool + DeviceName string + DriverName string + DriverVersion [3]int + Path string + func FindDevices() []DeviceInfo + type Error string — linux/amd64 + func (e Error) Error() string + type Frac struct — linux/amd64 + D uint32 + N uint32 + func (f Frac) Cmp(g Frac) int + func (f Frac) Reduce() Frac