Documentation ¶
Index ¶
- Constants
- Variables
- func CheckNALUsType(b []byte) (typ int)
- func Fuzz_ParseSPS(data []byte) int
- func Fuzz_ParseSliceHeaderFromNALU(data []byte) int
- func Fuzz_SplitNALUs(data []byte) int
- func IsDataNALU(b []byte) bool
- func SplitNALUs(b []byte) (nalus [][]byte, typ int)
- type AVCDecoderConfRecord
- type CodecData
- type SPSInfo
- type SliceType
Constants ¶
View Source
const ( NALU_SEI = 6 NALU_PPS = 7 NALU_SPS = 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 Fuzz_ParseSPS ¶
func Fuzz_SplitNALUs ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.