Documentation ¶
Index ¶
Constants ¶
View Source
const ( NALU_SEI = 6 NALU_PPS = 7 NALU_SPS = 8 NALU_AUD = 9 )
View Source
const ( NALU_RAW = iota NALU_AVCC NALU_ANNEXB )
View Source
const ( SLICE_P = iota + 1 SLICE_B SLICE_I )
Variables ¶
View Source
var AUDBytes = []byte{0, 0, 0, 1, 0x9, 0xf0, 0, 0, 0, 1} // AUD
View Source
var ErrDecconfInvalid = fmt.Errorf("h264parser: AVCDecoderConfRecord invalid")
View Source
var StartCodeBytes = []byte{0, 0, 1}
Functions ¶
func CheckNALUsType ¶
func IsDataNALU ¶
func SplitNALUs ¶
Types ¶
type AVCDecoderConfRecord ¶
type AVCDecoderConfRecord struct { AVCProfileIndication uint8 ProfileCompatibility uint8 AVCLevelIndication uint8 LengthSizeMinusOne uint8 SPS [][]byte PPS [][]byte }
func (AVCDecoderConfRecord) Len ¶
func (self AVCDecoderConfRecord) Len() (n int)
func (AVCDecoderConfRecord) Marshal ¶
func (self AVCDecoderConfRecord) Marshal(b []byte) (n int)
type CodecData ¶
type CodecData struct { Record []byte RecordInfo AVCDecoderConfRecord SPSInfo SPSInfo }
func (CodecData) AVCDecoderConfRecordBytes ¶
Click to show internal directories.
Click to hide internal directories.