joy4: github.com/nareix/joy4/av/avutil Index | Files

package avutil

import "github.com/nareix/joy4/av/avutil"

Index

Package Files

avutil.go

Variables

var DefaultHandlers = &Handlers{}

func CopyFile Uses

func CopyFile(dst av.Muxer, src av.Demuxer) (err error)

func CopyPackets Uses

func CopyPackets(dst av.PacketWriter, src av.PacketReader) (err error)

func Create Uses

func Create(url string) (muxer av.MuxCloser, err error)

func Open Uses

func Open(url string) (demuxer av.DemuxCloser, err error)

type HandlerDemuxer Uses

type HandlerDemuxer struct {
    av.Demuxer
    // contains filtered or unexported fields
}

func (*HandlerDemuxer) Close Uses

func (self *HandlerDemuxer) Close() error

type HandlerMuxer Uses

type HandlerMuxer struct {
    av.Muxer
    // contains filtered or unexported fields
}

func (*HandlerMuxer) Close Uses

func (self *HandlerMuxer) Close() (err error)

func (*HandlerMuxer) WriteHeader Uses

func (self *HandlerMuxer) WriteHeader(streams []av.CodecData) (err error)

func (*HandlerMuxer) WriteTrailer Uses

func (self *HandlerMuxer) WriteTrailer() (err error)

type Handlers Uses

type Handlers struct {
    // contains filtered or unexported fields
}

func (*Handlers) Add Uses

func (self *Handlers) Add(fn func(*RegisterHandler))

func (*Handlers) Create Uses

func (self *Handlers) Create(uri string) (muxer av.MuxCloser, err error)

func (*Handlers) FindCreate Uses

func (self *Handlers) FindCreate(uri string) (handler RegisterHandler, muxer av.MuxCloser, err error)

func (*Handlers) NewAudioDecoder Uses

func (self *Handlers) NewAudioDecoder(codec av.AudioCodecData) (dec av.AudioDecoder, err error)

func (*Handlers) NewAudioEncoder Uses

func (self *Handlers) NewAudioEncoder(typ av.CodecType) (enc av.AudioEncoder, err error)

func (*Handlers) Open Uses

func (self *Handlers) Open(uri string) (demuxer av.DemuxCloser, err error)

type RegisterHandler Uses

type RegisterHandler struct {
    Ext           string
    ReaderDemuxer func(io.Reader) av.Demuxer
    WriterMuxer   func(io.Writer) av.Muxer
    UrlMuxer      func(string) (bool, av.MuxCloser, error)
    UrlDemuxer    func(string) (bool, av.DemuxCloser, error)
    UrlReader     func(string) (bool, io.ReadCloser, error)
    Probe         func([]byte) bool
    AudioEncoder  func(av.CodecType) (av.AudioEncoder, error)
    AudioDecoder  func(av.AudioCodecData) (av.AudioDecoder, error)
    ServerDemuxer func(string) (bool, av.DemuxCloser, error)
    ServerMuxer   func(string) (bool, av.MuxCloser, error)
    CodecTypes    []av.CodecType
}

Package avutil imports 8 packages (graph) and is imported by 158 packages. Updated 2018-10-25. Refresh now. Tools for package owners.