Versions in this module Expand all Collapse all v0 v0.2.0 Nov 29, 2026 Changes in this version + type Reader struct + func NewReader(r io.Reader) *Reader + func (r *Reader) Next() (*Picture, time.Duration, error) v0.1.0 Nov 29, 2026 Changes in this version + var ErrInvalid = errors.New("mpeg4: invalid data") + var ErrUnsupported = errors.New("mpeg4: unsupported") + type Decoder struct + func NewDecoder(fourcc string) *Decoder + func (d *Decoder) Decode(data []byte) ([]*Picture, error) + func (d *Decoder) Flush() []*Picture + type Picture struct + Cb []uint8 + Cr []uint8 + Height int + SARHeight int + SARWidth int + StrideC int + StrideY int + Width int + Y []uint8 + type Samples interface + Len func() int + SampleData func(i int, buf []byte) (data, config []byte, err error) + SampleTime func(i int) (pts time.Duration, key bool) + type Video struct + Decoder *Decoder + func NewVideo(s Samples, fourcc string) (*Video, error) + func (v *Video) Next() (*Picture, time.Duration, error) + func (v *Video) Seek(t time.Duration) error