Debian Codegraph @

transport_layer_cc_test.go

raw symbols SCIP
1 // SPDX-FileCopyrightText: 2026 The Pion community <https://pion.ly>
2 // SPDX-License-Identifier: MIT
3
4 package rtcpscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/
5
6 import (
7 "testingscip-go gomod github.com/golang/go/src go1.24.0 testing/"
8
9 "github.com/stretchr/testify/assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/"
10 )
11
12 var _ Packetscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Packet# = (*TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#)(nil) // assert is a Packet
13
14 func TestTransportLayerCC_RunLengthChunkUnmarshalscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TestTransportLayerCC_RunLengthChunkUnmarshal().(t *testingscip-go gomod github.com/golang/go/src go1.24.0 testing/.Tscip-go gomod github.com/golang/go/src go1.24.0 testing/T#) {
15 for _, test := range []struct {
16 Name string
17 Data []byte
18 Want RunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#
19 WantError error
20 }{
21 {
22 // 3.1.3 example1: https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#page-7
23 Name: "example1",
24 Data: []byte{0, 0xDD},
25 Want: RunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#{
26 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#Type.: TypeTCCRunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCRunLengthChunk.,
27 PacketStatusSymbolscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#PacketStatusSymbol.: TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
28 RunLengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#RunLength.: 221,
29 },
30 WantError: nil,
31 },
32 {
33 // 3.1.3 example2: https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#page-7
34 Name: "example2",
35 Data: []byte{0x60, 0x18},
36 Want: RunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#{
37 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#Type.: TypeTCCRunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCRunLengthChunk.,
38 PacketStatusSymbolscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#PacketStatusSymbol.: TypeTCCPacketReceivedWithoutDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedWithoutDelta.,
39 RunLengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#RunLength.: 24,
40 },
41 WantError: nil,
42 },
43 } {
44 var chunk RunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#
45 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.NoErrorscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/NoError().(t, chunk.Unmarshalscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#Unmarshal().(test.Data))
46 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalfscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equalf().(t, test.Want, chunk, "Unmarshal %q", test.Name)
47 }
48 }
49
50 func TestTransportLayerCCUnmarshalMaxLengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TestTransportLayerCCUnmarshalMaxLength().(t *testingscip-go gomod github.com/golang/go/src go1.24.0 testing/.Tscip-go gomod github.com/golang/go/src go1.24.0 testing/T#) {
51 rawPacket := make([]byte, 4*(0xFFFF+1))
52 rawPacket[0] = 0x8f
53 rawPacket[1] = 0xcd
54 rawPacket[2] = 0xff
55 rawPacket[3] = 0xff
56
57 var packet TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#
58 err := packet.Unmarshalscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#Unmarshal().(rawPacket)
59 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.NoErrorscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/NoError().(t, err)
60 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, uint16(0xFFFF), packet.Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#Header..Lengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Length.)
61 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Zeroscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Zero().(t, packet.PacketStatusCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketStatusCount.)
62 }
63
64 func TestTransportLayerCC_RunLengthChunkMarshalscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TestTransportLayerCC_RunLengthChunkMarshal().(t *testingscip-go gomod github.com/golang/go/src go1.24.0 testing/.Tscip-go gomod github.com/golang/go/src go1.24.0 testing/T#) {
65 for _, test := range []struct {
66 Name string
67 Data RunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#
68 Want []byte
69 WantError error
70 }{
71 {
72 // 3.1.3 example1: https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#page-7
73 Name: "example1",
74 Data: RunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#{
75 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#Type.: TypeTCCRunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCRunLengthChunk.,
76 PacketStatusSymbolscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#PacketStatusSymbol.: TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
77 RunLengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#RunLength.: 221,
78 },
79 Want: []byte{0, 0xDD},
80 WantError: nil,
81 },
82 {
83 // 3.1.3 example2: https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#page-7
84 Name: "example2",
85 Data: RunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#{
86 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#Type.: TypeTCCRunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCRunLengthChunk.,
87 PacketStatusSymbolscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#PacketStatusSymbol.: TypeTCCPacketReceivedWithoutDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedWithoutDelta.,
88 RunLengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#RunLength.: 24,
89 },
90 Want: []byte{0x60, 0x18},
91 WantError: nil,
92 },
93 } {
94 chunk := test.Data
95 data, _ := chunk.Marshalscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#Marshal().()
96 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalfscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equalf().(t, test.Want, data, "Marshal %q", test.Name)
97 }
98 }
99
100 func TestTransportLayerCC_StatusVectorChunkUnmarshalscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TestTransportLayerCC_StatusVectorChunkUnmarshal().(t *testingscip-go gomod github.com/golang/go/src go1.24.0 testing/.Tscip-go gomod github.com/golang/go/src go1.24.0 testing/T#) {
101 for _, test := range []struct {
102 Name string
103 Data []byte
104 Want StatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#
105 WantError error
106 }{
107 {
108 // 3.1.4 example1: https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#page-7
109 Name: "example1",
110 Data: []byte{0x9F, 0x1C},
111 Want: StatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#{
112 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#Type.: TypeTCCStatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCStatusVectorChunk.,
113 SymbolSizescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolSize.: TypeTCCSymbolSizeOneBitscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCSymbolSizeOneBit.,
114 SymbolListscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolList.: []uint16{
115 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
116 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
117 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
118 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
119 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
120 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
121 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
122 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
123 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
124 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
125 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
126 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
127 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
128 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
129 },
130 },
131 WantError: nil,
132 },
133 {
134 // 3.1.4 example2: https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#page-7
135 Name: "example2",
136 Data: []byte{0xCD, 0x50},
137 Want: StatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#{
138 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#Type.: TypeTCCStatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCStatusVectorChunk.,
139 SymbolSizescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolSize.: TypeTCCSymbolSizeTwoBitscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCSymbolSizeTwoBit.,
140 SymbolListscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolList.: []uint16{
141 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
142 TypeTCCPacketReceivedWithoutDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedWithoutDelta.,
143 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
144 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
145 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
146 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
147 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
148 },
149 },
150 WantError: nil,
151 },
152 } {
153 var chunk StatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#
154 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.NoErrorfscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/NoErrorf().(t, chunk.Unmarshalscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#Unmarshal().(test.Data), "Unmarshal %q", test.Name)
155 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalfscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equalf().(t, test.Want.Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#Type., chunk.Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#Type., "Unmarshal %q", test.Name)
156 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalfscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equalf().(t, test.Want.SymbolSizescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolSize., chunk.SymbolSizescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolSize., "Unmarshal %q", test.Name)
157 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalfscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equalf().(t, test.Want.SymbolListscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolList., chunk.SymbolListscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolList., "Unmarshal %q", test.Name)
158 }
159 }
160
161 func TestTransportLayerCC_StatusVectorChunkMarshalscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TestTransportLayerCC_StatusVectorChunkMarshal().(t *testingscip-go gomod github.com/golang/go/src go1.24.0 testing/.Tscip-go gomod github.com/golang/go/src go1.24.0 testing/T#) {
162 for _, test := range []struct {
163 Name string
164 Data StatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#
165 Want []byte
166 WantError error
167 }{
168 {
169 // 3.1.4 example1: https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#page-7
170 Name: "example1",
171 Data: StatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#{
172 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#Type.: TypeTCCStatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCStatusVectorChunk.,
173 SymbolSizescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolSize.: TypeTCCSymbolSizeOneBitscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCSymbolSizeOneBit.,
174 SymbolListscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolList.: []uint16{
175 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
176 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
177 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
178 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
179 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
180 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
181 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
182 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
183 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
184 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
185 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
186 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
187 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
188 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
189 },
190 },
191 Want: []byte{0x9F, 0x1C},
192 WantError: nil,
193 },
194 {
195 // 3.1.4 example2: https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#page-7
196 Name: "example2",
197 Data: StatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#{
198 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#Type.: TypeTCCStatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCStatusVectorChunk.,
199 SymbolSizescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolSize.: TypeTCCSymbolSizeTwoBitscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCSymbolSizeTwoBit.,
200 SymbolListscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolList.: []uint16{
201 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
202 TypeTCCPacketReceivedWithoutDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedWithoutDelta.,
203 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
204 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
205 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
206 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
207 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
208 },
209 },
210 Want: []byte{0xCD, 0x50},
211 WantError: nil,
212 },
213 } {
214 chunk := test.Data
215 data, _ := chunk.Marshalscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#Marshal().()
216 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, test.Want, data, "Unmarshal %q", test.Name)
217 }
218 }
219
220 func TestTransportLayerCC_RecvDeltaUnmarshalscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TestTransportLayerCC_RecvDeltaUnmarshal().(t *testingscip-go gomod github.com/golang/go/src go1.24.0 testing/.Tscip-go gomod github.com/golang/go/src go1.24.0 testing/T#) {
221 for _, test := range []struct {
222 Name string
223 Data []byte
224 Want RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#
225 WantError error
226 }{
227 {
228 Name: "small delta 63.75ms",
229 Data: []byte{0xFF},
230 Want: RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#{
231 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
232 // 255 * 250
233 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 63750,
234 },
235 WantError: nil,
236 },
237 {
238 Name: "big delta 8191.75ms",
239 Data: []byte{0x7F, 0xFF},
240 Want: RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#{
241 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedLargeDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedLargeDelta.,
242 // 32767 * 250
243 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 8191750,
244 },
245 WantError: nil,
246 },
247 {
248 Name: "big delta -8192ms",
249 Data: []byte{0x80, 0x00},
250 Want: RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#{
251 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedLargeDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedLargeDelta.,
252 // -32768 * 250
253 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: -8192000,
254 },
255 WantError: nil,
256 },
257 } {
258 var chunk RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#
259 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.NoErrorfscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/NoErrorf().(t, chunk.Unmarshalscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Unmarshal().(test.Data), "Unmarshal %q", test.Name)
260 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalfscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equalf().(t, test.Want, chunk, "Unmarshal %q", test.Name)
261 }
262 }
263
264 func TestTransportLayerCC_RecvDeltaMarshalscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TestTransportLayerCC_RecvDeltaMarshal().(t *testingscip-go gomod github.com/golang/go/src go1.24.0 testing/.Tscip-go gomod github.com/golang/go/src go1.24.0 testing/T#) {
265 for _, test := range []struct {
266 Name string
267 Data RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#
268 Want []byte
269 WantError error
270 }{
271 {
272 Name: "small delta 63.75ms",
273 Data: RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#{
274 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
275 // 255 * 250
276 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 63750,
277 },
278 Want: []byte{0xFF},
279 WantError: nil,
280 },
281 {
282 Name: "big delta 8191.75ms",
283 Data: RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#{
284 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedLargeDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedLargeDelta.,
285 // 32767 * 250
286 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 8191750,
287 },
288 Want: []byte{0x7F, 0xFF},
289 WantError: nil,
290 },
291 {
292 Name: "big delta -8192ms",
293 Data: RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#{
294 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedLargeDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedLargeDelta.,
295 // -32768 * 250
296 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: -8192000,
297 },
298 Want: []byte{0x80, 0x00},
299 WantError: nil,
300 },
301 } {
302 chunk := test.Data
303 data, _ := chunk.Marshalscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Marshal().()
304 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalfscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equalf().(t, test.Want, data, "Unmarshal %q", test.Name)
305 }
306 }
307
308 // 0 1 2 3
309 // 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
310 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
311 // |V=2|P| FMT=15 | PT=205 | length |
312 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
313 // | SSRC of packet sender |
314 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
315 // | SSRC of media source |
316 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
317 // | base sequence number | packet status count |
318 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
319 // | reference time | fb pkt. count |
320 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
321 // | packet chunk | recv delta | recv delta |
322 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
323 // 0b10101111,0b11001101,0b00000000,0b00000101,
324 // 0b11111010,0b00010111,0b11111010,0b00010111,
325 // 0b01000011,0b00000011,0b00101111,0b10100000,
326 // 0b00000000,0b10011001,0b00000000,0b00000001,
327 // 0b00111101,0b11101000,0b00000010,0b00010111,
328 // 0b00100000,0b00000001,0b10010100,0b00000001,
329 // .
330 //
331 //nolint:maintidx
332 func TestTransportLayerCC_Unmarshalscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TestTransportLayerCC_Unmarshal().(t *testingscip-go gomod github.com/golang/go/src go1.24.0 testing/.Tscip-go gomod github.com/golang/go/src go1.24.0 testing/T#) {
333 for _, test := range []struct {
334 Name string
335 Data []byte
336 Want TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#
337 WantError error
338 }{
339 {
340 Name: "example1",
341 Data: []byte{
342 0xaf, 0xcd, 0x0, 0x5,
343 0xfa, 0x17, 0xfa, 0x17,
344 0x43, 0x3, 0x2f, 0xa0,
345 0x0, 0x99, 0x0, 0x1,
346 0x3d, 0xe8, 0x2, 0x17,
347 0x20, 0x1, 0x94, 0x1,
348 },
349 Want: TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#{
350 Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#Header.: Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#{
351 Paddingscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Padding.: true,
352 Countscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Count.: FormatTCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/FormatTCC.,
353 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Type.: TypeTransportSpecificFeedbackscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTransportSpecificFeedback.,
354 Lengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Length.: 5,
355 },
356 SenderSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#SenderSSRC.: 4195875351,
357 MediaSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#MediaSSRC.: 1124282272,
358 BaseSequenceNumberscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#BaseSequenceNumber.: 153,
359 PacketStatusCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketStatusCount.: 1,
360 ReferenceTimescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#ReferenceTime.: 4057090,
361 FbPktCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#FbPktCount.: 23,
362 // 0b00100000, 0b00000001
363 PacketChunksscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketChunks.: []PacketStatusChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/PacketStatusChunk#{
364 &RunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#{
365 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#Type.: TypeTCCRunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCRunLengthChunk.,
366 PacketStatusSymbolscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#PacketStatusSymbol.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
367 RunLengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#RunLength.: 1,
368 },
369 },
370 // 0b10010100
371 RecvDeltasscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#RecvDeltas.: []*RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#{
372 {
373 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
374 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 37000,
375 },
376 },
377 },
378 WantError: nil,
379 },
380 {
381 Name: "example2",
382 Data: []byte{
383 0xaf, 0xcd, 0x0, 0x6,
384 0xfa, 0x17, 0xfa, 0x17,
385 0x19, 0x3d, 0xd8, 0xbb,
386 0x1, 0x74, 0x0, 0xe,
387 0x45, 0xb1, 0x5a, 0x40,
388 0xd8, 0x0, 0xf0, 0xff,
389 0xd0, 0x0, 0x0, 0x3,
390 },
391 Want: TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#{
392 Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#Header.: Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#{
393 Paddingscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Padding.: true,
394 Countscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Count.: FormatTCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/FormatTCC.,
395 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Type.: TypeTransportSpecificFeedbackscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTransportSpecificFeedback.,
396 Lengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Length.: 6,
397 },
398 SenderSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#SenderSSRC.: 4195875351,
399 MediaSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#MediaSSRC.: 423483579,
400 BaseSequenceNumberscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#BaseSequenceNumber.: 372,
401 PacketStatusCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketStatusCount.: 14,
402 ReferenceTimescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#ReferenceTime.: 4567386,
403 FbPktCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#FbPktCount.: 64,
404 PacketChunksscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketChunks.: []PacketStatusChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/PacketStatusChunk#{
405 &StatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#{
406 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#Type.: TypeTCCStatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCStatusVectorChunk.,
407 SymbolSizescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolSize.: TypeTCCSymbolSizeTwoBitscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCSymbolSizeTwoBit.,
408 SymbolListscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolList.: []uint16{
409 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
410 TypeTCCPacketReceivedLargeDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedLargeDelta.,
411 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
412 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
413 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
414 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
415 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
416 },
417 },
418 &StatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#{
419 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#Type.: TypeTCCStatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCStatusVectorChunk.,
420 SymbolSizescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolSize.: TypeTCCSymbolSizeTwoBitscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCSymbolSizeTwoBit.,
421 SymbolListscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolList.: []uint16{
422 TypeTCCPacketReceivedWithoutDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedWithoutDelta.,
423 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
424 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
425 TypeTCCPacketReceivedWithoutDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedWithoutDelta.,
426 TypeTCCPacketReceivedWithoutDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedWithoutDelta.,
427 TypeTCCPacketReceivedWithoutDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedWithoutDelta.,
428 TypeTCCPacketReceivedWithoutDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedWithoutDelta.,
429 },
430 },
431 },
432 // 0b10010100
433 RecvDeltasscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#RecvDeltas.: []*RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#{
434 {
435 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
436 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 52000,
437 },
438 {
439 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedLargeDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedLargeDelta.,
440 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 0,
441 },
442 },
443 },
444 WantError: nil,
445 },
446 {
447 Name: "example3",
448 Data: []byte{
449 0xaf, 0xcd, 0x0, 0x7,
450 0xfa, 0x17, 0xfa, 0x17,
451 0x19, 0x3d, 0xd8, 0xbb,
452 0x1, 0x74, 0x0, 0x6,
453 0x45, 0xb1, 0x5a, 0x40,
454 0x40, 0x2, 0x20, 0x04,
455 0x1f, 0xfe, 0x1f, 0x9a,
456 0xd0, 0x0, 0xd0, 0x0,
457 },
458 Want: TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#{
459 Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#Header.: Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#{
460 Paddingscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Padding.: true,
461 Countscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Count.: FormatTCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/FormatTCC.,
462 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Type.: TypeTransportSpecificFeedbackscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTransportSpecificFeedback.,
463 Lengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Length.: 7,
464 },
465 SenderSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#SenderSSRC.: 4195875351,
466 MediaSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#MediaSSRC.: 423483579,
467 BaseSequenceNumberscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#BaseSequenceNumber.: 372,
468 PacketStatusCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketStatusCount.: 6,
469 ReferenceTimescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#ReferenceTime.: 4567386,
470 FbPktCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#FbPktCount.: 64,
471 PacketChunksscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketChunks.: []PacketStatusChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/PacketStatusChunk#{
472 &RunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#{
473 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#Type.: TypeTCCRunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCRunLengthChunk.,
474 PacketStatusSymbolscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#PacketStatusSymbol.: TypeTCCPacketReceivedLargeDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedLargeDelta.,
475 RunLengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#RunLength.: 2,
476 },
477 &RunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#{
478 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#Type.: TypeTCCRunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCRunLengthChunk.,
479 PacketStatusSymbolscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#PacketStatusSymbol.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
480 RunLengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#RunLength.: 4,
481 },
482 },
483 RecvDeltasscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#RecvDeltas.: []*RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#{
484 {
485 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedLargeDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedLargeDelta.,
486 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 2047500,
487 },
488 {
489 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedLargeDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedLargeDelta.,
490 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 2022500,
491 },
492 {
493 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
494 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 52000,
495 },
496 {
497 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
498 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 0,
499 },
500 {
501 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
502 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 52000,
503 },
504 {
505 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
506 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 0,
507 },
508 },
509 },
510 WantError: nil,
511 },
512 {
513 Name: "example4",
514 Data: []byte{
515 0xaf, 0xcd, 0x0, 0x7,
516 0xfa, 0x17, 0xfa, 0x17,
517 0x19, 0x3d, 0xd8, 0xbb,
518 0x0, 0x4, 0x0, 0x7,
519 0x10, 0x63, 0x6e, 0x1,
520 0x20, 0x7, 0x4c, 0x24,
521 0x24, 0x10, 0xc, 0xc,
522 0x10, 0x0, 0x0, 0x3,
523 },
524 Want: TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#{
525 Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#Header.: Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#{
526 Paddingscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Padding.: true,
527 Countscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Count.: FormatTCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/FormatTCC.,
528 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Type.: TypeTransportSpecificFeedbackscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTransportSpecificFeedback.,
529 Lengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Length.: 7,
530 },
531 SenderSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#SenderSSRC.: 4195875351,
532 MediaSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#MediaSSRC.: 423483579,
533 BaseSequenceNumberscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#BaseSequenceNumber.: 4,
534 PacketStatusCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketStatusCount.: 7,
535 ReferenceTimescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#ReferenceTime.: 1074030,
536 FbPktCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#FbPktCount.: 1,
537 PacketChunksscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketChunks.: []PacketStatusChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/PacketStatusChunk#{
538 &RunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#{
539 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#Type.: TypeTCCRunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCRunLengthChunk.,
540 PacketStatusSymbolscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#PacketStatusSymbol.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
541 RunLengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#RunLength.: 7,
542 },
543 },
544 RecvDeltasscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#RecvDeltas.: []*RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#{
545 {
546 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
547 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 19000,
548 },
549 {
550 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
551 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 9000,
552 },
553 {
554 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
555 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 9000,
556 },
557 {
558 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
559 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 4000,
560 },
561 {
562 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
563 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 3000,
564 },
565 {
566 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
567 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 3000,
568 },
569 {
570 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
571 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 4000,
572 },
573 },
574 },
575 WantError: nil,
576 },
577 {
578 Name: "example5",
579 Data: []byte{
580 0xaf, 0xcd, 0x0, 0x6,
581 0xfa, 0x17, 0xfa, 0x17,
582 0x19, 0x3d, 0xd8, 0xbb,
583 0x0, 0x1, 0x0, 0xe,
584 0x10, 0x63, 0x6d, 0x0,
585 0xba, 0x0, 0x10, 0xc,
586 0xc, 0x10, 0x0, 0x3,
587 },
588 Want: TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#{
589 Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#Header.: Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#{
590 Paddingscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Padding.: true,
591 Countscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Count.: FormatTCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/FormatTCC.,
592 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Type.: TypeTransportSpecificFeedbackscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTransportSpecificFeedback.,
593 Lengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Length.: 6,
594 },
595 SenderSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#SenderSSRC.: 4195875351,
596 MediaSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#MediaSSRC.: 423483579,
597 BaseSequenceNumberscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#BaseSequenceNumber.: 1,
598 PacketStatusCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketStatusCount.: 14,
599 ReferenceTimescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#ReferenceTime.: 1074029,
600 FbPktCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#FbPktCount.: 0,
601 PacketChunksscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketChunks.: []PacketStatusChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/PacketStatusChunk#{
602 &StatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#{
603 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#Type.: TypeTCCStatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCStatusVectorChunk.,
604 SymbolSizescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolSize.: 0,
605 SymbolListscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolList.: []uint16{
606 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
607 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
608 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
609 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
610 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
611 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
612 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
613 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
614 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
615 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
616 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
617 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
618 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
619 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
620 },
621 },
622 },
623 RecvDeltasscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#RecvDeltas.: []*RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#{
624 {
625 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
626 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 4000,
627 },
628 {
629 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
630 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 3000,
631 },
632 {
633 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
634 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 3000,
635 },
636 {
637 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
638 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 4000,
639 },
640 },
641 },
642 WantError: nil,
643 },
644 {
645 Name: "example6",
646 Data: []byte{
647 0xaf, 0xcd, 0x0, 0x7,
648 0x9b, 0x74, 0xf6, 0x1f,
649 0x93, 0x71, 0xdc, 0xbc,
650 0x85, 0x3c, 0x0, 0x9,
651 0x63, 0xf9, 0x16, 0xb3,
652 0xd5, 0x52, 0x0, 0x30,
653 0x9b, 0xaa, 0x6a, 0xaa,
654 0x7b, 0x1, 0x9, 0x1,
655 },
656 Want: TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#{
657 Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#Header.: Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#{
658 Paddingscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Padding.: true,
659 Countscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Count.: FormatTCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/FormatTCC.,
660 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Type.: TypeTransportSpecificFeedbackscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTransportSpecificFeedback.,
661 Lengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Length.: 7,
662 },
663 SenderSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#SenderSSRC.: 2608133663,
664 MediaSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#MediaSSRC.: 2473712828,
665 BaseSequenceNumberscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#BaseSequenceNumber.: 34108,
666 PacketStatusCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketStatusCount.: 9,
667 ReferenceTimescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#ReferenceTime.: 6551830,
668 FbPktCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#FbPktCount.: 179,
669 PacketChunksscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketChunks.: []PacketStatusChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/PacketStatusChunk#{
670 &StatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#{
671 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#Type.: TypeTCCStatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCStatusVectorChunk.,
672 SymbolSizescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolSize.: TypeTCCSymbolSizeTwoBitscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCSymbolSizeTwoBit.,
673 SymbolListscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolList.: []uint16{
674 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
675 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
676 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
677 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
678 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
679 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
680 TypeTCCPacketReceivedLargeDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedLargeDelta.,
681 },
682 },
683 &RunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#{
684 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#Type.: TypeTCCRunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCRunLengthChunk.,
685 PacketStatusSymbolscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#PacketStatusSymbol.: TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
686 RunLengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#RunLength.: 48,
687 },
688 },
689 RecvDeltasscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#RecvDeltas.: []*RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#{
690 {
691 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
692 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 38750,
693 },
694 {
695 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
696 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 42500,
697 },
698 {
699 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
700 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 26500,
701 },
702 {
703 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
704 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 42500,
705 },
706 {
707 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
708 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 30750,
709 },
710 {
711 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedLargeDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedLargeDelta.,
712 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 66250,
713 },
714 },
715 },
716 WantError: nil,
717 },
718 {
719 Name: "example7",
720 Data: []byte{
721 0x8f, 0xcd, 0x0, 0x4,
722 0x9a, 0xcb, 0x4, 0x42,
723 0x0, 0x0, 0x0, 0x0,
724 0x0, 0x0, 0x0, 0x0,
725 0x0, 0x0, 0x0, 0x0,
726 },
727 Want: TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#{
728 Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#Header.: Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#{
729 Paddingscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Padding.: false,
730 Countscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Count.: FormatTCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/FormatTCC.,
731 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Type.: TypeTransportSpecificFeedbackscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTransportSpecificFeedback.,
732 Lengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Length.: 4,
733 },
734 SenderSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#SenderSSRC.: 2596996162,
735 MediaSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#MediaSSRC.: 0,
736 BaseSequenceNumberscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#BaseSequenceNumber.: 0,
737 PacketStatusCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketStatusCount.: 0,
738 ReferenceTimescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#ReferenceTime.: 0,
739 FbPktCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#FbPktCount.: 0,
740 },
741 WantError: nil,
742 },
743 {
744 Name: "example8",
745 Data: []byte{
746 0xaf, 0xcd, 0x0, 0x5,
747 0xfa, 0x17, 0xfa, 0x17,
748 0x43, 0x3, 0x2f, 0xa0,
749 0x0, 0x99, 0x0, 0x3,
750 0x3d, 0xe8, 0x2, 0x17,
751 0x20, 0x3, 0x94, 0x1,
752 },
753 Want: TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#{},
754 WantError: errPacketTooShortscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/errPacketTooShort.,
755 },
756 {
757 Name: "example9",
758 Data: []byte{
759 0xaf, 0xcd, 0x0, 0x5,
760 0xfa, 0x17, 0xfa, 0x17,
761 0x43, 0x3, 0x2f, 0xa0,
762 0x0, 0x99, 0x0, 0x2,
763 0x3d, 0xe8, 0x2, 0x17,
764 0x40, 0x2, 0x94, 0x1,
765 },
766 Want: TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#{},
767 WantError: errPacketTooShortscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/errPacketTooShort.,
768 },
769 } {
770 t.Runscip-go gomod github.com/golang/go/src go1.24.0 testing/T#Run().(test.Name, func(t *testingscip-go gomod github.com/golang/go/src go1.24.0 testing/.Tscip-go gomod github.com/golang/go/src go1.24.0 testing/T#) {
771 var chunk TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#
772 err := chunk.Unmarshalscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#Unmarshal().(test.Data)
773 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.ErrorIsfscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/ErrorIsf().(t, err, test.WantError, "Unmarshal %q", test.Name)
774 if err != nil {
775 return
776 }
777 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalfscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equalf().(t, test.Want, chunk, "Unmarshal %q", test.Name)
778 })
779 }
780 }
781
782 //nolint:maintidx
783 func TestTransportLayerCC_Marshalscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TestTransportLayerCC_Marshal().(t *testingscip-go gomod github.com/golang/go/src go1.24.0 testing/.Tscip-go gomod github.com/golang/go/src go1.24.0 testing/T#) {
784 for _, test := range []struct {
785 Name string
786 Data TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#
787 Want []byte
788 WantError error
789 }{
790 {
791 Name: "example1",
792 Data: TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#{
793 Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#Header.: Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#{
794 Paddingscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Padding.: true,
795 Countscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Count.: FormatTCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/FormatTCC.,
796 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Type.: TypeTransportSpecificFeedbackscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTransportSpecificFeedback.,
797 Lengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Length.: 5,
798 },
799 SenderSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#SenderSSRC.: 4195875351,
800 MediaSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#MediaSSRC.: 1124282272,
801 BaseSequenceNumberscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#BaseSequenceNumber.: 153,
802 PacketStatusCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketStatusCount.: 1,
803 ReferenceTimescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#ReferenceTime.: 4057090,
804 FbPktCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#FbPktCount.: 23,
805 // 0b00100000, 0b00000001
806 PacketChunksscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketChunks.: []PacketStatusChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/PacketStatusChunk#{
807 &RunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#{
808 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#Type.: TypeTCCRunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCRunLengthChunk.,
809 PacketStatusSymbolscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#PacketStatusSymbol.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
810 RunLengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#RunLength.: 1,
811 },
812 },
813 // 0b10010100
814 RecvDeltasscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#RecvDeltas.: []*RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#{
815 {
816 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
817 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 37000,
818 },
819 },
820 },
821 Want: []byte{
822 0xaf, 0xcd, 0x0, 0x5,
823 0xfa, 0x17, 0xfa, 0x17,
824 0x43, 0x3, 0x2f, 0xa0,
825 0x0, 0x99, 0x0, 0x1,
826 0x3d, 0xe8, 0x2, 0x17,
827 0x20, 0x1, 0x94, 0x1,
828 },
829 WantError: nil,
830 },
831 {
832 Name: "example2",
833 Data: TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#{
834 Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#Header.: Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#{
835 Paddingscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Padding.: true,
836 Countscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Count.: FormatTCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/FormatTCC.,
837 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Type.: TypeTransportSpecificFeedbackscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTransportSpecificFeedback.,
838 Lengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Length.: 6,
839 },
840 SenderSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#SenderSSRC.: 4195875351,
841 MediaSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#MediaSSRC.: 423483579,
842 BaseSequenceNumberscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#BaseSequenceNumber.: 372,
843 PacketStatusCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketStatusCount.: 2,
844 ReferenceTimescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#ReferenceTime.: 4567386,
845 FbPktCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#FbPktCount.: 64,
846 PacketChunksscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketChunks.: []PacketStatusChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/PacketStatusChunk#{
847 &StatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#{
848 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#Type.: TypeTCCStatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCStatusVectorChunk.,
849 SymbolSizescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolSize.: TypeTCCSymbolSizeTwoBitscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCSymbolSizeTwoBit.,
850 SymbolListscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolList.: []uint16{
851 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
852 TypeTCCPacketReceivedLargeDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedLargeDelta.,
853 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
854 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
855 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
856 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
857 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
858 },
859 },
860 &StatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#{
861 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#Type.: TypeTCCStatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCStatusVectorChunk.,
862 SymbolSizescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolSize.: TypeTCCSymbolSizeTwoBitscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCSymbolSizeTwoBit.,
863 SymbolListscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolList.: []uint16{
864 TypeTCCPacketReceivedWithoutDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedWithoutDelta.,
865 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
866 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
867 TypeTCCPacketReceivedWithoutDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedWithoutDelta.,
868 TypeTCCPacketReceivedWithoutDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedWithoutDelta.,
869 TypeTCCPacketReceivedWithoutDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedWithoutDelta.,
870 TypeTCCPacketReceivedWithoutDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedWithoutDelta.,
871 },
872 },
873 },
874 // 0b10010100
875 RecvDeltasscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#RecvDeltas.: []*RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#{
876 {
877 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
878 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 52000,
879 },
880 {
881 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedLargeDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedLargeDelta.,
882 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 0,
883 },
884 },
885 },
886 Want: []byte{
887 0xaf, 0xcd, 0x0, 0x6,
888 0xfa, 0x17, 0xfa, 0x17,
889 0x19, 0x3d, 0xd8, 0xbb,
890 0x1, 0x74, 0x0, 0x2,
891 0x45, 0xb1, 0x5a, 0x40,
892 0xd8, 0x0, 0xf0, 0xff,
893 0xd0, 0x0, 0x0, 0x1,
894 },
895 WantError: nil,
896 },
897 {
898 Name: "example3",
899 Data: TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#{
900 Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#Header.: Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#{
901 Paddingscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Padding.: true,
902 Countscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Count.: FormatTCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/FormatTCC.,
903 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Type.: TypeTransportSpecificFeedbackscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTransportSpecificFeedback.,
904 Lengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Length.: 7,
905 },
906 SenderSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#SenderSSRC.: 4195875351,
907 MediaSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#MediaSSRC.: 423483579,
908 BaseSequenceNumberscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#BaseSequenceNumber.: 372,
909 PacketStatusCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketStatusCount.: 6,
910 ReferenceTimescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#ReferenceTime.: 4567386,
911 FbPktCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#FbPktCount.: 64,
912 PacketChunksscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketChunks.: []PacketStatusChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/PacketStatusChunk#{
913 &RunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#{
914 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#Type.: TypeTCCRunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCRunLengthChunk.,
915 PacketStatusSymbolscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#PacketStatusSymbol.: TypeTCCPacketReceivedLargeDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedLargeDelta.,
916 RunLengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#RunLength.: 2,
917 },
918 &RunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#{
919 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#Type.: TypeTCCRunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCRunLengthChunk.,
920 PacketStatusSymbolscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#PacketStatusSymbol.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
921 RunLengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#RunLength.: 4,
922 },
923 },
924 RecvDeltasscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#RecvDeltas.: []*RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#{
925 {
926 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedLargeDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedLargeDelta.,
927 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 2047500,
928 },
929 {
930 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedLargeDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedLargeDelta.,
931 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 2022500,
932 },
933 {
934 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
935 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 52000,
936 },
937 {
938 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
939 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 0,
940 },
941 {
942 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
943 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 52000,
944 },
945 {
946 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
947 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 0,
948 },
949 },
950 },
951 Want: []byte{
952 0xaf, 0xcd, 0x0, 0x7,
953 0xfa, 0x17, 0xfa, 0x17,
954 0x19, 0x3d, 0xd8, 0xbb,
955 0x1, 0x74, 0x0, 0x6,
956 0x45, 0xb1, 0x5a, 0x40,
957 0x40, 0x2, 0x20, 0x04,
958 0x1f, 0xfe, 0x1f, 0x9a,
959 0xd0, 0x0, 0xd0, 0x0,
960 },
961 WantError: nil,
962 },
963 {
964 Name: "example4",
965 Data: TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#{
966 Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#Header.: Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#{
967 Paddingscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Padding.: true,
968 Countscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Count.: FormatTCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/FormatTCC.,
969 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Type.: TypeTransportSpecificFeedbackscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTransportSpecificFeedback.,
970 Lengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Length.: 7,
971 },
972 SenderSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#SenderSSRC.: 4195875351,
973 MediaSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#MediaSSRC.: 423483579,
974 BaseSequenceNumberscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#BaseSequenceNumber.: 4,
975 PacketStatusCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketStatusCount.: 7,
976 ReferenceTimescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#ReferenceTime.: 1074030,
977 FbPktCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#FbPktCount.: 1,
978 PacketChunksscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketChunks.: []PacketStatusChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/PacketStatusChunk#{
979 &RunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#{
980 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#Type.: TypeTCCRunLengthChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCRunLengthChunk.,
981 PacketStatusSymbolscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#PacketStatusSymbol.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
982 RunLengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RunLengthChunk#RunLength.: 7,
983 },
984 },
985 RecvDeltasscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#RecvDeltas.: []*RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#{
986 {
987 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
988 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 19000,
989 },
990 {
991 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
992 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 9000,
993 },
994 {
995 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
996 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 9000,
997 },
998 {
999 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1000 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 4000,
1001 },
1002 {
1003 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1004 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 3000,
1005 },
1006 {
1007 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1008 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 3000,
1009 },
1010 {
1011 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1012 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 4000,
1013 },
1014 },
1015 },
1016 Want: []byte{
1017 0xaf, 0xcd, 0x0, 0x7,
1018 0xfa, 0x17, 0xfa, 0x17,
1019 0x19, 0x3d, 0xd8, 0xbb,
1020 0x0, 0x4, 0x0, 0x7,
1021 0x10, 0x63, 0x6e, 0x1,
1022 0x20, 0x7, 0x4c, 0x24,
1023 0x24, 0x10, 0xc, 0xc,
1024 0x10, 0x0, 0x0, 0x3,
1025 },
1026 WantError: nil,
1027 },
1028 {
1029 Name: "example5",
1030 Data: TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#{
1031 Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#Header.: Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#{
1032 Paddingscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Padding.: true,
1033 Countscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Count.: FormatTCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/FormatTCC.,
1034 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Type.: TypeTransportSpecificFeedbackscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTransportSpecificFeedback.,
1035 Lengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Length.: 6,
1036 },
1037 SenderSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#SenderSSRC.: 4195875351,
1038 MediaSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#MediaSSRC.: 423483579,
1039 BaseSequenceNumberscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#BaseSequenceNumber.: 1,
1040 PacketStatusCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketStatusCount.: 14,
1041 ReferenceTimescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#ReferenceTime.: 1074029,
1042 FbPktCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#FbPktCount.: 0,
1043 PacketChunksscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketChunks.: []PacketStatusChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/PacketStatusChunk#{
1044 &StatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#{
1045 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#Type.: TypeTCCStatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCStatusVectorChunk.,
1046 SymbolSizescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolSize.: TypeTCCSymbolSizeOneBitscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCSymbolSizeOneBit.,
1047 SymbolListscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolList.: []uint16{
1048 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1049 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1050 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1051 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
1052 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1053 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
1054 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
1055 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
1056 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
1057 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
1058 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
1059 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
1060 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
1061 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
1062 },
1063 },
1064 },
1065 RecvDeltasscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#RecvDeltas.: []*RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#{
1066 {
1067 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1068 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 4000,
1069 },
1070 {
1071 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1072 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 3000,
1073 },
1074 {
1075 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1076 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 3000,
1077 },
1078 {
1079 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1080 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 4000,
1081 },
1082 },
1083 },
1084 Want: []byte{
1085 0xaf, 0xcd, 0x0, 0x6,
1086 0xfa, 0x17, 0xfa, 0x17,
1087 0x19, 0x3d, 0xd8, 0xbb,
1088 0x0, 0x1, 0x0, 0xe,
1089 0x10, 0x63, 0x6d, 0x0,
1090 0xba, 0x0, 0x10, 0xc,
1091 0xc, 0x10, 0x0, 0x2,
1092 },
1093 WantError: nil,
1094 },
1095 {
1096 Name: "example6",
1097 Data: TransportLayerCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#{
1098 Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#Header.: Headerscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#{
1099 Paddingscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Padding.: true,
1100 Countscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Count.: FormatTCCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/FormatTCC.,
1101 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Type.: TypeTransportSpecificFeedbackscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTransportSpecificFeedback.,
1102 Lengthscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/Header#Length.: 7,
1103 },
1104 SenderSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#SenderSSRC.: 4195875351,
1105 MediaSSRCscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#MediaSSRC.: 1124282272,
1106 BaseSequenceNumberscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#BaseSequenceNumber.: 39956,
1107 PacketStatusCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketStatusCount.: 12,
1108 ReferenceTimescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#ReferenceTime.: 7701536,
1109 FbPktCountscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#FbPktCount.: 0,
1110 PacketChunksscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#PacketChunks.: []PacketStatusChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/PacketStatusChunk#{
1111 &StatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#{
1112 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#Type.: TypeTCCStatusVectorChunkscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCStatusVectorChunk.,
1113 SymbolSizescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolSize.: TypeTCCSymbolSizeOneBitscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCSymbolSizeOneBit.,
1114 SymbolListscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/StatusVectorChunk#SymbolList.: []uint16{
1115 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1116 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1117 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1118 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1119 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1120 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
1121 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1122 TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1123 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
1124 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
1125 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
1126 TypeTCCPacketNotReceivedscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketNotReceived.,
1127 },
1128 },
1129 },
1130 RecvDeltasscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#RecvDeltas.: []*RecvDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#{
1131 {
1132 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1133 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 48250,
1134 },
1135 {
1136 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1137 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 15750,
1138 },
1139 {
1140 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1141 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 14750,
1142 },
1143 {
1144 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1145 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 15750,
1146 },
1147 {
1148 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1149 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 20750,
1150 },
1151 {
1152 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1153 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 36000,
1154 },
1155 {
1156 Typescip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Type.: TypeTCCPacketReceivedSmallDeltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TypeTCCPacketReceivedSmallDelta.,
1157 Deltascip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/RecvDelta#Delta.: 14750,
1158 },
1159 },
1160 },
1161 Want: []byte{
1162 0xaf, 0xcd, 0x0, 0x7,
1163 0xfa, 0x17, 0xfa, 0x17,
1164 0x43, 0x3, 0x2f, 0xa0,
1165 0x9c, 0x14, 0x0, 0xc,
1166 0x75, 0x84, 0x20, 0x0,
1167
1168 0xbe, 0xc0, 0xc1, 0x3f,
1169 0x3b, 0x3f, 0x53, 0x90,
1170 0x3b, 0x0, 0x0, 0x3,
1171 },
1172 WantError: nil,
1173 },
1174 } {
1175 t.Runscip-go gomod github.com/golang/go/src go1.24.0 testing/T#Run().(test.Name, func(t *testingscip-go gomod github.com/golang/go/src go1.24.0 testing/.Tscip-go gomod github.com/golang/go/src go1.24.0 testing/T#) {
1176 bin, err := test.Data.Marshalscip-go gomod github.com/pion/rtcp . `github.com/pion/rtcp`/TransportLayerCC#Marshal().()
1177 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.NoErrorscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/NoError().(t, err)
1178 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalfscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equalf().(t, test.Want, bin, "Marshal %q", test.Name)
1179 })
1180 }
1181 }