Documentation ¶
Index ¶
- Constants
- Variables
- func CheckNALUsType(b []byte) (typ int)
- func IsDataNALU(b []byte) bool
- func SplitNALUs(b []byte) (nalus [][]byte, typ int)
- type AVCDecoderConfRecord
- type CodecData
- 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
- type SliceType
Constants ¶
View Source
const ( NAL_UNIT_CODED_SLICE_TRAIL_N = 0 NAL_UNIT_CODED_SLICE_TRAIL_R = 1 NAL_UNIT_CODED_SLICE_TSA_N = 2 NAL_UNIT_CODED_SLICE_TSA_R = 3 NAL_UNIT_CODED_SLICE_STSA_N = 4 NAL_UNIT_CODED_SLICE_STSA_R = 5 NAL_UNIT_CODED_SLICE_RADL_N = 6 NAL_UNIT_CODED_SLICE_RADL_R = 7 NAL_UNIT_CODED_SLICE_RASL_N = 8 NAL_UNIT_CODED_SLICE_RASL_R = 9 NAL_UNIT_RESERVED_VCL_N10 = 10 NAL_UNIT_RESERVED_VCL_R11 = 11 NAL_UNIT_RESERVED_VCL_N12 = 12 NAL_UNIT_RESERVED_VCL_R13 = 13 NAL_UNIT_RESERVED_VCL_N14 = 14 NAL_UNIT_RESERVED_VCL_R15 = 15 NAL_UNIT_CODED_SLICE_BLA_W_LP = 16 NAL_UNIT_CODED_SLICE_BLA_W_RADL = 17 NAL_UNIT_CODED_SLICE_BLA_N_LP = 18 NAL_UNIT_CODED_SLICE_IDR_W_RADL = 19 NAL_UNIT_CODED_SLICE_IDR_N_LP = 20 NAL_UNIT_CODED_SLICE_CRA = 21 NAL_UNIT_RESERVED_IRAP_VCL22 = 22 NAL_UNIT_RESERVED_IRAP_VCL23 = 23 NAL_UNIT_RESERVED_VCL24 = 24 NAL_UNIT_RESERVED_VCL25 = 25 NAL_UNIT_RESERVED_VCL26 = 26 NAL_UNIT_RESERVED_VCL27 = 27 NAL_UNIT_RESERVED_VCL28 = 28 NAL_UNIT_RESERVED_VCL29 = 29 NAL_UNIT_RESERVED_VCL30 = 30 NAL_UNIT_RESERVED_VCL31 = 31 NAL_UNIT_VPS = 32 NAL_UNIT_SPS = 33 NAL_UNIT_PPS = 34 NAL_UNIT_ACCESS_UNIT_DELIMITER = 35 NAL_UNIT_EOS = 36 NAL_UNIT_EOB = 37 NAL_UNIT_FILLER_DATA = 38 NAL_UNIT_PREFIX_SEI = 39 NAL_UNIT_SUFFIX_SEI = 40 NAL_UNIT_RESERVED_NVCL41 = 41 NAL_UNIT_RESERVED_NVCL42 = 42 NAL_UNIT_RESERVED_NVCL43 = 43 NAL_UNIT_RESERVED_NVCL44 = 44 NAL_UNIT_RESERVED_NVCL45 = 45 NAL_UNIT_RESERVED_NVCL46 = 46 NAL_UNIT_RESERVED_NVCL47 = 47 NAL_UNIT_UNSPECIFIED_48 = 48 NAL_UNIT_UNSPECIFIED_49 = 49 NAL_UNIT_UNSPECIFIED_50 = 50 NAL_UNIT_UNSPECIFIED_51 = 51 NAL_UNIT_UNSPECIFIED_52 = 52 NAL_UNIT_UNSPECIFIED_53 = 53 NAL_UNIT_UNSPECIFIED_54 = 54 NAL_UNIT_UNSPECIFIED_55 = 55 NAL_UNIT_UNSPECIFIED_56 = 56 NAL_UNIT_UNSPECIFIED_57 = 57 NAL_UNIT_UNSPECIFIED_58 = 58 NAL_UNIT_UNSPECIFIED_59 = 59 NAL_UNIT_UNSPECIFIED_60 = 60 NAL_UNIT_UNSPECIFIED_61 = 61 NAL_UNIT_UNSPECIFIED_62 = 62 NAL_UNIT_UNSPECIFIED_63 = 63 NAL_UNIT_INVALID = 64 )
View Source
const ( MAX_VPS_COUNT = 16 MAX_SUB_LAYERS = 7 MAX_SPS_COUNT = 32 )
View Source
const ( NALU_RAW = iota NALU_AVCC NALU_ANNEXB )
View Source
const ( SLICE_P = iota + 1 SLICE_B SLICE_I )
Variables ¶
View Source
var ( ErrorH265IncorectUnitSize = errors.New("Invorect Unit Size") ErrorH265IncorectUnitType = errors.New("Incorect Unit Type") )
View Source
var AUDBytes = []byte{0, 0, 0, 1, 0x9, 0xf0, 0, 0, 0, 1} // AUD
View Source
var ErrDecconfInvalid = fmt.Errorf("h265parser: AVCDecoderConfRecord invalid")
View Source
var StartCodeBytes = []byte{0, 0, 1}
Functions ¶
func CheckNALUsType ¶
func IsDataNALU ¶
func SplitNALUs ¶
Types ¶
type AVCDecoderConfRecord ¶
type AVCDecoderConfRecord struct { AVCProfileIndication uint8 ProfileCompatibility uint8 AVCLevelIndication uint8 LengthSizeMinusOne uint8 VPS [][]byte SPS [][]byte PPS [][]byte }
func (AVCDecoderConfRecord) Len ¶
func (self AVCDecoderConfRecord) Len() (n int)
type CodecData ¶
type CodecData struct { Record []byte RecordInfo AVCDecoderConfRecord SPSInfo SPSInfo }
func (CodecData) AVCDecoderConfRecordBytes ¶
func (CodecData) Resolution ¶
Click to show internal directories.
Click to hide internal directories.