Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { Device string Width int Height int Format V4l2ImageFormat Model V4l2Model Channel V4l2Channel LoopBack string }
Options is the structure used to pass the arguments when opening a video4linux2 device.
type V4l2 ¶
type V4l2 struct {
// contains filtered or unexported fields
}
V4l2 is the representation of a video4linux2 device.
func (*V4l2) GetSetting ¶
func (v *V4l2) GetSetting(setting V4l2Setting) (int, error)
GetSetting gets the current value of a setting of a device.
func (*V4l2) SetSetting ¶
func (v *V4l2) SetSetting(setting V4l2Setting, value int) error
SetSetting adjusts a specific setting in the capture device.
type V4l2Channel ¶
type V4l2Channel int
const ( ChannelUnknown V4l2Channel = iota ChannelTuner ChannelComposite ChannelSVideo )
type V4l2ImageFormat ¶
type V4l2ImageFormat int
const ( ImageFormatUnknown V4l2ImageFormat = iota ImageFormatGray ImageFormatBGR24 ImageFormatYUV420 ImageFormatYUYV )
type V4l2Setting ¶
type V4l2Setting int
const ( SettingUnknown V4l2Setting = iota SettingBrightness SettingContrast SettingSaturation SettingHue )
func V4l2SettingFromInt ¶
func V4l2SettingFromInt(v uint32) V4l2Setting
Click to show internal directories.
Click to hide internal directories.