Versions in this module Expand all Collapse all v0 v0.2.1 Nov 28, 2026 v0.2.0 Nov 27, 2026 Changes in this version + const NalAUD + const NalBLAWLP + const NalCRA + const NalIDRNLP + const NalIDRWRADL + const NalPPS + const NalRASLR + const NalRsvIRAP23 + const NalSPS + const NalTrailN + const NalVPS + const SliceB + const SliceI + const SliceP + var ErrSyntax = errors.New("hevc: malformed syntax") + func IsIDR(t int) bool + func IsIRAP(t int) bool + func NALType(nal []byte) int + func NALUnits(au []byte) [][]byte + func ParseSliceHeader(nal []byte, sps map[uint32]*SPS, pps map[uint32]*PPS, prev *SliceHeader) (*SliceHeader, *SPS, *PPS, error) + type Colour struct + Matrix uint8 + Primaries uint8 + Transfer uint8 + type POC struct + func (p *POC) Next(h *SliceHeader, s *SPS, noRasl bool) int32 + func (p *POC) Seen() bool + type PPS struct + BetaOffsetDiv2 int32 + CabacInitPresent bool + CbQPOffset int32 + ColumnWidthMinus1 []uint32 + ConstrainedIntraPred bool + CrQPOffset int32 + CuQPDeltaEnabled bool + DeblockingDisabled bool + DeblockingOverrideEnabled bool + DependentSliceSegments bool + DiffCuQPDeltaDepth uint32 + EntropyCodingSync bool + ID uint32 + InitQPMinus26 int32 + ListsModificationPresent bool + Log2ParallelMergeLevelMinus2 uint32 + LoopFilterAcrossSlices bool + LoopFilterAcrossTiles bool + NumExtraSliceHeaderBits uint32 + NumRefIdxL0DefaultMinus1 uint32 + NumRefIdxL1DefaultMinus1 uint32 + NumTileColumnsMinus1 uint32 + NumTileRowsMinus1 uint32 + OutputFlagPresent bool + RowHeightMinus1 []uint32 + SPSID uint32 + ScalingList ScalingList + ScalingListPresent bool + SignDataHiding bool + SliceChromaQPOffsetsPresent bool + SliceSegmentHeaderExtensionPresent bool + TcOffsetDiv2 int32 + Tiles bool + TransformSkip bool + TransquantBypass bool + UniformSpacing bool + WeightedBipred bool + WeightedPred bool + func ParsePPS(nal []byte) (*PPS, error) + func (p *PPS) TileSizes(s *SPS) (cols, rows []uint32) + type SPS struct + AMP bool + BitDepthChroma uint32 + BitDepthLuma uint32 + ChromaFormatIdc uint32 + ConfBot uint32 + ConfLeft uint32 + ConfRight uint32 + ConfTop uint32 + Height uint32 + ID uint32 + Log2DiffMaxMinCb uint32 + Log2DiffMaxMinPCM uint32 + Log2DiffMaxMinTb uint32 + Log2MaxPocLsb uint32 + Log2MinCbMinus3 uint32 + Log2MinPCMMinus3 uint32 + Log2MinTbMinus2 uint32 + LongTermRefsPresent bool + LtRefPicPocLsb []uint32 + LtUsedByCurr []bool + MaxDecPicBufferingMinus1 uint32 + MaxNumReorder uint32 + MaxSubLayersMinus1 uint32 + MaxTHDepthInter uint32 + MaxTHDepthIntra uint32 + PCM bool + PCMBitDepthChroma uint32 + PCMBitDepthLuma uint32 + PCMLoopFilterDisabled bool + SAO bool + ScalingList ScalingList + ScalingListEnabled bool + SeparateColourPlane bool + ShortTermRPS []ShortTermRPS + StrongIntraSmoothing bool + TemporalMVP bool + Width uint32 + func ParseSPS(nal []byte) (*SPS, error) + func (s *SPS) CtbLog2() uint32 + func (s *SPS) VisibleSize() (w, h int) + type ScalingList struct + DC16 [6]uint8 + DC32 [6]uint8 + List16 [6][64]uint8 + List32 [6][64]uint8 + List4 [6][16]uint8 + List8 [6][64]uint8 + func DefaultScalingList() ScalingList + type ShortTermRPS struct + DeltaPocS0 [16]int32 + DeltaPocS1 [16]int32 + NumNegative int + NumPositive int + UsedS0 [16]bool + UsedS1 [16]bool + type Slice struct + Address uint32 + IDR bool + PocLsb uint32 + QPDelta int32 + SAOChroma bool + SAOLuma bool + TemporalMVP bool + Type int + type SliceHeader struct + BetaOffsetDiv2 int32 + CabacInit bool + CbQPOffset int32 + ChromaLog2WeightDenom int32 + ChromaOffsetL0 [16][2]int32 + ChromaOffsetL1 [16][2]int32 + ChromaWeightL0 [16][2]int32 + ChromaWeightL1 [16][2]int32 + CollocFromL0 bool + CollocRefIdx uint32 + ColourPlaneID uint32 + CrQPOffset int32 + DataOffset int + DeblockingDisabled bool + Dependent bool + EPBInHeader int + FirstSliceSegmentInPic bool + FiveMinusMaxMergeCand uint32 + ListEntryL0 [16]uint32 + ListEntryL1 [16]uint32 + ListModL0 bool + ListModL1 bool + LoopFilterAcrossSlices bool + LtMSBCycle [32]int32 + LtMSBPresent [32]bool + LtPoc [32]int32 + LtUsedByCurr [32]bool + LumaLog2WeightDenom uint32 + LumaOffsetL0 [16]int32 + LumaOffsetL1 [16]int32 + LumaWeightL0 [16]int32 + LumaWeightL1 [16]int32 + MvdL1Zero bool + NalType int + NoOutputOfPriorPics bool + NumEntryPointOffsets uint32 + NumLongTerm int + NumRefIdxL0 int + NumRefIdxL1 int + PPSID uint32 + PicOutput bool + PocLsb uint32 + QPDelta int32 + SAOChroma bool + SAOLuma bool + SegmentAddress uint32 + ShortTerm ShortTermRPS + ShortTermBits int + ShortTermIdx int + ShortTermInSPS bool + TcOffsetDiv2 int32 + TemporalID int + TemporalMVP bool + Type int + func (h *SliceHeader) NumPicTotalCurr() int + type Stream struct + AMP bool + BitDepthMinus8 uint32 + Colour *Colour + ConstrainedIntraPred bool + CuQPDelta bool + FiveMinusMaxMergeCand uint32 + Height uint32 + InitQPMinus26 int32 + LevelIdc uint32 + Log2DiffMaxMinCb uint32 + Log2DiffMaxMinTb uint32 + Log2MaxPocLsb uint32 + Log2MinCbMinus3 uint32 + Log2MinTbMinus2 uint32 + LoopFilterAcrossSlices bool + MaxDecPicBufferingMinus1 uint32 + MaxTHDepthInter uint32 + MaxTHDepthIntra uint32 + ProfileIdc uint32 + SAO bool + SignDataHiding bool + StrongIntraSmoothing bool + TemporalMVP bool + TransformSkip bool + VisibleHeight uint32 + VisibleWidth uint32 + Width uint32 + func (s *Stream) PPS() []byte + func (s *Stream) SPS() []byte + func (s *Stream) SliceHeader(h Slice) []byte + func (s *Stream) VPS() []byte