Versions in this module Expand all Collapse all v1 v1.0.0 Oct 6, 2022 Changes in this version + const StandardChannelCount + const TimeBase + type AudioFrame struct + func (frame *AudioFrame) Data() []byte + func (frame *AudioFrame) IndexCoded() int + func (frame *AudioFrame) IndexDisplay() int + func (frame *AudioFrame) PresentationOffset() (time.Duration, error) + type AudioStream struct + func (audio *AudioStream) ChannelCount() int + func (audio *AudioStream) Close() error + func (audio *AudioStream) FrameSize() int + func (audio *AudioStream) Open() error + func (audio *AudioStream) ReadAudioFrame() (*AudioFrame, bool, error) + func (audio *AudioStream) ReadFrame() (Frame, bool, error) + func (audio *AudioStream) SampleRate() int + func (stream *AudioStream) ApplyFilter(args string) error + func (stream *AudioStream) BitRate() int64 + func (stream *AudioStream) CodecLongName() string + func (stream *AudioStream) CodecName() string + func (stream *AudioStream) Duration() (time.Duration, error) + func (stream *AudioStream) Filter() string + func (stream *AudioStream) FrameCount() int64 + func (stream *AudioStream) FrameRate() (int, int) + func (stream *AudioStream) Index() int + func (stream *AudioStream) Opened() bool + func (stream *AudioStream) RemoveFilter() error + func (stream *AudioStream) Rewind(t time.Duration) error + func (stream *AudioStream) TimeBase() (int, int) + func (stream *AudioStream) Type() StreamType + type ErrorType int + const ErrorAgain + const ErrorEndOfFile + const ErrorInvalidValue + type Frame interface + Data func() []byte + PresentationOffset func() (time.Duration, error) + type InterpolationAlgorithm int + const InterpolationArea + const InterpolationBicubic + const InterpolationBicubicBilinear + const InterpolationBilinear + const InterpolationFastBilinear + const InterpolationGauss + const InterpolationLanczos + const InterpolationPoint + const InterpolationSinc + const InterpolationSpline + const InterpolationX + func (interpolationAlg InterpolationAlgorithm) String() string + type Media struct + func NewMedia(filename string) (*Media, error) + func (media *Media) AudioStreams() []*AudioStream + func (media *Media) Close() + func (media *Media) CloseDecode() error + func (media *Media) Duration() (time.Duration, error) + func (media *Media) FormatLongName() string + func (media *Media) FormatMIMEType() string + func (media *Media) FormatName() string + func (media *Media) OpenDecode() error + func (media *Media) ReadPacket() (*Packet, bool, error) + func (media *Media) StreamCount() int + func (media *Media) Streams() []Stream + func (media *Media) VideoStreams() []*VideoStream + type Packet struct + func (pkt *Packet) Data() []byte + func (pkt *Packet) Size() int + func (pkt *Packet) StreamIndex() int + func (pkt *Packet) Type() StreamType + type Stream interface + ApplyFilter func(string) error + BitRate func() int64 + Close func() error + CodecLongName func() string + CodecName func() string + Duration func() (time.Duration, error) + Filter func() string + FrameCount func() int64 + FrameRate func() (int, int) + Index func() int + Open func() error + ReadFrame func() (Frame, bool, error) + RemoveFilter func() error + Rewind func(time.Duration) error + TimeBase func() (int, int) + Type func() StreamType + type StreamType int + const StreamAudio + const StreamVideo + func (streamType StreamType) String() string + type VideoFrame struct + func (frame *VideoFrame) Data() []byte + func (frame *VideoFrame) Image() *image.RGBA + func (frame *VideoFrame) IndexCoded() int + func (frame *VideoFrame) IndexDisplay() int + func (frame *VideoFrame) PresentationOffset() (time.Duration, error) + type VideoPlay struct + AudioOn bool + BitDepth int32 + ChannelCount int32 + Filename string + FrameBufferSize int32 + FrameEvent uint32 + Height int32 + HwAccelFlags int32 + SampleBufferSize int32 + SampleRate beep.SampleRate + SpeakerSampleRate beep.SampleRate + Texture *sdl.Texture + Width int32 + func NewVideoPlayDefault(fileName string, frameEvent uint32, audioOn bool) *VideoPlay + func (vp *VideoPlay) ReadVideoAndAudio(media *Media) (<-chan *image.RGBA, <-chan [2]float64, chan error, error) + func (vp *VideoPlay) Resize(w int32, h int32) + func (vp *VideoPlay) Start(render *sdl.Renderer) error + func (vp *VideoPlay) Update() (string, error) + type VideoStream struct + func (stream *VideoStream) ApplyFilter(args string) error + func (stream *VideoStream) BitRate() int64 + func (stream *VideoStream) CodecLongName() string + func (stream *VideoStream) CodecName() string + func (stream *VideoStream) Duration() (time.Duration, error) + func (stream *VideoStream) Filter() string + func (stream *VideoStream) FrameCount() int64 + func (stream *VideoStream) FrameRate() (int, int) + func (stream *VideoStream) Index() int + func (stream *VideoStream) Opened() bool + func (stream *VideoStream) RemoveFilter() error + func (stream *VideoStream) Rewind(t time.Duration) error + func (stream *VideoStream) TimeBase() (int, int) + func (stream *VideoStream) Type() StreamType + func (video *VideoStream) AspectRatio() (int, int) + func (video *VideoStream) Close() error + func (video *VideoStream) Height() int + func (video *VideoStream) Open() error + func (video *VideoStream) OpenDecode(width, height int, alg InterpolationAlgorithm) error + func (video *VideoStream) ReadFrame() (Frame, bool, error) + func (video *VideoStream) ReadVideoFrame() (*VideoFrame, bool, error) + func (video *VideoStream) Width() int