Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEAGAIN = fmt.Errorf("EAGAIN")
Functions ¶
This section is empty.
Types ¶
type BGR ¶
type BGR struct { // Pix holds the image's pixels, in R, G, B, A order. The pixel at // (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*3]. Pix []uint8 // Stride is the Pix stride (in bytes) between vertically adjacent pixels. Stride int // Rect is the image's bounds. Rect image.Rectangle }
BGR is an in-memory image whose At method returns color.BGR values.
func (*BGR) ColorModel ¶
type FrameReaderDecoder ¶
type FrameReaderDecoder struct {
// contains filtered or unexported fields
}
func NewFrameReaderDecoder ¶
func NewFrameReaderDecoder(reader *transfers.FrameReader, fd descriptors.FormatDescriptor, fr descriptors.FrameDescriptor) (*FrameReaderDecoder, error)
type LibAVCodecDecoder ¶
type LibAVCodecDecoder struct {
// contains filtered or unexported fields
}
func NewH264Decoder ¶
func NewH264Decoder() (*LibAVCodecDecoder, error)
func NewVP8Decoder ¶
func NewVP8Decoder() (*LibAVCodecDecoder, error)
func (*LibAVCodecDecoder) Close ¶
func (d *LibAVCodecDecoder) Close() error
func (*LibAVCodecDecoder) WriteUSBFrame ¶
func (d *LibAVCodecDecoder) WriteUSBFrame(fr *transfers.Frame) error
type MJPEGDecoder ¶
type MJPEGDecoder struct {
// contains filtered or unexported fields
}
func NewMJPEGDecoder ¶
func NewMJPEGDecoder() (*MJPEGDecoder, error)
func (*MJPEGDecoder) Close ¶
func (d *MJPEGDecoder) Close() error
func (*MJPEGDecoder) WriteUSBFrame ¶
func (d *MJPEGDecoder) WriteUSBFrame(fr *transfers.Frame) error
type RGB ¶
type RGB struct { // Pix holds the image's pixels, in R, G, B, A order. The pixel at // (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*3]. Pix []uint8 // Stride is the Pix stride (in bytes) between vertically adjacent pixels. Stride int // Rect is the image's bounds. Rect image.Rectangle }
RGB is an in-memory image whose At method returns color.RGB values.
func (*RGB) ColorModel ¶
type UncompressedDecoder ¶
type UncompressedDecoder struct {
// contains filtered or unexported fields
}
func NewUncompressedDecoder ¶
func NewUncompressedDecoder(fourcc [4]byte, width, height int) (*UncompressedDecoder, error)
func (*UncompressedDecoder) Close ¶
func (d *UncompressedDecoder) Close() error
func (*UncompressedDecoder) ReadFrame ¶
func (d *UncompressedDecoder) ReadFrame() (image.Image, error)
func (*UncompressedDecoder) WriteUSBFrame ¶
func (d *UncompressedDecoder) WriteUSBFrame(fr *transfers.Frame) error
type VideoDecoder ¶
type VideoDecoder interface { ReadFrame() (image.Image, error) Write(pkt []byte) (int, error) WriteUSBFrame(fr *transfers.Frame) error Close() error }
func NewDescriptorDecoder ¶
func NewDescriptorDecoder(fd descriptors.FormatDescriptor, fr descriptors.FrameDescriptor) (VideoDecoder, error)
Click to show internal directories.
Click to hide internal directories.