Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NaluSei const NaluSei = 6 // NaluPps const NaluPps = 7 // NaluSps const NaluSps = 8 // NaluAud const NaluAud = 9 )
View Source
const ( // NaluRaw const NaluRaw = iota // NaluAvcc const NaluAvcc // NaluAnnexb const NaluAnnexb )
View Source
const ( // SliceP const SliceP = iota + 1 // SliceB const SliceB // SliceI const SliceI )
Variables ¶
View Source
var AUDBytes = []byte{0, 0, 0, 1, 0x9, 0xf0, 0, 0, 0, 1} // AUD
AUDBytes var
View Source
var ErrDecconfInvalid = fmt.Errorf("h264parser: AVCDecoderConfRecord invalid")
ErrDecconfInvalid var
View Source
var StartCodeBytes = []byte{0, 0, 1}
StartCodeBytes var
Functions ¶
Types ¶
type AVCDecoderConfRecord ¶
type AVCDecoderConfRecord struct { AVCProfileIndication uint8 ProfileCompatibility uint8 AVCLevelIndication uint8 LengthSizeMinusOne uint8 SPS [][]byte PPS [][]byte }
AVCDecoderConfRecord struct
func (AVCDecoderConfRecord) Marshal ¶
func (confRecord AVCDecoderConfRecord) Marshal(b []byte) (n int)
Marshal func
type CodecData ¶
type CodecData struct { Record []byte RecordInfo AVCDecoderConfRecord SPSInfo SPSInfo }
CodecData struct
func NewCodecDataFromAVCDecoderConfRecord ¶
NewCodecDataFromAVCDecoderConfRecord func
func NewCodecDataFromSPSAndPPS ¶
NewCodecDataFromSPSAndPPS func
func (CodecData) AVCDecoderConfRecordBytes ¶
AVCDecoderConfRecordBytes func
Click to show internal directories.
Click to hide internal directories.