mjpeg

package
v0.0.0-...-25e8c23 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

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

Decoder decode motion jpeg

func NewDecoder

func NewDecoder(r io.Reader, b string) *Decoder

NewDecoder return new instance of Decoder

func NewDecoderFromResponse

func NewDecoderFromResponse(res *http.Response) (*Decoder, error)

NewDecoderFromResponse return new instance of Decoder from http.Response

func NewDecoderFromURL

func NewDecoderFromURL(u string) (*Decoder, error)

NewDecoderFromURL return new instance of Decoder from response which specified URL

func (*Decoder) Decode

func (d *Decoder) Decode() (image.Image, error)

Decode do decoding

type Stream

type Stream struct {
	Interval time.Duration
	// contains filtered or unexported fields
}

func NewStream

func NewStream() *Stream

func NewStreamWithInterval

func NewStreamWithInterval(interval time.Duration) *Stream

func (*Stream) Close

func (s *Stream) Close() error

func (*Stream) Closed

func (s *Stream) Closed() bool

func (*Stream) Current

func (s *Stream) Current() []byte

func (*Stream) NWatch

func (s *Stream) NWatch() int

func (*Stream) ServeHTTP

func (s *Stream) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Stream) Update

func (s *Stream) Update(b []byte) error

Jump to

Keyboard shortcuts

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