Documentation
¶
Index ¶
- Constants
- Variables
- func CalcNaluType(nalu []byte) uint8
- func CalcNaluTypeReadable(nalu []byte) string
- func CalcSliceType(nalu []byte) uint8
- func CalcSliceTypeReadable(nalu []byte) string
- func CaptureAVC(w io.Writer, payload []byte) error
- func ParseAVCSeqHeader(payload []byte) (sps, pps []byte, err error)
Constants ¶
Variables ¶
View Source
var ErrAVC = errors.New("lal.avc: fxxk")
View Source
var NaluStartCode = []byte{0x0, 0x0, 0x0, 0x1}
View Source
var NaluUintTypeMapping = map[uint8]string{
1: "SLICE",
5: "IDR",
6: "SEI",
7: "SPS",
8: "PPS",
9: "AUD",
}
View Source
var SliceTypeMapping = map[uint8]string{
0: "P",
1: "B",
2: "I",
3: "SP",
4: "SI",
5: "P",
6: "B",
7: "I",
8: "SP",
9: "SI",
}
Functions ¶
func CalcNaluType ¶ added in v0.8.0
func CalcNaluTypeReadable ¶ added in v0.8.0
func CalcSliceTypeReadable ¶ added in v0.8.0
func CaptureAVC ¶
将rtmp avc数据转换成avc裸流 @param <payload> rtmp message的payload部分 或者 flv tag的payload部分
func ParseAVCSeqHeader ¶
TODO chef: 参考 hls session的代码,重构这个函数 从 rtmp avc sequence header 中解析 sps 和 pps @param <payload> rtmp message的payload部分 或者 flv tag的payload部分
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.