Versions in this module Expand all Collapse all v0 v0.0.8 Apr 1, 2019 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 PixelFormatAV2FF(pixelFormat av.PixelFormat) (ffpixelfmt int32) + func PixelFormatFF2AV(ffpixelfmt int32) (pixelFormat av.PixelFormat) + 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 FramerateConverter struct + OutFpsDen int + OutFpsNum int + OutHeight int + OutPixelFormat av.PixelFormat + OutWidth int + func (self *FramerateConverter) AddFilter(prevFilter *C.AVFilterContext, nextFilter *C.AVFilterContext, name string, ...) (err error) + func (self *FramerateConverter) Close() + func (self *FramerateConverter) ConfigureVideoFilters() (err error) + func (self *FramerateConverter) ConvertFramerate(in *VideoFrame) (out []*VideoFrame, err error) + func (self *FramerateConverter) CreateFilter(filterPtr **C.AVFilterContext, filterType string, filterName string, ...) int + func (self *FramerateConverter) FreeFirstOutputImage() + func (self *FramerateConverter) FreeOutputImages() + 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 (dec *VideoDecoder) Close() + func (dec VideoDecoder) GetFramerate() (num, den int) + func (self *VideoDecoder) Decode(pkt []byte) (img *VideoFrame, err error) + func (self *VideoDecoder) Setup() (err error) + type VideoEncoder struct + Bitrate int + func NewVideoEncoderByCodecType(typ av.CodecType) (enc *VideoEncoder, err error) + func NewVideoEncoderByName(name string) (enc *VideoEncoder, err error) + func (enc *VideoEncoder) Close() + func (enc *VideoEncoder) CodecData() (codec av.VideoCodecData, err error) + func (enc *VideoEncoder) Encode(img *VideoFrame) (pkts []av.Packet, err error) + func (enc *VideoEncoder) GetOption(key string, val interface{}) (err error) + func (enc *VideoEncoder) SetBitrate(bitrate int) (err error) + func (enc *VideoEncoder) SetFramerate(num, den int) (err error) + func (enc *VideoEncoder) SetGopSize(gopSize int) (err error) + func (enc *VideoEncoder) SetOption(key string, val interface{}) (err error) + func (enc *VideoEncoder) SetPixelFormat(fmt av.PixelFormat) (err error) + func (enc *VideoEncoder) SetResolution(w, h int) (err error) + func (enc *VideoEncoder) Setup() (err error) + type VideoFrame struct + Framerate VideoFramerate + Image image.YCbCr + func (self *VideoFrame) Free() + func (v *VideoFrame) SetFramerate(num, den int) + func (v *VideoFrame) SetPixelFormat(format av.PixelFormat) + func (v *VideoFrame) SetResolution(w, h int) + func (v *VideoFrame) SetStride(yStride, cStride int) + func (v VideoFrame) GetDataPtr() (y, cb, cr *[]uint8) + func (v VideoFrame) GetFramerate() (num, den int) + func (v VideoFrame) GetPictureType() (picType h264parser.SliceType, err error) + func (v VideoFrame) GetPixelFormat() av.PixelFormat + func (v VideoFrame) GetResolution() (w, h int) + func (v VideoFrame) GetScanningMode() (mode av.ScanningMode) + func (v VideoFrame) GetStride() (yStride, cStride int) + func (v VideoFrame) Height() int + func (v VideoFrame) Width() int + type VideoFramerate struct + Den int + Num int + type VideoScaler struct + OutCStride int + OutHeight int + OutPixelFormat av.PixelFormat + OutWidth int + OutYStride int + func (self *VideoScaler) Close() + func (self *VideoScaler) FreeOutputImage() + func (self *VideoScaler) VideoScale(src *VideoFrame) (dst *VideoFrame, err error)