Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTooLarge reports if more frames cannot be added, // else the video file would get corrupted. ErrTooLarge = errors.New("video file too large") )
Functions ¶
This section is empty.
Types ¶
type AviWriter ¶
type AviWriter interface { // AddFrame adds a frame from a JPEG encoded data slice. AddFrame(jpegData []byte) error // Close finalizes and closes the avi file. Close() error }
AviWriter is an *.avi video writer. The video codec is MJPEG.
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder decode motion jpeg
func NewDecoder ¶
NewDecoder return new instance of Decoder
func NewDecoderFromResponse ¶
NewDecoderFromResponse return new instance of Decoder from http.Response
func NewDecoderFromURL ¶
NewDecoderFromURL return new instance of Decoder from response which specified URL
type Stream ¶
func NewStreamWithInterval ¶
Click to show internal directories.
Click to hide internal directories.