Documentation ¶
Index ¶
Constants ¶
View Source
const ( UDPTransfer int = 0 TCPTransferActive int = 1 TCPTransferPassive int = 2 LocalCache int = 3 )
View Source
const ( StreamTypeH264 = 0x1b StreamTypeH265 = 0x24 G711Mu = 0x90 G7221AUDIOTYPE = 0x92 G7231AUDIOTYPE = 0x93 G729AUDIOTYPE = 0x99 )
View Source
const ( StreamIDVideo = 0xe0 StreamIDAudio = 0xc0 )
View Source
const ( StartCodePS = 0x000001ba StartCodeSYS = 0x000001bb StartCodeMAP = 0x000001bc StartCodeVideo = 0x000001e0 StartCodeAudio = 0x000001c0 HaiKangCode = 0x000001bd MEPGProgramEndCode = 0x000001b9 )
View Source
const ( RTPHeaderLength int = 12 PSHeaderLength int = 14 SystemHeaderLength int = 18 MAPHeaderLength int = 24 PESHeaderLength int = 19 RtpLoadLength int = 1460 PESLoadLength int = 0xFFFF MAXFrameLen int = 1024 * 1024 * 2 )
... len limit
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DecPSPackage ¶
type DecPSPackage struct { VideoStreamType uint32 AudioStreamType uint32 buffer.RawBuffer VideoPayload []byte AudioPayload []byte // contains filtered or unexported fields }
https://github.com/videolan/vlc/blob/master/modules/demux/mpeg
func (*DecPSPackage) Read ¶
func (dec *DecPSPackage) Read(data []byte) error
data包含 接受到完整一帧数据后,所有的payload, 解析出去后是一阵完整的raw数据
Click to show internal directories.
Click to hide internal directories.