Versions in this module Expand all Collapse all v0 v0.0.18 Jul 6, 2022 Changes in this version + const DEBUG + const ERROR + const FATAL + const INFO + const PANIC + const QUIET + const TRACE + const VERBOSE + const WARNING + func AudioCodecHandler(h *avutil.RegisterHandler) + func HasDecoder(name string) bool + func HasEncoder(name string) bool + func SetLogLevel(level int) + type AudioDecoder struct + ChannelLayout av.ChannelLayout + Extradata []byte + SampleFormat av.SampleFormat + SampleRate int + func NewAudioDecoder(codec av.AudioCodecData) (dec *AudioDecoder, err error) + func (self *AudioDecoder) Close() + func (self *AudioDecoder) Decode(pkt []byte) (gotframe bool, frame av.AudioFrame, err error) + func (self *AudioDecoder) Setup() (err error) + type AudioEncoder struct + Bitrate int + ChannelLayout av.ChannelLayout + FrameSampleCount int + SampleFormat av.SampleFormat + SampleRate int + func NewAudioEncoderByCodecType(typ av.CodecType) (enc *AudioEncoder, err error) + func NewAudioEncoderByName(name string) (enc *AudioEncoder, err error) + func (self *AudioEncoder) Close() + func (self *AudioEncoder) CodecData() (codec av.AudioCodecData, err error) + func (self *AudioEncoder) Encode(frame av.AudioFrame) (pkts [][]byte, err error) + func (self *AudioEncoder) GetOption(key string, val interface{}) (err error) + func (self *AudioEncoder) SetBitrate(bitrate int) (err error) + func (self *AudioEncoder) SetChannelLayout(ch av.ChannelLayout) (err error) + func (self *AudioEncoder) SetOption(key string, val interface{}) (err error) + func (self *AudioEncoder) SetSampleFormat(fmt av.SampleFormat) (err error) + func (self *AudioEncoder) SetSampleRate(rate int) (err error) + func (self *AudioEncoder) Setup() (err error) + type Resampler struct + OutChannelLayout av.ChannelLayout + OutSampleFormat av.SampleFormat + OutSampleRate int + func (self *Resampler) Close() + func (self *Resampler) Resample(in av.AudioFrame) (out av.AudioFrame, err error) + type VideoDecoder struct + Extradata []byte + func NewVideoDecoder(stream av.CodecData) (dec *VideoDecoder, err error) + func (self *VideoDecoder) Decode(pkt []byte) (img *VideoFrame, err error) + func (self *VideoDecoder) DecodeSingle(pkt []byte) (img *VideoFrame, err error) + func (self *VideoDecoder) Setup() (err error) + type VideoFrame struct + Image image.YCbCr + func (self *VideoFrame) Free()