Documentation ¶
Index ¶
- Constants
- func AudioCodecHandler(h *avutil.RegisterHandler)
- func HasDecoder(name string) bool
- func HasEncoder(name string) bool
- func SetLogLevel(level int)
- type AudioDecoder
- type AudioEncoder
- 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
- type VideoDecoder
- func (self *VideoDecoder) Decode(pkt []byte) (img *VideoFrame, err error)
- func (self *VideoDecoder) DecodeNewApi(pktArray []av.Packet) (img *VideoFrame, err error)
- func (self *VideoDecoder) DecodeSingle(pkt []byte) (img *VideoFrame, err error)
- func (self *VideoDecoder) DecoderAppendPkt(pkt []byte) (err error)
- func (self *VideoDecoder) DecoderReceiveFrame() (img *VideoFrame, err error)
- func (self *VideoDecoder) Free()
- func (self *VideoDecoder) Setup() (err error)
- type VideoFrame
Constants ¶
View Source
const ( QUIET = int(C.AV_LOG_QUIET) PANIC = int(C.AV_LOG_PANIC) FATAL = int(C.AV_LOG_FATAL) ERROR = int(C.AV_LOG_ERROR) WARNING = int(C.AV_LOG_WARNING) INFO = int(C.AV_LOG_INFO) VERBOSE = int(C.AV_LOG_VERBOSE) DEBUG = int(C.AV_LOG_DEBUG) TRACE = int(C.AV_LOG_TRACE) )
Variables ¶
This section is empty.
Functions ¶
func AudioCodecHandler ¶
func AudioCodecHandler(h *avutil.RegisterHandler)
func HasDecoder ¶
func HasEncoder ¶
func SetLogLevel ¶
func SetLogLevel(level int)
Types ¶
type AudioDecoder ¶
type AudioDecoder struct { ChannelLayout av.ChannelLayout SampleFormat av.SampleFormat SampleRate int Extradata []byte // contains filtered or unexported fields }
func NewAudioDecoder ¶
func NewAudioDecoder(codec av.AudioCodecData) (dec *AudioDecoder, err error)
func (*AudioDecoder) Close ¶
func (self *AudioDecoder) Close()
func (*AudioDecoder) Decode ¶
func (self *AudioDecoder) Decode(pkt []byte) (gotframe bool, frame av.AudioFrame, err error)
func (*AudioDecoder) Setup ¶
func (self *AudioDecoder) Setup() (err error)
type AudioEncoder ¶
type AudioEncoder struct { SampleRate int Bitrate int ChannelLayout av.ChannelLayout SampleFormat av.SampleFormat FrameSampleCount int // contains filtered or unexported fields }
func NewAudioEncoderByCodecType ¶
func NewAudioEncoderByCodecType(typ av.CodecType) (enc *AudioEncoder, err error)
func NewAudioEncoderByName ¶
func NewAudioEncoderByName(name string) (enc *AudioEncoder, err error)
func (*AudioEncoder) Close ¶
func (self *AudioEncoder) Close()
func (*AudioEncoder) CodecData ¶
func (self *AudioEncoder) CodecData() (codec av.AudioCodecData, err error)
func (*AudioEncoder) Encode ¶
func (self *AudioEncoder) Encode(frame av.AudioFrame) (pkts [][]byte, err error)
func (*AudioEncoder) GetOption ¶
func (self *AudioEncoder) GetOption(key string, val interface{}) (err error)
func (*AudioEncoder) SetBitrate ¶
func (self *AudioEncoder) SetBitrate(bitrate int) (err error)
func (*AudioEncoder) SetChannelLayout ¶
func (self *AudioEncoder) SetChannelLayout(ch av.ChannelLayout) (err error)
func (*AudioEncoder) SetOption ¶
func (self *AudioEncoder) SetOption(key string, val interface{}) (err error)
func (*AudioEncoder) SetSampleFormat ¶
func (self *AudioEncoder) SetSampleFormat(fmt av.SampleFormat) (err error)
func (*AudioEncoder) SetSampleRate ¶
func (self *AudioEncoder) SetSampleRate(rate int) (err error)
func (*AudioEncoder) Setup ¶
func (self *AudioEncoder) Setup() (err error)
type Resampler ¶
type Resampler struct { OutSampleFormat av.SampleFormat OutChannelLayout av.ChannelLayout OutSampleRate int // contains filtered or unexported fields }
func (*Resampler) Resample ¶
func (self *Resampler) Resample(in av.AudioFrame) (out av.AudioFrame, err error)
type VideoDecoder ¶
type VideoDecoder struct { Extradata []byte // contains filtered or unexported fields }
func NewVideoDecoder ¶
func NewVideoDecoder(stream av.CodecData) (dec *VideoDecoder, err error)
func (*VideoDecoder) Decode ¶
func (self *VideoDecoder) Decode(pkt []byte) (img *VideoFrame, err error)
func (*VideoDecoder) DecodeNewApi ¶
func (self *VideoDecoder) DecodeNewApi(pktArray []av.Packet) (img *VideoFrame, err error)
func (*VideoDecoder) DecodeSingle ¶
func (self *VideoDecoder) DecodeSingle(pkt []byte) (img *VideoFrame, err error)
func (*VideoDecoder) DecoderAppendPkt ¶
func (self *VideoDecoder) DecoderAppendPkt(pkt []byte) (err error)
func (*VideoDecoder) DecoderReceiveFrame ¶
func (self *VideoDecoder) DecoderReceiveFrame() (img *VideoFrame, err error)
func (*VideoDecoder) Free ¶
func (self *VideoDecoder) Free()
func (*VideoDecoder) Setup ¶
func (self *VideoDecoder) Setup() (err error)
type VideoFrame ¶
func (*VideoFrame) Free ¶
func (self *VideoFrame) Free()
Click to show internal directories.
Click to hide internal directories.