mjpeg

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: MIT Imports: 13 Imported by: 21 modules, 23 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func (*Decoder) DecodeRaw added in v0.0.2

func (d *Decoder) DecodeRaw() ([]byte, error)

DecodeRaw do decoding raw bytes

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
⌂ 换网址