@@ -67,7 +67,7 @@ pub fn segment_element(input: &[u8]) -> IResult<&[u8], SegmentElement, Error> {
67
67
} )
68
68
}
69
69
70
- #[ derive( Debug , Clone , PartialEq ) ]
70
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
71
71
pub struct SeekHead {
72
72
pub positions : Vec < Seek > ,
73
73
}
@@ -79,7 +79,7 @@ pub fn seek_head(input: &[u8]) -> IResult<&[u8], SegmentElement, Error> {
79
79
} ) ( input)
80
80
}
81
81
82
- #[ derive( Debug , Clone , PartialEq ) ]
82
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
83
83
pub struct Seek {
84
84
pub id : Vec < u8 > ,
85
85
pub position : u64 ,
@@ -163,7 +163,7 @@ pub fn info(input: &[u8]) -> IResult<&[u8], SegmentElement, Error> {
163
163
} )
164
164
}
165
165
166
- #[ derive( Debug , Clone , PartialEq ) ]
166
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
167
167
pub struct ChapterTranslate { }
168
168
169
169
//https://datatracker.ietf.org/doc/html/draft-lhomme-cellar-matroska-03#section-7.3.16
@@ -172,7 +172,7 @@ pub fn chapter_translate(input: &[u8]) -> IResult<&[u8], ChapterTranslate, Error
172
172
}
173
173
174
174
//https://datatracker.ietf.org/doc/html/draft-lhomme-cellar-matroska-03#section-7.3.26
175
- #[ derive( Debug , Clone , PartialEq ) ]
175
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
176
176
pub struct Cluster < ' a > {
177
177
pub timecode : u64 ,
178
178
pub silent_tracks : Option < SilentTracks > ,
@@ -209,7 +209,7 @@ pub fn cluster(input: &[u8]) -> IResult<&[u8], SegmentElement, Error> {
209
209
} )
210
210
}
211
211
212
- #[ derive( Debug , Clone , PartialEq ) ]
212
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
213
213
pub struct SilentTracks {
214
214
pub numbers : Vec < u64 > ,
215
215
}
@@ -221,7 +221,7 @@ pub fn silent_tracks(input: &[u8]) -> IResult<&[u8], SilentTracks, Error> {
221
221
} ) ( input)
222
222
}
223
223
224
- #[ derive( Debug , Clone , PartialEq ) ]
224
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
225
225
pub struct BlockGroup < ' a > {
226
226
pub block : & ' a [ u8 ] ,
227
227
pub block_virtual : Option < Vec < u8 > > ,
@@ -273,31 +273,31 @@ pub fn block_group(input: &[u8]) -> IResult<&[u8], BlockGroup, Error> {
273
273
} ) ( input)
274
274
}
275
275
276
- #[ derive( Debug , Clone , PartialEq ) ]
276
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
277
277
pub struct BlockAdditions { }
278
278
279
279
//https://datatracker.ietf.org/doc/html/draft-lhomme-cellar-matroska-03#section-7.3.16
280
280
pub fn block_additions ( input : & [ u8 ] ) -> IResult < & [ u8 ] , BlockAdditions , Error > {
281
281
ebml_master ( 0x75A1 , |i| Ok ( ( i, BlockAdditions { } ) ) ) ( input)
282
282
}
283
283
284
- #[ derive( Debug , Clone , PartialEq ) ]
284
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
285
285
pub struct Slices { }
286
286
287
287
//https://datatracker.ietf.org/doc/html/draft-lhomme-cellar-matroska-03#section-7.3.46
288
288
pub fn slices ( input : & [ u8 ] ) -> IResult < & [ u8 ] , Slices , Error > {
289
289
ebml_master ( 0x8E , |i| Ok ( ( i, Slices { } ) ) ) ( input)
290
290
}
291
291
292
- #[ derive( Debug , Clone , PartialEq ) ]
292
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
293
293
pub struct ReferenceFrame { }
294
294
295
295
//https://datatracker.ietf.org/doc/html/draft-lhomme-cellar-matroska-03#section-7.3.53
296
296
pub fn reference_frame ( input : & [ u8 ] ) -> IResult < & [ u8 ] , ReferenceFrame , Error > {
297
297
ebml_master ( 0xC8 , |i| Ok ( ( i, ReferenceFrame { } ) ) ) ( input)
298
298
}
299
299
300
- #[ derive( Debug , Clone , PartialEq ) ]
300
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
301
301
pub struct Block {
302
302
pub track_number : u64 ,
303
303
pub timecode : i16 ,
@@ -317,15 +317,15 @@ pub fn block(input: &[u8]) -> IResult<&[u8], Block, Error> {
317
317
) ( input)
318
318
}
319
319
320
- #[ derive( Debug , Clone , PartialEq ) ]
320
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
321
321
pub struct BlockFlags {
322
322
pub keyframe : bool ,
323
323
pub invisible : bool ,
324
324
pub lacing : Lacing ,
325
325
pub discardable : bool ,
326
326
}
327
327
328
- #[ derive( Debug , Clone , PartialEq ) ]
328
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
329
329
pub struct SimpleBlock {
330
330
pub track_number : u64 ,
331
331
pub timecode : i16 ,
@@ -367,23 +367,23 @@ pub fn simple_block(input: &[u8]) -> IResult<&[u8], SimpleBlock, Error> {
367
367
) ( input)
368
368
}
369
369
370
- #[ derive( Debug , Clone , PartialEq ) ]
370
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
371
371
pub struct SimpleBlockFlags {
372
372
pub keyframe : bool ,
373
373
pub invisible : bool ,
374
374
pub lacing : Lacing ,
375
375
pub discardable : bool ,
376
376
}
377
377
378
- #[ derive( Debug , Clone , PartialEq ) ]
378
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
379
379
pub enum Lacing {
380
380
None ,
381
381
Xiph ,
382
382
EBML ,
383
383
FixedSize ,
384
384
}
385
385
386
- #[ derive( Debug , Clone , PartialEq ) ]
386
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
387
387
pub struct LacedData {
388
388
pub frame_count : u8 ,
389
389
}
@@ -570,7 +570,7 @@ pub fn track_entry(input: &[u8]) -> IResult<&[u8], TrackEntry, Error> {
570
570
} ) ( input)
571
571
}
572
572
573
- #[ derive( Debug , Clone , PartialEq ) ]
573
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
574
574
pub struct TrackTranslate {
575
575
pub edition_uid : Vec < u64 > ,
576
576
pub codec : u64 ,
@@ -597,7 +597,7 @@ pub fn track_translate(input: &[u8]) -> IResult<&[u8], TrackTranslate, Error> {
597
597
} ) ( input)
598
598
}
599
599
600
- #[ derive( Debug , Clone , PartialEq ) ]
600
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
601
601
pub struct TrackOperation {
602
602
pub combine_planes : Option < TrackCombinePlanes > ,
603
603
pub join_blocks : Option < TrackJoinBlocks > ,
@@ -615,7 +615,7 @@ pub fn track_operation(input: &[u8]) -> IResult<&[u8], TrackOperation, Error> {
615
615
} ) ( input)
616
616
}
617
617
618
- #[ derive( Debug , Clone , PartialEq ) ]
618
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
619
619
pub struct TrackCombinePlanes {
620
620
pub track_planes : Vec < TrackPlane > ,
621
621
}
@@ -628,7 +628,7 @@ pub fn track_combine_planes(input: &[u8]) -> IResult<&[u8], TrackCombinePlanes,
628
628
} ) ( input)
629
629
}
630
630
631
- #[ derive( Debug , Clone , PartialEq ) ]
631
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
632
632
pub struct TrackPlane {
633
633
pub uid : u64 ,
634
634
pub plane_type : u64 ,
@@ -650,7 +650,7 @@ pub fn track_plane(input: &[u8]) -> IResult<&[u8], TrackPlane, Error> {
650
650
} ) ( input)
651
651
}
652
652
653
- #[ derive( Debug , Clone , PartialEq ) ]
653
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
654
654
pub struct TrackJoinBlocks {
655
655
pub uid : Vec < u64 > ,
656
656
}
@@ -663,7 +663,7 @@ pub fn track_join_blocks(input: &[u8]) -> IResult<&[u8], TrackJoinBlocks, Error>
663
663
} ) ( input)
664
664
}
665
665
666
- #[ derive( Debug , Clone , PartialEq ) ]
666
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
667
667
pub struct ContentEncodings {
668
668
pub content_encoding : Vec < ContentEncoding > ,
669
669
}
@@ -676,7 +676,7 @@ pub fn content_encodings(input: &[u8]) -> IResult<&[u8], ContentEncodings, Error
676
676
} ) ( input)
677
677
}
678
678
679
- #[ derive( Debug , Clone , PartialEq ) ]
679
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
680
680
pub struct ContentEncoding {
681
681
order : u64 ,
682
682
scope : u64 ,
@@ -709,7 +709,7 @@ pub fn content_encoding(input: &[u8]) -> IResult<&[u8], ContentEncoding, Error>
709
709
} ) ( input)
710
710
}
711
711
712
- #[ derive( Debug , Clone , PartialEq ) ]
712
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
713
713
pub struct ContentCompression {
714
714
algo : u64 ,
715
715
settings : Option < u64 > ,
@@ -730,7 +730,7 @@ pub fn content_compression(input: &[u8]) -> IResult<&[u8], ContentCompression, E
730
730
} ) ( input)
731
731
}
732
732
733
- #[ derive( Debug , Clone , PartialEq ) ]
733
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
734
734
pub struct ContentEncryption {
735
735
enc_algo : Option < u64 > ,
736
736
enc_key_id : Option < Vec < u8 > > ,
@@ -1009,21 +1009,21 @@ pub fn projection(input: &[u8]) -> IResult<&[u8], Projection, Error> {
1009
1009
} ) ( input)
1010
1010
}
1011
1011
1012
- #[ derive( Debug , Clone , PartialEq ) ]
1012
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
1013
1013
pub struct Chapters { }
1014
1014
1015
1015
//https://datatracker.ietf.org/doc/html/draft-lhomme-cellar-matroska-03#section-7.3.199
1016
1016
pub fn chapters ( input : & [ u8 ] ) -> IResult < & [ u8 ] , SegmentElement , Error > {
1017
1017
ebml_master ( 0x45B9 , |i| Ok ( ( i, SegmentElement :: Chapters ( Chapters { } ) ) ) ) ( input)
1018
1018
}
1019
1019
1020
- #[ derive( Debug , Clone , PartialEq ) ]
1020
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
1021
1021
pub struct Cues { }
1022
1022
1023
- #[ derive( Debug , Clone , PartialEq ) ]
1023
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
1024
1024
pub struct Attachments { }
1025
1025
1026
- #[ derive( Debug , Clone , PartialEq ) ]
1026
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
1027
1027
pub struct Tags { }
1028
1028
1029
1029
#[ cfg( test) ]
0 commit comments