Versions in this module Expand all Collapse all v0 v0.0.27 Feb 7, 2024 v0.0.26 Feb 1, 2024 v0.0.25 Jan 29, 2024 v0.0.24 Jan 22, 2024 v0.0.23 Jan 10, 2024 v0.0.22 Jan 8, 2024 v0.0.21 Nov 20, 2023 v0.0.20 Mar 11, 2023 v0.0.19 Jul 16, 2022 v0.0.18 Jul 4, 2022 v0.0.17 Jun 14, 2022 v0.0.16 Jun 5, 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) (self CodecData, err error) + func NewCodecDataFromSPSAndPPS(sps, pps []byte) (self CodecData, err error) + func (self CodecData) AVCDecoderConfRecordBytes() []byte + func (self CodecData) Bandwidth() string + func (self CodecData) FPS() int + func (self CodecData) Height() int + func (self CodecData) PPS() []byte + func (self CodecData) PacketDuration(data []byte) time.Duration + func (self CodecData) Resolution() string + func (self CodecData) SPS() []byte + func (self CodecData) Tag() string + func (self CodecData) Type() av.CodecType + func (self 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