Documentation ¶
Index ¶
- 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
- 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
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertAVCCToAnnexB ¶ added in v0.20.2
ConvertAVCCToAnnexB length -> 00 00 00 01
func ConvertAVCCToAnnexBData ¶ added in v0.20.2
ConvertAVCCToAnnexBData length -> 00 00 00 01
func ConvertAnnexBToAVCC ¶ added in v0.20.2
ConvertAnnexBToAVCC 00 00 00 01 -> length
func ConvertAnnexBToAVCCData ¶ added in v0.20.2
ConvertAnnexBToAVCCData 00 00 00 01 -> length
func EmitNALUData ¶ added in v0.20.2
func EmitNALUData(data []byte, withStartCode NALUFormatType, emit func(data []byte))
func EmitNALUH264Data ¶ added in v0.20.2
func EmitNALUH264Reader ¶
func EmitNALUH264Reader(r io.Reader, typ NALUFormatType, withStartCode NALUFormatType, emit func(t h264.NALUType, data []byte)) error
func EmitNALUH265Data ¶ added in v0.20.5
func EmitNALUH265Reader ¶
func EmitNALUH265Reader(r io.Reader, typ NALUFormatType, withStartCode NALUFormatType, emit func(t h265.NALUType, data []byte)) error
func EmitNALUReaderAVCC ¶ added in v0.20.2
func EmitNALUReaderAVCC(r io.Reader, withStartCode NALUFormatType, emit func(data []byte)) error
EmitNALUReaderAVCC length
func EmitNALUReaderAnnexB ¶ added in v0.20.2
func EmitNALUReaderAnnexB(r io.Reader, withStartCode NALUFormatType, emit func(data []byte))
EmitNALUReaderAnnexB 00 00 00 01
func H264NALUType ¶
func H265NALUType ¶
func IsH264KeyFrame ¶
func IsH265KeyFrame ¶
func IsRTPKeyFrame ¶
IsRTPKeyFrame data: rtp.Packet.Payload github.com\pion\webrtc\v3@v3.1.43\pkg\media\h264writer
func NALUAVCCFormatValid ¶ added in v0.20.2
NALUAVCCFormatValid valid AVCC format data
Types ¶
type H264Param ¶ added in v0.20.1
type H264Param struct {
// contains filtered or unexported fields
}
func NewH264Param ¶ added in v0.20.1
func (*H264Param) GetCodecData ¶ added in v0.20.1
func (c *H264Param) GetCodecData() (h264parser.CodecData, error)
func (*H264Param) GetExtraData ¶ added in v0.20.1
func (*H264Param) GetFmtpString ¶ added in v0.20.1
type H265Param ¶ added in v0.20.1
type H265Param struct {
// contains filtered or unexported fields
}
func NewH265Param ¶ added in v0.20.1
func (*H265Param) GetCodecData ¶ added in v0.20.1
func (c *H265Param) GetCodecData() (h265parser.CodecData, error)
func (*H265Param) GetExtraData ¶ added in v0.20.1
func (*H265Param) GetFmtpString ¶ added in v0.20.1
func (*H265Param) GetVpsSpsPps ¶ added in v0.20.4
type NALUFormatType ¶ added in v0.20.2
type NALUFormatType int
const ( NALUFormatNo NALUFormatType = 0 NALUFormatAVCC NALUFormatType = 1 // length NALUFormatAnnexB NALUFormatType = 2 // 00 00 00 01 / 00 00 01 )
func GetNALUFormatType ¶ added in v0.20.2
func GetNALUFormatType(data []byte) (int, NALUFormatType)
Click to show internal directories.
Click to hide internal directories.