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 ¶ added in v0.15.0
Types ¶
type AControl ¶ added in v0.17.0
type AControl struct {
Value string
}
func ParseAControl ¶ added in v0.17.0
type AFmtPBase ¶
type LogicContext ¶ added in v0.17.0
type LogicContext struct { AudioClockRate int VideoClockRate int ASC []byte VPS []byte SPS []byte PPS []byte // contains filtered or unexported fields }
func ParseSDP2LogicContext ¶ added in v0.17.0
func ParseSDP2LogicContext(b []byte) (LogicContext, error)
func (*LogicContext) GetAudioPayloadTypeBase ¶ added in v0.19.0
func (lc *LogicContext) GetAudioPayloadTypeBase() base.AVPacketPT
func (*LogicContext) GetVideoPayloadTypeBase ¶ added in v0.19.0
func (lc *LogicContext) GetVideoPayloadTypeBase() base.AVPacketPT
func (*LogicContext) HasAudioAControl ¶ added in v0.19.0
func (lc *LogicContext) HasAudioAControl() bool
func (*LogicContext) HasVideoAControl ¶ added in v0.19.0
func (lc *LogicContext) HasVideoAControl() bool
func (*LogicContext) IsAudioPayloadTypeOrigin ¶ added in v0.19.0
func (lc *LogicContext) IsAudioPayloadTypeOrigin(t int) bool
func (*LogicContext) IsAudioURI ¶ added in v0.19.0
func (lc *LogicContext) IsAudioURI(uri string) bool
func (*LogicContext) IsAudioUnpackable ¶ added in v0.19.0
func (lc *LogicContext) IsAudioUnpackable() bool
func (*LogicContext) IsPayloadTypeOrigin ¶ added in v0.19.0
func (lc *LogicContext) IsPayloadTypeOrigin(t int) bool
func (*LogicContext) IsVideoPayloadTypeOrigin ¶ added in v0.19.0
func (lc *LogicContext) IsVideoPayloadTypeOrigin(t int) bool
func (*LogicContext) IsVideoURI ¶ added in v0.19.0
func (lc *LogicContext) IsVideoURI(uri string) bool
func (*LogicContext) IsVideoUnpackable ¶ added in v0.19.0
func (lc *LogicContext) IsVideoUnpackable() bool
func (*LogicContext) MakeAudioSetupURI ¶ added in v0.19.0
func (lc *LogicContext) MakeAudioSetupURI(uri string) string
func (*LogicContext) MakeVideoSetupURI ¶ added in v0.19.0
func (lc *LogicContext) MakeVideoSetupURI(uri string) string
type RawContext ¶ added in v0.17.0
type RawContext struct {
MediaDescList []MediaDesc
}
func ParseSDP2RawContext ¶ added in v0.17.0
func ParseSDP2RawContext(b []byte) (RawContext, error)
例子见单元测试
Click to show internal directories.
Click to hide internal directories.