video

package
v0.0.0-...-8f992f7 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Display

func Display(ctx context.Context, videoChan <-chan []byte) error

Display displays the video using gocv by consuming the channel

Types

type Converter

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

Converter converts raw drone video data using ffmpeg

func NewConverter

func NewConverter() (*Converter, error)

NewConverter creates a new instance of Converter

func (Converter) Close

func (c Converter) Close() error

Close closes the reader and writer

func (Converter) Read

func (c Converter) Read(pkt []byte) (int, error)

Read reads data from pipe

func (Converter) Start

func (c Converter) Start(ctx context.Context) (<-chan []byte, error)

Start starts the conversion by reading from piped data

func (Converter) Write

func (c Converter) Write(pkt []byte) (int, error)

Write writes data to pipe

Jump to

Keyboard shortcuts

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