Versions in this module Expand all Collapse all v1 v1.0.7 Feb 13, 2025 v1.0.6 Feb 12, 2025 v1.0.5 Jan 27, 2025 v1.0.4 Jan 27, 2025 v1.0.3 Jan 27, 2025 v1.0.2 Jan 10, 2025 v1.0.1 Jan 10, 2025 v1.0.0 Sep 11, 2024 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 AddEmulationPrevention(data []byte) ([]byte, int) + func CheckNALUsType(b []byte) (typ int) + func DeEmulationPrevention(data []byte) []byte + func IsDataNALU(b []byte) bool + func IsPpsNALU(b byte) bool + func IsSeiNALU(b byte) bool + func IsSpsNALU(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 + PPSInfo PPSInfo + Record []byte + RecordInfo AVCDecoderConfRecord + SPSInfo SPSInfo + SequnceHeaderTag interface{} + 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 PPSInfo struct + BottomRight []uint + ChromaQpIndexOffset uint + ConstrainedIntraPredFlag uint + DeblockingFilterControlPresentFlag uint + EntropyCodingModeFlag uint + ForbiddenZeroBit uint + NalRefIdc uint + NalUnitType uint + NumRefIdxL0ActiveMinus1 uint + NumRefIdxL1ActiveMinus1 uint + NumSliceGroupsMinus1 uint + PicInitQpMinus26 uint + PicInitQsMinus26 uint + PicOrderPresentFlag uint + PicParameterSetID uint + PicSizeInMapUnitsMinus1 uint + RedundantPicCntPresnetFlag uint + RunLengthMinus1 []uint + SeqParameterSetID uint + SliceGroupChangeDirectionFlag uint + SliceGroupChangeRateMinus1 uint + SliceGroupID []uint + SliceGroupMapType uint + TopLeft []uint + WeightedBipredIdc uint + WeightedPredFlag uint + func ParsePPS(data []byte) (pps PPSInfo, err error) + type SEIInfo struct + Data []byte + ForbiddenZeroBit uint + NalRefIdc uint + NalUnitType uint + PayloadSize uint + PayloadType uint + Ts uint64 + UUID []byte + UserData []byte + func ParseSEI(data []byte) (sei SEIInfo, err error) + type SPSInfo struct + BitDepthChromaMinus8 uint + BitDepthLumaMinus8 uint + ChromaFormatIdc uint + ConstraintSetFlag []uint + CropBottom uint + CropLeft uint + CropRight uint + CropTop uint + DeltaPicOrderAlwaysZeroFlag uint + Direct8x8InferenceFlag uint + FPS uint + ForbiddenZeroBit uint + FrameCroppingFlag uint + FrameMbsOnlyFlag uint + GapsInFrameNumValueAllowedFlag uint + Height uint + Id uint + LevelIdc uint + Log2MaxFrameNumMinus4 uint + Log2MaxPicOrderCntLsbMinus4 uint + MaxNumRefFrames uint + MbAdaptiveFrameFieldFlag uint + MbHeight uint + MbWidth uint + NalRefIdc uint + NalUnitType uint + NumRefFramesInPicOrderCntCycle uint + OffsetForNonRefPic uint + OffsetForTopToBottomField uint + PicHeightInMapUnitsMinus1 uint + PicOrderCntType uint + PicWidthInMbsMinus1 uint + ProfileIdc uint + QpprimeYZeroTransformBypassFlag uint + SeparateColourPlaneFlag uint + SeqParameterSetID uint + SeqScalingListPresentFlag []uint + SeqScalingMatrixPresentFlag uint + VuiParametersPresentFlag uint + Width uint + func ParseSPS(data []byte) (sps SPSInfo, err error) + type SliceType uint + func ParseSliceHeaderFromNALU(packet []byte) (sliceType SliceType, err error) + func (self SliceType) String() string + type VuiParameters struct + AspectRatioIdc uint + AspectRatioInfoPresentFlag uint + ChromaLocInfoPresentFlag uint + ChromaSampleLocTypeBottomField uint + ChromaSampleLocTypeTopField uint + ColourDescriptionPresentFlag uint + ColourPrimaries uint + FPS uint + FixedFrameRateFlag uint + MatrixCoefficients uint + NumUnitsInTick uint + OverscanAppropriateFlag uint + OverscanInfoPresentFlag uint + SarHeight uint + SarWidth uint + TimeScale uint + TimingInfoPresentFlag uint + TransferCharacteristics uint + VideoFormat uint + VideoFullRangeRlag uint + VideoSignalTypePresentFlag uint