Versions in this module Expand all Collapse all v0 v0.2.0 Nov 29, 2026 v0.1.0 Nov 29, 2026 Changes in this version + var ErrInvalid = errors.New("avi: invalid data") + var ErrUnsupported = errors.New("avi: unsupported") + type BitmapInfo struct + BitCount int + Compression string + Extra []byte + Height int + Width int + func ParseBitmapInfo(b []byte) (*BitmapInfo, error) + type File struct + Flags uint32 + Height int + MicroSecPerFrame uint32 + Streams []*Stream + TotalFrames uint32 + Width int + func Open(r io.ReaderAt, size int64) (*File, error) + func (f *File) Audio() *Stream + func (f *File) Video() *Stream + type Sample struct + Data []byte + Key bool + Offset int64 + Size int + Ticks int64 + type Stream struct + AspectX int + AspectY int + Audio *WaveFormat + Handler string + Length uint32 + Name string + Rate uint32 + SampleSize uint32 + Scale uint32 + Start uint32 + Type string + Video *BitmapInfo + func (s *Stream) Info(i int) Sample + func (s *Stream) Len() int + func (s *Stream) ReadSample(i int, buf []byte) (Sample, error) + func (s *Stream) Sample(i int) (Sample, error) + func (s *Stream) SampleData(i int, buf []byte) (data, config []byte, err error) + func (s *Stream) SampleTime(i int) (time.Duration, bool) + func (s *Stream) Samples() iter.Seq2[Sample, error] + func (s *Stream) Time(ticks int64) time.Duration + type WaveFormat struct + AvgBytesPerSec int + BitsPerSample int + BlockAlign int + Channels int + Extra []byte + SampleRate int + Tag uint16 + func ParseWaveFormat(b []byte) (*WaveFormat, error)