Documentation ¶
Index ¶
- Constants
- Variables
- 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
- 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) Width() int
- type SPSInfo
- type SliceType
Constants ¶
View Source
const ( NALU_SEI = 6 NALU_SPS = 7 NALU_PPS = 8 NALU_AUD = 9 )
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 AUDBytes = []byte{0, 0, 0, 1, 0x9, 0xf0, 0, 0, 0, 1} // AUD
View Source
var ErrDecconfInvalid = fmt.Errorf("h264parser: 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 SPS [][]byte PPS [][]byte }
func (AVCDecoderConfRecord) Len ¶
func (self AVCDecoderConfRecord) Len() (n int)
func (AVCDecoderConfRecord) Marshal ¶
func (self AVCDecoderConfRecord) Marshal(b []byte) (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.