@@ -24,7 +24,7 @@ const H265NALU_PACI_PACKET_TYPE: u8 = 50;
24
24
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
25
25
/// |F| Type | layer_id | tid |
26
26
/// +-------------+-----------------+
27
- #[ derive( Default , Debug , Copy , Clone , PartialEq ) ]
27
+ #[ derive( Default , Debug , Copy , Clone , PartialEq , Eq ) ]
28
28
pub struct H265NALUHeader ( pub u16 ) ;
29
29
30
30
impl H265NALUHeader {
@@ -97,7 +97,7 @@ impl H265NALUHeader {
97
97
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
98
98
///
99
99
/// Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.1
100
- #[ derive( Default , Debug , Clone , PartialEq ) ]
100
+ #[ derive( Default , Debug , Clone , PartialEq , Eq ) ]
101
101
pub struct H265SingleNALUnitPacket {
102
102
/// payload_header is the header of the H265 packet.
103
103
payload_header : H265NALUHeader ,
@@ -186,7 +186,7 @@ impl H265SingleNALUnitPacket {
186
186
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
187
187
///
188
188
/// Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.2
189
- #[ derive( Default , Debug , Clone , PartialEq ) ]
189
+ #[ derive( Default , Debug , Clone , PartialEq , Eq ) ]
190
190
pub struct H265AggregationUnitFirst {
191
191
donl : Option < u16 > ,
192
192
nal_unit_size : u16 ,
@@ -226,7 +226,7 @@ impl H265AggregationUnitFirst {
226
226
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
227
227
///
228
228
/// Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.2
229
- #[ derive( Default , Debug , Clone , PartialEq ) ]
229
+ #[ derive( Default , Debug , Clone , PartialEq , Eq ) ]
230
230
pub struct H265AggregationUnit {
231
231
dond : Option < u8 > ,
232
232
nal_unit_size : u16 ,
@@ -266,7 +266,7 @@ impl H265AggregationUnit {
266
266
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
267
267
///
268
268
/// Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.2
269
- #[ derive( Default , Debug , Clone , PartialEq ) ]
269
+ #[ derive( Default , Debug , Clone , PartialEq , Eq ) ]
270
270
pub struct H265AggregationPacket {
271
271
first_unit : Option < H265AggregationUnitFirst > ,
272
272
other_units : Vec < H265AggregationUnit > ,
@@ -388,7 +388,7 @@ const H265FRAGMENTATION_UNIT_HEADER_SIZE: usize = 1;
388
388
/// +-+-+-+-+-+-+-+-+
389
389
/// |S|E| fu_type |
390
390
/// +---------------+
391
- #[ derive( Default , Debug , Copy , Clone , PartialEq ) ]
391
+ #[ derive( Default , Debug , Copy , Clone , PartialEq , Eq ) ]
392
392
pub struct H265FragmentationUnitHeader ( pub u8 ) ;
393
393
394
394
impl H265FragmentationUnitHeader {
@@ -427,7 +427,7 @@ impl H265FragmentationUnitHeader {
427
427
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
428
428
///
429
429
/// Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.3
430
- #[ derive( Default , Debug , Clone , PartialEq ) ]
430
+ #[ derive( Default , Debug , Clone , PartialEq , Eq ) ]
431
431
pub struct H265FragmentationUnitPacket {
432
432
/// payload_header is the header of the H265 packet.
433
433
payload_header : H265NALUHeader ,
@@ -526,7 +526,7 @@ impl H265FragmentationUnitPacket {
526
526
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
527
527
///
528
528
/// Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.4
529
- #[ derive( Default , Debug , Clone , PartialEq ) ]
529
+ #[ derive( Default , Debug , Clone , PartialEq , Eq ) ]
530
530
pub struct H265PACIPacket {
531
531
/// payload_header is the header of the H265 packet.
532
532
payload_header : H265NALUHeader ,
@@ -655,7 +655,7 @@ impl H265PACIPacket {
655
655
656
656
/// H265TSCI is a Temporal Scalability Control Information header extension.
657
657
/// Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.5
658
- #[ derive( Default , Debug , Copy , Clone , PartialEq ) ]
658
+ #[ derive( Default , Debug , Copy , Clone , PartialEq , Eq ) ]
659
659
pub struct H265TSCI ( pub u32 ) ;
660
660
661
661
impl H265TSCI {
@@ -698,7 +698,7 @@ impl H265TSCI {
698
698
///
699
699
/// H265 Payload Enum
700
700
///
701
- #[ derive( Debug , Clone , PartialEq ) ]
701
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
702
702
pub enum H265Payload {
703
703
H265SingleNALUnitPacket ( H265SingleNALUnitPacket ) ,
704
704
H265FragmentationUnitPacket ( H265FragmentationUnitPacket ) ,
@@ -717,7 +717,7 @@ impl Default for H265Payload {
717
717
///
718
718
719
719
/// H265Packet represents a H265 packet, stored in the payload of an RTP packet.
720
- #[ derive( Default , Debug , Clone , PartialEq ) ]
720
+ #[ derive( Default , Debug , Clone , PartialEq , Eq ) ]
721
721
pub struct H265Packet {
722
722
payload : H265Payload ,
723
723
might_need_donl : bool ,
0 commit comments