camera

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Camera

type Camera struct {
	// contains filtered or unexported fields
}

func GetCamera

func GetCamera() *Camera

func NewCamera

func NewCamera(option *CameraOption) *Camera

func (*Camera) Close

func (c *Camera) Close()

func (*Camera) DevelopPhotos

func (c *Camera) DevelopPhotos()

DevelopPhotos decoding the bin file, load the data

func (*Camera) GetCreateTime

func (c *Camera) GetCreateTime() int64

func (*Camera) IsActive

func (c *Camera) IsActive() bool

func (*Camera) TakePhotos

func (c *Camera) TakePhotos(p []storage.Photographer, needZip bool)

TakePhotos encoding to bin file, just like 'take photos'

type CameraOption

type CameraOption struct {
	Open             bool   `yaml:"Open"`
	IsZip            bool   `yaml:"IsZip"`
	FilePath         string `yaml:"FilePath"`
	SaveTickInterval uint   `yaml:"SaveTickInterval"`
}

func DefaultOption

func DefaultOption() *CameraOption

type MetaInfo

type MetaInfo struct {
	IsZip      bool
	CreateTime int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL