Versions in this module Expand all Collapse all v0 v0.0.2 Apr 24, 2025 v0.0.1 Apr 24, 2025 Changes in this version + func ConvertAVCCToAnnexB(avccReader io.Reader, annexBWriter io.Writer) error + func ConvertAVCCToAnnexBData(data []byte) ([]byte, error) + func ConvertAnnexBToAVCC(annexbReader io.Reader, avccWriter io.Writer) error + func ConvertAnnexBToAVCCData(data []byte) ([]byte, error) + func EmitNALUData(data []byte, withStartCode NALUFormatType, emit func(data []byte)) + func EmitNALUH264Data(data []byte, withStartCode NALUFormatType, ...) error + func EmitNALUH264Reader(r io.Reader, typ NALUFormatType, withStartCode NALUFormatType, ...) error + func EmitNALUH265Data(data []byte, withStartCode NALUFormatType, ...) error + func EmitNALUH265Reader(r io.Reader, typ NALUFormatType, withStartCode NALUFormatType, ...) error + func EmitNALUReaderAVCC(r io.Reader, withStartCode NALUFormatType, emit func(data []byte)) error + func EmitNALUReaderAnnexB(r io.Reader, withStartCode NALUFormatType, emit func(data []byte)) + func H264NALUType(firstByte byte) h264.NALUType + func H265NALUType(firstByte byte) h265.NALUType + func IsH264KeyFrame(t h264.NALUType) bool + func IsH265KeyFrame(t h265.NALUType) bool + func IsRTPKeyFrame(data []byte) bool + func NALUAVCCFormatValid(data []byte) bool + type H264Param struct + func NewH264Param(sps []byte, pps []byte, packetMode ...int) *H264Param + func (c *H264Param) GetCodecData() (h264parser.CodecData, error) + func (c *H264Param) GetExtraData() ([]byte, error) + func (c *H264Param) GetFmtpString() string + func (c *H264Param) GetSpsPps() ([]byte, []byte) + func (c *H264Param) Load(fmtp string) + func (c *H264Param) ParseSPS() (h264parser.SPSInfo, error) + type H265Param struct + func NewH265Param(vps []byte, sps []byte, pps []byte) *H265Param + func (c *H265Param) GetCodecData() (h265parser.CodecData, error) + func (c *H265Param) GetExtraData() ([]byte, error) + func (c *H265Param) GetFmtpString() string + func (c *H265Param) GetVpsSpsPps() ([]byte, []byte, []byte) + func (c *H265Param) Load(fmtp string) + func (c *H265Param) ParseSPS() (h265parser.SPSInfo, error) + type NALUFormatType int + const NALUFormatAVCC + const NALUFormatAnnexB + const NALUFormatNo + func GetNALUFormatType(data []byte) (int, NALUFormatType)