Versions in this module Expand all Collapse all v1 v1.1.4 Apr 1, 2022 v1.1.3 Feb 3, 2022 v1.1.2 Feb 3, 2022 v1.1.1 Feb 3, 2022 v1.1.0 Jan 28, 2022 v1.0.0 Jan 28, 2022 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 RemoveH264orH265EmulationBytes(b []byte) []byte + 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) (codecData CodecData, err error) + func NewCodecDataFromSPSAndPPS(sps, pps []byte) (self CodecData, err error) + func (cd CodecData) AVCDecoderConfRecordBytes() []byte + func (cd CodecData) EmptyPPS() bool + func (cd CodecData) EmptySPS() bool + func (cd CodecData) HasPPS() bool + func (cd CodecData) HasSPS() bool + func (cd CodecData) Height() int + func (cd CodecData) PPS() []byte + func (cd CodecData) SPS() []byte + func (cd CodecData) Type() av.CodecType + func (cd CodecData) Width() int + type SPSInfo struct + ConstraintSetFlag uint + CropBottom uint + CropLeft uint + CropRight uint + CropTop uint + FPS uint + Height uint + Id uint + LevelIdc uint + MbHeight uint + MbWidth uint + ProfileIdc uint + Width uint + func ParseSPS(data []byte) (s SPSInfo, err error) + type SliceType uint + func ParseSliceHeaderFromNALU(packet []byte) (sliceType SliceType, err error) + func (self SliceType) String() string