Documentation ¶
Index ¶
- func PixelFormatFromV4L2(v4l2PixFmt webcam.PixelFormat) camera.PixelFormat
- func PixelFormatToV4L2(pixFmt camera.PixelFormat) webcam.PixelFormat
- type Camera
- func (c *Camera) Close() error
- func (c *Camera) GetFormat() camera.Format
- func (c *Camera) GetFrame(ctx context.Context) (camera.Frame, error)
- func (c *Camera) ReleaseFrame(frame camera.Frame) error
- func (c *Camera) StartStreaming() error
- func (c *Camera) StopStreaming() error
- func (c *Camera) WaitForFrame(ctx context.Context) error
- type Frame
- type Platform
- func (Platform) ListCameras() ([]camera.DevicePath, error)
- func (Platform) ListFormats(devicePath string) (camera.Formats, error)
- func (Platform) OpenCamera(devicePath string, format camera.Format) (camera.Camera, error)
- func (Platform) OpenCameraCompressed(devicePath camera.DevicePath, format camera.Format, ...) (camera.CameraCompressed, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PixelFormatFromV4L2 ¶
func PixelFormatFromV4L2( v4l2PixFmt webcam.PixelFormat, ) camera.PixelFormat
func PixelFormatToV4L2 ¶
func PixelFormatToV4L2( pixFmt camera.PixelFormat, ) webcam.PixelFormat
Types ¶
type Platform ¶
type Platform struct{}
func NewPlatform ¶
func NewPlatform() Platform
func (Platform) ListCameras ¶
func (Platform) ListCameras() ([]camera.DevicePath, error)
func (Platform) ListFormats ¶
func (Platform) OpenCamera ¶
func (Platform) OpenCameraCompressed ¶
func (Platform) OpenCameraCompressed( devicePath camera.DevicePath, format camera.Format, compression camera.Compression, compressionQuality camera.CompressionQuality, ) (camera.CameraCompressed, error)
Click to show internal directories.
Click to hide internal directories.