mjpeg

package module
v0.0.0-...-fc86e61 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

mjpeg stream to frame decoder

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockLen

type BlockLen struct {
	Len uint16
}

type BlockType

type BlockType struct {
	Type uint16
}

type HdrA

type HdrA struct {
	SOI        uint16
	APP0       uint16
	Length     uint16
	Ident      uint32
	Null       uint8
	JFIFv1     uint8
	JFIFv2     uint8
	Density    uint8
	XDensity   uint16
	YDensity   uint16
	XThumbnail uint8
	YThumbnail uint8
}

type Scanner

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

func Open

func Open(r io.Reader) *Scanner

func (*Scanner) Err

func (s *Scanner) Err() error

func (*Scanner) FrameImage

func (s *Scanner) FrameImage() (img image.Image, format string, error error)

func (*Scanner) FrameRaw

func (s *Scanner) FrameRaw() *bytes.Buffer

func (*Scanner) Scan

func (s *Scanner) Scan() bool

Jump to

Keyboard shortcuts

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