Documentation
¶
Overview ¶
Package codecs implements codec specific RTP payloader/depayloaders
Index ¶
- type G711Payloader
- type G722Payloader
- type H264Packet
- type H264PartitionHeadChecker
- type H264Payloader
- type H265AggregationPacket
- type H265AggregationUnit
- type H265AggregationUnitFirst
- type H265FragmentationUnitHeader
- type H265FragmentationUnitPacket
- func (p *H265FragmentationUnitPacket) DONL() *uint16
- func (p *H265FragmentationUnitPacket) FuHeader() H265FragmentationUnitHeader
- func (p *H265FragmentationUnitPacket) Payload() []byte
- func (p *H265FragmentationUnitPacket) PayloadHeader() H265NALUHeader
- func (p *H265FragmentationUnitPacket) Unmarshal(payload []byte) ([]byte, error)
- func (p *H265FragmentationUnitPacket) WithDONL(value bool)
- type H265NALUHeader
- func (h H265NALUHeader) F() bool
- func (h H265NALUHeader) IsAggregationPacket() bool
- func (h H265NALUHeader) IsFragmentationUnit() bool
- func (h H265NALUHeader) IsPACIPacket() bool
- func (h H265NALUHeader) IsTypeVCLUnit() bool
- func (h H265NALUHeader) LayerID() uint8
- func (h H265NALUHeader) TID() uint8
- func (h H265NALUHeader) Type() uint8
- type H265PACIPacket
- func (p *H265PACIPacket) A() bool
- func (p *H265PACIPacket) CType() uint8
- func (p *H265PACIPacket) F0() bool
- func (p *H265PACIPacket) F1() bool
- func (p *H265PACIPacket) F2() bool
- func (p *H265PACIPacket) PHES() []byte
- func (p *H265PACIPacket) PHSsize() uint8
- func (p *H265PACIPacket) Payload() []byte
- func (p *H265PACIPacket) PayloadHeader() H265NALUHeader
- func (p *H265PACIPacket) TSCI() *H265TSCI
- func (p *H265PACIPacket) Unmarshal(payload []byte) ([]byte, error)
- func (p *H265PACIPacket) Y() bool
- type H265Packet
- type H265SingleNALUnitPacket
- type H265TSCI
- type OpusPacket
- type OpusPartitionHeadChecker
- type OpusPayloader
- type VP8Packet
- type VP8PartitionHeadChecker
- type VP8Payloader
- type VP9Packet
- type VP9PartitionHeadChecker
- type VP9Payloader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type G711Payloader ¶ added in v1.1.4
type G711Payloader struct{}
G711Payloader payloads G711 packets
type H264Packet ¶ added in v1.5.0
type H264Packet struct {
IsAVC bool
// contains filtered or unexported fields
}
H264Packet represents the H264 header that is stored in the payload of an RTP Packet
func (*H264Packet) IsDetectedFinalPacketInSequence ¶ added in v1.6.4
func (p *H264Packet) IsDetectedFinalPacketInSequence(rtpPacketMarketBit bool) bool
IsDetectedFinalPacketInSequence returns true of the packet passed in has the marker bit set indicated the end of a packet sequence
func (*H264Packet) IsPartitionHead ¶ added in v1.7.2
func (*H264Packet) IsPartitionHead(payload []byte) bool
IsPartitionHead checks if this is the head of a packetized nalu stream.
func (*H264Packet) IsPartitionTail ¶ added in v1.7.2
type H264PartitionHeadChecker ¶ added in v1.6.4
type H264PartitionHeadChecker struct{}
H264PartitionHeadChecker is obsolete
type H264Payloader ¶
type H264Payloader struct {
// contains filtered or unexported fields
}
H264Payloader payloads H264 packets
type H265AggregationPacket ¶ added in v1.7.1
type H265AggregationPacket struct {
// contains filtered or unexported fields
}
H265AggregationPacket represents an Aggregation packet.
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PayloadHdr (Type=48) | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | two or more aggregation units | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | :...OPTIONAL RTP padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.2
func (*H265AggregationPacket) FirstUnit ¶ added in v1.7.1
func (p *H265AggregationPacket) FirstUnit() *H265AggregationUnitFirst
FirstUnit returns the first Aggregated Unit of the packet.
func (*H265AggregationPacket) OtherUnits ¶ added in v1.7.1
func (p *H265AggregationPacket) OtherUnits() []H265AggregationUnit
OtherUnits returns the all the other Aggregated Unit of the packet (excluding the first one).
func (*H265AggregationPacket) Unmarshal ¶ added in v1.7.1
func (p *H265AggregationPacket) Unmarshal(payload []byte) ([]byte, error)
Unmarshal parses the passed byte slice and stores the result in the H265AggregationPacket this method is called upon.
func (*H265AggregationPacket) WithDONL ¶ added in v1.7.1
func (p *H265AggregationPacket) WithDONL(value bool)
WithDONL can be called to specify whether or not DONL might be parsed. DONL may need to be parsed if `sprop-max-don-diff` is greater than 0 on the RTP stream.
type H265AggregationUnit ¶ added in v1.7.1
type H265AggregationUnit struct {
// contains filtered or unexported fields
}
H265AggregationUnit represent the an Aggregation Unit in an AP, which is not the first one.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
: DOND (cond) | NALU size |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
| NAL unit |
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.2
func (H265AggregationUnit) DOND ¶ added in v1.7.1
func (u H265AggregationUnit) DOND() *uint8
DOND field plus 1 specifies the difference between the decoding order number values of the current aggregated NAL unit and the preceding aggregated NAL unit in the same AP.
func (H265AggregationUnit) NALUSize ¶ added in v1.7.1
func (u H265AggregationUnit) NALUSize() uint16
NALUSize represents the size, in bytes, of the NalUnit.
func (H265AggregationUnit) NalUnit ¶ added in v1.7.1
func (u H265AggregationUnit) NalUnit() []byte
NalUnit payload.
type H265AggregationUnitFirst ¶ added in v1.7.1
type H265AggregationUnitFirst struct {
// contains filtered or unexported fields
}
H265AggregationUnitFirst represent the First Aggregation Unit in an AP.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
: DONL (conditional) | NALU size |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| NALU size | |
+-+-+-+-+-+-+-+-+ NAL unit |
| |
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.2
func (H265AggregationUnitFirst) DONL ¶ added in v1.7.1
func (u H265AggregationUnitFirst) DONL() *uint16
DONL field, when present, specifies the value of the 16 least significant bits of the decoding order number of the aggregated NAL unit.
func (H265AggregationUnitFirst) NALUSize ¶ added in v1.7.1
func (u H265AggregationUnitFirst) NALUSize() uint16
NALUSize represents the size, in bytes, of the NalUnit.
func (H265AggregationUnitFirst) NalUnit ¶ added in v1.7.1
func (u H265AggregationUnitFirst) NalUnit() []byte
NalUnit payload.
type H265FragmentationUnitHeader ¶ added in v1.7.1
type H265FragmentationUnitHeader uint8
H265FragmentationUnitHeader is a H265 FU Header +---------------+ |0|1|2|3|4|5|6|7| +-+-+-+-+-+-+-+-+ |S|E| FuType | +---------------+
func (H265FragmentationUnitHeader) E ¶ added in v1.7.1
func (h H265FragmentationUnitHeader) E() bool
E represents the end of a fragmented NAL unit.
func (H265FragmentationUnitHeader) FuType ¶ added in v1.7.1
func (h H265FragmentationUnitHeader) FuType() uint8
FuType MUST be equal to the field Type of the fragmented NAL unit.
func (H265FragmentationUnitHeader) S ¶ added in v1.7.1
func (h H265FragmentationUnitHeader) S() bool
S represents the start of a fragmented NAL unit.
type H265FragmentationUnitPacket ¶ added in v1.7.1
type H265FragmentationUnitPacket struct {
// contains filtered or unexported fields
}
H265FragmentationUnitPacket represents a single Fragmentation Unit packet.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PayloadHdr (Type=49) | FU header | DONL (cond) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-| | DONL (cond) | | |-+-+-+-+-+-+-+-+ | | FU payload | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | :...OPTIONAL RTP padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.3
func (*H265FragmentationUnitPacket) DONL ¶ added in v1.7.1
func (p *H265FragmentationUnitPacket) DONL() *uint16
DONL returns the DONL of the packet.
func (*H265FragmentationUnitPacket) FuHeader ¶ added in v1.7.1
func (p *H265FragmentationUnitPacket) FuHeader() H265FragmentationUnitHeader
FuHeader returns the Fragmentation Unit Header of the packet.
func (*H265FragmentationUnitPacket) Payload ¶ added in v1.7.1
func (p *H265FragmentationUnitPacket) Payload() []byte
Payload returns the Fragmentation Unit packet payload.
func (*H265FragmentationUnitPacket) PayloadHeader ¶ added in v1.7.1
func (p *H265FragmentationUnitPacket) PayloadHeader() H265NALUHeader
PayloadHeader returns the NALU header of the packet.
func (*H265FragmentationUnitPacket) Unmarshal ¶ added in v1.7.1
func (p *H265FragmentationUnitPacket) Unmarshal(payload []byte) ([]byte, error)
Unmarshal parses the passed byte slice and stores the result in the H265FragmentationUnitPacket this method is called upon.
func (*H265FragmentationUnitPacket) WithDONL ¶ added in v1.7.1
func (p *H265FragmentationUnitPacket) WithDONL(value bool)
WithDONL can be called to specify whether or not DONL might be parsed. DONL may need to be parsed if `sprop-max-don-diff` is greater than 0 on the RTP stream.
type H265NALUHeader ¶ added in v1.7.1
type H265NALUHeader uint16
H265NALUHeader is a H265 NAL Unit Header https://datatracker.ietf.org/doc/html/rfc7798#section-1.1.4 +---------------+---------------+
|0|1|2|3|4|5|6|7|0|1|2|3|4|5|6|7| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |F| Type | LayerID | TID | +-------------+-----------------+
func (H265NALUHeader) F ¶ added in v1.7.1
func (h H265NALUHeader) F() bool
F is the forbidden bit, should always be 0.
func (H265NALUHeader) IsAggregationPacket ¶ added in v1.7.1
func (h H265NALUHeader) IsAggregationPacket() bool
IsAggregationPacket returns whether or not the packet is an Aggregation packet.
func (H265NALUHeader) IsFragmentationUnit ¶ added in v1.7.1
func (h H265NALUHeader) IsFragmentationUnit() bool
IsFragmentationUnit returns whether or not the packet is a Fragmentation Unit packet.
func (H265NALUHeader) IsPACIPacket ¶ added in v1.7.1
func (h H265NALUHeader) IsPACIPacket() bool
IsPACIPacket returns whether or not the packet is a PACI packet.
func (H265NALUHeader) IsTypeVCLUnit ¶ added in v1.7.1
func (h H265NALUHeader) IsTypeVCLUnit() bool
IsTypeVCLUnit returns whether or not the NAL Unit type is a VCL NAL unit.
func (H265NALUHeader) LayerID ¶ added in v1.7.1
func (h H265NALUHeader) LayerID() uint8
LayerID should always be 0 in non-3D HEVC context.
func (H265NALUHeader) TID ¶ added in v1.7.1
func (h H265NALUHeader) TID() uint8
TID is the temporal identifier of the NAL unit +1.
type H265PACIPacket ¶ added in v1.7.1
type H265PACIPacket struct {
// contains filtered or unexported fields
}
H265PACIPacket represents a single H265 PACI packet.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PayloadHdr (Type=50) |A| cType | PHSsize |F0..2|Y| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Payload Header Extension Structure (PHES) | |=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=| | | | PACI payload: NAL unit | | . . . | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | :...OPTIONAL RTP padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.4
func (*H265PACIPacket) A ¶ added in v1.7.1
func (p *H265PACIPacket) A() bool
A copies the F bit of the PACI payload NALU.
func (*H265PACIPacket) CType ¶ added in v1.7.1
func (p *H265PACIPacket) CType() uint8
CType copies the Type field of the PACI payload NALU.
func (*H265PACIPacket) F0 ¶ added in v1.7.1
func (p *H265PACIPacket) F0() bool
F0 indicates the presence of a Temporal Scalability support extension in the PHES.
func (*H265PACIPacket) F1 ¶ added in v1.7.1
func (p *H265PACIPacket) F1() bool
F1 must be zero, reserved for future extensions.
func (*H265PACIPacket) F2 ¶ added in v1.7.1
func (p *H265PACIPacket) F2() bool
F2 must be zero, reserved for future extensions.
func (*H265PACIPacket) PHES ¶ added in v1.7.1
func (p *H265PACIPacket) PHES() []byte
PHES contains header extensions. Its size is indicated by PHSsize.
func (*H265PACIPacket) PHSsize ¶ added in v1.7.1
func (p *H265PACIPacket) PHSsize() uint8
PHSsize indicates the size of the PHES field.
func (*H265PACIPacket) Payload ¶ added in v1.7.1
func (p *H265PACIPacket) Payload() []byte
Payload is a single NALU or NALU-like struct, not including the first two octets (header).
func (*H265PACIPacket) PayloadHeader ¶ added in v1.7.1
func (p *H265PACIPacket) PayloadHeader() H265NALUHeader
PayloadHeader returns the NAL Unit Header.
func (*H265PACIPacket) TSCI ¶ added in v1.7.1
func (p *H265PACIPacket) TSCI() *H265TSCI
TSCI returns the Temporal Scalability Control Information extension, if present.
func (*H265PACIPacket) Unmarshal ¶ added in v1.7.1
func (p *H265PACIPacket) Unmarshal(payload []byte) ([]byte, error)
Unmarshal parses the passed byte slice and stores the result in the H265PACIPacket this method is called upon.
func (*H265PACIPacket) Y ¶ added in v1.7.1
func (p *H265PACIPacket) Y() bool
Y must be zero, reserved for future extensions.
type H265Packet ¶ added in v1.7.1
type H265Packet struct {
// contains filtered or unexported fields
}
H265Packet represents a H265 packet, stored in the payload of an RTP packet.
func (*H265Packet) IsPartitionHead ¶ added in v1.7.8
func (*H265Packet) IsPartitionHead(payload []byte) bool
IsPartitionHead checks if this is the head of a packetized nalu stream.
func (*H265Packet) IsPartitionTail ¶ added in v1.7.8
func (*H265Packet) Packet ¶ added in v1.7.1
func (p *H265Packet) Packet() isH265Packet
Packet returns the populated packet. Must be casted to one of: - *H265SingleNALUnitPacket - *H265FragmentationUnitPacket - *H265AggregationPacket - *H265PACIPacket nolint:golint
func (*H265Packet) Unmarshal ¶ added in v1.7.1
func (p *H265Packet) Unmarshal(payload []byte) ([]byte, error)
Unmarshal parses the passed byte slice and stores the result in the H265Packet this method is called upon
func (*H265Packet) WithDONL ¶ added in v1.7.1
func (p *H265Packet) WithDONL(value bool)
WithDONL can be called to specify whether or not DONL might be parsed. DONL may need to be parsed if `sprop-max-don-diff` is greater than 0 on the RTP stream.
type H265SingleNALUnitPacket ¶ added in v1.7.1
type H265SingleNALUnitPacket struct {
// contains filtered or unexported fields
}
H265SingleNALUnitPacket represents a NALU packet, containing exactly one NAL unit.
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PayloadHdr | DONL (conditional) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | NAL unit payload data | | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | :...OPTIONAL RTP padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.1
func (*H265SingleNALUnitPacket) DONL ¶ added in v1.7.1
func (p *H265SingleNALUnitPacket) DONL() *uint16
DONL returns the DONL of the packet.
func (*H265SingleNALUnitPacket) Payload ¶ added in v1.7.1
func (p *H265SingleNALUnitPacket) Payload() []byte
Payload returns the Fragmentation Unit packet payload.
func (*H265SingleNALUnitPacket) PayloadHeader ¶ added in v1.7.1
func (p *H265SingleNALUnitPacket) PayloadHeader() H265NALUHeader
PayloadHeader returns the NALU header of the packet.
func (*H265SingleNALUnitPacket) Unmarshal ¶ added in v1.7.1
func (p *H265SingleNALUnitPacket) Unmarshal(payload []byte) ([]byte, error)
Unmarshal parses the passed byte slice and stores the result in the H265SingleNALUnitPacket this method is called upon.
func (*H265SingleNALUnitPacket) WithDONL ¶ added in v1.7.1
func (p *H265SingleNALUnitPacket) WithDONL(value bool)
WithDONL can be called to specify whether or not DONL might be parsed. DONL may need to be parsed if `sprop-max-don-diff` is greater than 0 on the RTP stream.
type H265TSCI ¶ added in v1.7.1
type H265TSCI uint32
H265TSCI is a Temporal Scalability Control Information header extension. Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.5
type OpusPacket ¶
type OpusPacket struct {
Payload []byte
// contains filtered or unexported fields
}
OpusPacket represents the Opus header that is stored in the payload of an RTP Packet
func (*OpusPacket) IsPartitionHead ¶ added in v1.7.2
func (*OpusPacket) IsPartitionTail ¶ added in v1.7.2
type OpusPartitionHeadChecker ¶ added in v1.2.0
type OpusPartitionHeadChecker struct{}
OpusPartitionHeadChecker is obsolete
type VP8Packet ¶
type VP8Packet struct {
// Required Header
X uint8 /* extended control bits present */
N uint8 /* when set to 1 this frame can be discarded */
S uint8 /* start of VP8 partition */
PID uint8 /* partition index */
// Extended control bits
I uint8 /* 1 if PictureID is present */
L uint8 /* 1 if TL0PICIDX is present */
T uint8 /* 1 if TID is present */
K uint8 /* 1 if KEYIDX is present */
// Optional extension
PictureID uint16 /* 8 or 16 bits, picture ID */
TL0PICIDX uint8 /* 8 bits temporal level zero index */
TID uint8 /* 2 bits temporal layer index */
Y uint8 /* 1 bit layer sync bit */
KEYIDX uint8 /* 5 bits temporal key frame index */
Payload []byte
// contains filtered or unexported fields
}
VP8Packet represents the VP8 header that is stored in the payload of an RTP Packet
func (*VP8Packet) IsPartitionHead ¶ added in v1.7.2
IsPartitionHead checks whether if this is a head of the VP8 partition
func (*VP8Packet) IsPartitionTail ¶ added in v1.7.2
type VP8PartitionHeadChecker ¶ added in v1.2.0
type VP8PartitionHeadChecker struct{}
VP8PartitionHeadChecker is obsolete
type VP8Payloader ¶
type VP8Payloader struct {
EnablePictureID bool
// contains filtered or unexported fields
}
VP8Payloader payloads VP8 packets
type VP9Packet ¶ added in v1.3.0
type VP9Packet struct {
// Required header
I bool // PictureID is present
P bool // Inter-picture predicted frame
L bool // Layer indices is present
F bool // Flexible mode
B bool // Start of a frame
E bool // End of a frame
V bool // Scalability structure (SS) data present
Z bool // Not a reference frame for upper spatial layers
// Recommended headers
PictureID uint16 // 7 or 16 bits, picture ID
// Conditionally recommended headers
TID uint8 // Temporal layer ID
U bool // Switching up point
SID uint8 // Spatial layer ID
D bool // Inter-layer dependency used
// Conditionally required headers
PDiff []uint8 // Reference index (F=1)
TL0PICIDX uint8 // Temporal layer zero index (F=0)
// Scalability structure headers
NS uint8 // N_S + 1 indicates the number of spatial layers present in the VP9 stream
Y bool // Each spatial layer's frame resolution present
G bool // PG description present flag.
NG uint8 // N_G indicates the number of pictures in a Picture Group (PG)
Width []uint16
Height []uint16
PGTID []uint8 // Temporal layer ID of pictures in a Picture Group
PGU []bool // Switching up point of pictures in a Picture Group
PGPDiff [][]uint8 // Reference indecies of pictures in a Picture Group
Payload []byte
// contains filtered or unexported fields
}
VP9Packet represents the VP9 header that is stored in the payload of an RTP Packet
func (*VP9Packet) IsPartitionHead ¶ added in v1.7.2
IsPartitionHead checks whether if this is a head of the VP9 partition
func (*VP9Packet) IsPartitionTail ¶ added in v1.7.2
type VP9PartitionHeadChecker ¶ added in v1.3.0
type VP9PartitionHeadChecker struct{}
VP9PartitionHeadChecker is obsolete
type VP9Payloader ¶ added in v1.3.0
type VP9Payloader struct {
// InitialPictureIDFn is a function that returns random initial picture ID.
InitialPictureIDFn func() uint16
// contains filtered or unexported fields
}
VP9Payloader payloads VP9 packets