Versions in this module Expand all Collapse all v0 v0.0.0 Sep 29, 2020 Changes in this version + const NALU_ANNEXB + const NALU_AUD + const NALU_AVCC + const NALU_PPS + const NALU_RAW + const NALU_SEI + const NALU_SPS + const SLICE_B + const SLICE_I + const SLICE_P + var AUDBytes = []byte + var ErrDecconfInvalid = fmt.Errorf("h264parser: AVCDecoderConfRecord invalid") + var StartCodeBytes = []byte + func CheckNALUsType(b []byte) (typ int) + func IsDataNALU(b []byte) bool + func SplitNALUs(b []byte) (nalus [][]byte, typ int) + type AVCDecoderConfRecord struct + AVCLevelIndication uint8 + AVCProfileIndication uint8 + LengthSizeMinusOne uint8 + PPS [][]byte + ProfileCompatibility uint8 + SPS [][]byte + func (self *AVCDecoderConfRecord) Unmarshal(b []byte) (n int, err error) + func (self AVCDecoderConfRecord) Len() (n int) + func (self AVCDecoderConfRecord) Marshal(b []byte) (n int) + type CodecData struct + Record []byte + RecordInfo AVCDecoderConfRecord + SPSInfo SPSInfo + func NewCodecDataFromAVCDecoderConfRecord(record []byte) (self CodecData, err error) + func NewCodecDataFromSPSAndPPS(sps, pps []byte) (self CodecData, err error) + func (self CodecData) AVCDecoderConfRecordBytes() []byte + func (self CodecData) Height() int + func (self CodecData) PPS() []byte + func (self CodecData) SPS() []byte + func (self CodecData) Type() av.CodecType + func (self CodecData) Width() int + type SPSInfo struct + CropBottom uint + CropLeft uint + CropRight uint + CropTop uint + Height uint + LevelIdc uint + MbHeight uint + MbWidth uint + ProfileIdc uint + Width uint + func ParseSPS(data []byte) (self SPSInfo, err error) + type SliceType uint + func ParseSliceHeaderFromNALU(packet []byte) (sliceType SliceType, err error) + func (self SliceType) String() string