Documentation ¶
Overview ¶
Package h264 contains utilities to work with the H264 codec.
Index ¶
- func AntiCompetitionAdd(nalu []byte) []byte
- func AntiCompetitionRemove(nalu []byte) []byte
- func DecodeAVCC(byts []byte) ([][]byte, error)
- func DecodeAnnexB(byts []byte) ([][]byte, error)
- func EncodeAVCC(nalus [][]byte) ([]byte, error)
- func EncodeAnnexB(nalus [][]byte) ([]byte, error)
- type DTSEstimator
- type NALUType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AntiCompetitionAdd ¶
AntiCompetitionAdd adds the anti-competition bytes to a NALU.
func AntiCompetitionRemove ¶
AntiCompetitionRemove removes the anti-competition bytes from a NALU.
func DecodeAVCC ¶
DecodeAVCC decodes NALUs from the AVCC stream format.
func DecodeAnnexB ¶
DecodeAnnexB decodes NALUs from the Annex-B stream format.
func EncodeAVCC ¶
EncodeAVCC encodes NALUs into the AVCC stream format.
func EncodeAnnexB ¶
EncodeAnnexB encodes NALUs into the Annex-B stream format.
Types ¶
type DTSEstimator ¶
type DTSEstimator struct {
// contains filtered or unexported fields
}
DTSEstimator is a DTS estimator.
func NewDTSEstimator ¶
func NewDTSEstimator() *DTSEstimator
NewDTSEstimator allocates a DTSEstimator.
type NALUType ¶
type NALUType uint8
NALUType is the type of a NALU.
const ( NALUTypeNonIDR NALUType = 1 NALUTypeDataPartitionA NALUType = 2 NALUTypeDataPartitionB NALUType = 3 NALUTypeDataPartitionC NALUType = 4 NALUTypeIDR NALUType = 5 NALUTypeSEI NALUType = 6 NALUTypeSPS NALUType = 7 NALUTypePPS NALUType = 8 NALUTypeAccessUnitDelimiter NALUType = 9 NALUTypeEndOfSequence NALUType = 10 NALUTypeEndOfStream NALUType = 11 NALUTypeFillerData NALUType = 12 NALUTypeSPSExtension NALUType = 13 NALUTypePrefix NALUType = 14 NALUTypeSubsetSPS NALUType = 15 NALUTypeReserved16 NALUType = 16 NALUTypeReserved17 NALUType = 17 NALUTypeReserved18 NALUType = 18 NALUTypeSliceLayerWithoutPartitioning NALUType = 19 NALUTypeSliceExtension NALUType = 20 NALUTypeSliceExtensionDepth NALUType = 21 NALUTypeReserved22 NALUType = 22 NALUTypeReserved23 NALUType = 23 )
standard NALU types.
Click to show internal directories.
Click to hide internal directories.