Versions in this module Expand all Collapse all v0 v0.0.3 Feb 3, 2024 v0.0.2 Feb 3, 2024 Changes in this version + const MAX_SPS_COUNT + const MAX_SUB_LAYERS + const MAX_VPS_COUNT + const NALU_ANNEXB + const NALU_AVCC + const NALU_RAW + const NAL_UNIT_ACCESS_UNIT_DELIMITER + const NAL_UNIT_CODED_SLICE_BLA_N_LP + const NAL_UNIT_CODED_SLICE_BLA_W_LP + const NAL_UNIT_CODED_SLICE_BLA_W_RADL + const NAL_UNIT_CODED_SLICE_CRA + const NAL_UNIT_CODED_SLICE_IDR_N_LP + const NAL_UNIT_CODED_SLICE_IDR_W_RADL + const NAL_UNIT_CODED_SLICE_RADL_N + const NAL_UNIT_CODED_SLICE_RADL_R + const NAL_UNIT_CODED_SLICE_RASL_N + const NAL_UNIT_CODED_SLICE_RASL_R + const NAL_UNIT_CODED_SLICE_STSA_N + const NAL_UNIT_CODED_SLICE_STSA_R + const NAL_UNIT_CODED_SLICE_TRAIL_N + const NAL_UNIT_CODED_SLICE_TRAIL_R + const NAL_UNIT_CODED_SLICE_TSA_N + const NAL_UNIT_CODED_SLICE_TSA_R + const NAL_UNIT_EOB + const NAL_UNIT_EOS + const NAL_UNIT_FILLER_DATA + const NAL_UNIT_INVALID + const NAL_UNIT_PPS + const NAL_UNIT_PREFIX_SEI + const NAL_UNIT_RESERVED_IRAP_VCL22 + const NAL_UNIT_RESERVED_IRAP_VCL23 + const NAL_UNIT_RESERVED_NVCL41 + const NAL_UNIT_RESERVED_NVCL42 + const NAL_UNIT_RESERVED_NVCL43 + const NAL_UNIT_RESERVED_NVCL44 + const NAL_UNIT_RESERVED_NVCL45 + const NAL_UNIT_RESERVED_NVCL46 + const NAL_UNIT_RESERVED_NVCL47 + const NAL_UNIT_RESERVED_VCL24 + const NAL_UNIT_RESERVED_VCL25 + const NAL_UNIT_RESERVED_VCL26 + const NAL_UNIT_RESERVED_VCL27 + const NAL_UNIT_RESERVED_VCL28 + const NAL_UNIT_RESERVED_VCL29 + const NAL_UNIT_RESERVED_VCL30 + const NAL_UNIT_RESERVED_VCL31 + const NAL_UNIT_RESERVED_VCL_N10 + const NAL_UNIT_RESERVED_VCL_N12 + const NAL_UNIT_RESERVED_VCL_N14 + const NAL_UNIT_RESERVED_VCL_R11 + const NAL_UNIT_RESERVED_VCL_R13 + const NAL_UNIT_RESERVED_VCL_R15 + const NAL_UNIT_SPS + const NAL_UNIT_SUFFIX_SEI + const NAL_UNIT_UNSPECIFIED_48 + const NAL_UNIT_UNSPECIFIED_49 + const NAL_UNIT_UNSPECIFIED_50 + const NAL_UNIT_UNSPECIFIED_51 + const NAL_UNIT_UNSPECIFIED_52 + const NAL_UNIT_UNSPECIFIED_53 + const NAL_UNIT_UNSPECIFIED_54 + const NAL_UNIT_UNSPECIFIED_55 + const NAL_UNIT_UNSPECIFIED_56 + const NAL_UNIT_UNSPECIFIED_57 + const NAL_UNIT_UNSPECIFIED_58 + const NAL_UNIT_UNSPECIFIED_59 + const NAL_UNIT_UNSPECIFIED_60 + const NAL_UNIT_UNSPECIFIED_61 + const NAL_UNIT_UNSPECIFIED_62 + const NAL_UNIT_UNSPECIFIED_63 + const NAL_UNIT_VPS + const SLICE_B + const SLICE_I + const SLICE_P + var AUDBytes = []byte + var ErrDecconfInvalid = fmt.Errorf("h265parser: AVCDecoderConfRecord invalid") + var ErrorH265IncorectUnitSize = errors.New("Invorect Unit Size") + var ErrorH265IncorectUnitType = errors.New("Incorect Unit Type") + 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 + VPS [][]byte + func (self *AVCDecoderConfRecord) Unmarshal(b []byte) (n int, err error) + func (self AVCDecoderConfRecord) Len() (n int) + func (self AVCDecoderConfRecord) Marshal(b []byte, si SPSInfo) (n int) + type CodecData struct + Record []byte + RecordInfo AVCDecoderConfRecord + SPSInfo SPSInfo + func NewCodecDataFromAVCDecoderConfRecord(record []byte) (self CodecData, err error) + func NewCodecDataFromVPSAndSPSAndPPS(vps, 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) VPS() []byte + func (self CodecData) Width() int + type SPSInfo struct + CropBottom uint + CropLeft uint + CropRight uint + CropTop uint + Height uint + LevelIdc uint + MbHeight uint + MbWidth uint + PicHeightInLumaSamples uint + PicWidthInLumaSamples uint + ProfileIdc uint + Width uint + func ParseSPS(sps []byte) (ctx SPSInfo, err error) + type SliceType uint + func ParseSliceHeaderFromNALU(packet []byte) (sliceType SliceType, err error) + func (self SliceType) String() string