Documentation ¶
Index ¶
- Constants
- Variables
- func ParseASC(a *AFmtPBase) ([]byte, error)
- func ParseSPSPPS(a *AFmtPBase) (sps, pps []byte, err error)
- func ParseVPSSPSPPS(a *AFmtPBase) (vps, sps, pps []byte, err error)
- type AControl
- type AFmtPBase
- type ARTPMap
- type LogicContext
- func (lc *LogicContext) GetAudioPayloadTypeBase() base.AVPacketPT
- func (lc *LogicContext) GetVideoPayloadTypeBase() base.AVPacketPT
- func (lc *LogicContext) HasAudioAControl() bool
- func (lc *LogicContext) HasVideoAControl() bool
- func (lc *LogicContext) IsAudioPayloadTypeOrigin(t int) bool
- func (lc *LogicContext) IsAudioURI(uri string) bool
- func (lc *LogicContext) IsAudioUnpackable() bool
- func (lc *LogicContext) IsPayloadTypeOrigin(t int) bool
- func (lc *LogicContext) IsVideoPayloadTypeOrigin(t int) bool
- func (lc *LogicContext) IsVideoURI(uri string) bool
- func (lc *LogicContext) IsVideoUnpackable() bool
- func (lc *LogicContext) MakeAudioSetupURI(uri string) string
- func (lc *LogicContext) MakeVideoSetupURI(uri string) string
- type M
- type MediaDesc
- type RawContext
Constants ¶
View Source
const ( ARTPMapEncodingNameH265 = "H265" ARTPMapEncodingNameH264 = "H264" ARTPMapEncodingNameAAC = "MPEG4-GENERIC" )
Variables ¶
View Source
var ErrSDP = errors.New("lal.sdp: fxxk")
Functions ¶
func ParseSPSPPS ¶
解析AVC/H264的sps,pps 例子见单元测试
func ParseVPSSPSPPS ¶
Types ¶
type AFmtPBase ¶
type LogicContext ¶
type LogicContext struct { AudioClockRate int VideoClockRate int ASC []byte VPS []byte SPS []byte PPS []byte // contains filtered or unexported fields }
func ParseSDP2LogicContext ¶
func ParseSDP2LogicContext(b []byte) (LogicContext, error)
func (*LogicContext) GetAudioPayloadTypeBase ¶
func (lc *LogicContext) GetAudioPayloadTypeBase() base.AVPacketPT
func (*LogicContext) GetVideoPayloadTypeBase ¶
func (lc *LogicContext) GetVideoPayloadTypeBase() base.AVPacketPT
func (*LogicContext) HasAudioAControl ¶
func (lc *LogicContext) HasAudioAControl() bool
func (*LogicContext) HasVideoAControl ¶
func (lc *LogicContext) HasVideoAControl() bool
func (*LogicContext) IsAudioPayloadTypeOrigin ¶
func (lc *LogicContext) IsAudioPayloadTypeOrigin(t int) bool
func (*LogicContext) IsAudioURI ¶
func (lc *LogicContext) IsAudioURI(uri string) bool
func (*LogicContext) IsAudioUnpackable ¶
func (lc *LogicContext) IsAudioUnpackable() bool
func (*LogicContext) IsPayloadTypeOrigin ¶
func (lc *LogicContext) IsPayloadTypeOrigin(t int) bool
func (*LogicContext) IsVideoPayloadTypeOrigin ¶
func (lc *LogicContext) IsVideoPayloadTypeOrigin(t int) bool
func (*LogicContext) IsVideoURI ¶
func (lc *LogicContext) IsVideoURI(uri string) bool
func (*LogicContext) IsVideoUnpackable ¶
func (lc *LogicContext) IsVideoUnpackable() bool
func (*LogicContext) MakeAudioSetupURI ¶
func (lc *LogicContext) MakeAudioSetupURI(uri string) string
func (*LogicContext) MakeVideoSetupURI ¶
func (lc *LogicContext) MakeVideoSetupURI(uri string) string
type RawContext ¶
type RawContext struct {
MediaDescList []MediaDesc
}
Click to show internal directories.
Click to hide internal directories.