video

package
v0.0.0-...-e766dbd Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	HandleVideo(img *RGB)
}

type RGB

type RGB struct {
	Pix    []uint8
	Stride int
	Rect   image.Rectangle
}

func NewRGB

func NewRGB(r image.Rectangle) *RGB

func (*RGB) At

func (im *RGB) At(x, y int) color.Color

func (*RGB) Bounds

func (im *RGB) Bounds() image.Rectangle

func (*RGB) ColorModel

func (im *RGB) ColorModel() color.Model

func (*RGB) PixOffset

func (im *RGB) PixOffset(x, y int) int

func (*RGB) Set

func (im *RGB) Set(x, y int, c color.Color)

type Video

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

func New

func New(logger *support.Logger) *Video

func (*Video) AddVideoHandler

func (v *Video) AddVideoHandler(videoHandler Handler) (int, error)

func (*Video) OnEventCallback

func (v *Video) OnEventCallback(event *unitybridge.DJIUnityEvent, data []byte, tag uint64)

func (*Video) RemoveVideoHandler

func (v *Video) RemoveVideoHandler(id int) error

func (*Video) Start

func (v *Video) Start() error

func (*Video) StartSDCardRecording

func (v *Video) StartSDCardRecording()

func (*Video) Stop

func (v *Video) Stop() error

func (*Video) StopSDCardRecording

func (v *Video) StopSDCardRecording()

Jump to

Keyboard shortcuts

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