@@ -330,6 +330,7 @@ struct BoxHeader {
330
330
/// Offset to the start of the contained data (or header size).
331
331
offset : u64 ,
332
332
/// Uuid for extended type.
333
+ #[ allow( dead_code) ] // See https://github.com/mozilla/mp4parse-rust/issues/340
333
334
uuid : Option < [ u8 ; 16 ] > ,
334
335
}
335
336
@@ -341,7 +342,9 @@ impl BoxHeader {
341
342
/// File type box 'ftyp'.
342
343
#[ derive( Debug ) ]
343
344
struct FileTypeBox {
345
+ #[ allow( dead_code) ] // See https://github.com/mozilla/mp4parse-rust/issues/340
344
346
major_brand : FourCC ,
347
+ #[ allow( dead_code) ] // See https://github.com/mozilla/mp4parse-rust/issues/340
345
348
minor_version : u32 ,
346
349
compatible_brands : TryVec < FourCC > ,
347
350
}
@@ -350,6 +353,7 @@ struct FileTypeBox {
350
353
#[ derive( Debug ) ]
351
354
struct MovieHeaderBox {
352
355
pub timescale : u32 ,
356
+ #[ allow( dead_code) ] // See https://github.com/mozilla/mp4parse-rust/issues/340
353
357
duration : u64 ,
354
358
}
355
359
@@ -387,7 +391,9 @@ struct EditListBox {
387
391
struct Edit {
388
392
segment_duration : u64 ,
389
393
media_time : i64 ,
394
+ #[ allow( dead_code) ] // See https://github.com/mozilla/mp4parse-rust/issues/340
390
395
media_rate_integer : i16 ,
396
+ #[ allow( dead_code) ] // See https://github.com/mozilla/mp4parse-rust/issues/340
391
397
media_rate_fraction : i16 ,
392
398
}
393
399
@@ -511,6 +517,7 @@ pub enum AudioCodecSpecific {
511
517
#[ derive( Debug ) ]
512
518
pub struct AudioSampleEntry {
513
519
pub codec_type : CodecType ,
520
+ #[ allow( dead_code) ] // See https://github.com/mozilla/mp4parse-rust/issues/340
514
521
data_reference_index : u16 ,
515
522
pub channelcount : u32 ,
516
523
pub samplesize : u16 ,
@@ -531,6 +538,7 @@ pub enum VideoCodecSpecific {
531
538
#[ derive( Debug ) ]
532
539
pub struct VideoSampleEntry {
533
540
pub codec_type : CodecType ,
541
+ #[ allow( dead_code) ] // See https://github.com/mozilla/mp4parse-rust/issues/340
534
542
data_reference_index : u16 ,
535
543
pub width : u16 ,
536
544
pub height : u16 ,
@@ -543,9 +551,11 @@ pub struct VideoSampleEntry {
543
551
#[ derive( Debug ) ]
544
552
pub struct VPxConfigBox {
545
553
/// An integer that specifies the VP codec profile.
554
+ #[ allow( dead_code) ] // See https://github.com/mozilla/mp4parse-rust/issues/340
546
555
profile : u8 ,
547
556
/// An integer that specifies a VP codec level all samples conform to the following table.
548
557
/// For a description of the various levels, please refer to the VP9 Bitstream Specification.
558
+ #[ allow( dead_code) ] // See https://github.com/mozilla/mp4parse-rust/issues/340
549
559
level : u8 ,
550
560
/// An integer that specifies the bit depth of the luma and color components. Valid values
551
561
/// are 8, 10, and 12.
@@ -555,12 +565,15 @@ pub struct VPxConfigBox {
555
565
/// Really an enum defined by "VP Codec ISO Media File Format Binding".
556
566
pub chroma_subsampling : u8 ,
557
567
/// Really an enum defined by the "Transfer characteristics" section of ISO 23091-2:2019 § 8.2.
568
+ #[ allow( dead_code) ] // See https://github.com/mozilla/mp4parse-rust/issues/340
558
569
transfer_characteristics : u8 ,
559
570
/// Really an enum defined by the "Matrix coefficients" section of ISO 23091-2:2019 § 8.3.
560
571
/// Available in 'VP Codec ISO Media File Format' version 1 only.
572
+ #[ allow( dead_code) ] // See https://github.com/mozilla/mp4parse-rust/issues/340
561
573
matrix_coefficients : Option < u8 > ,
562
574
/// Indicates the black level and range of the luma and chroma signals. 0 = legal range
563
575
/// (e.g. 16-235 for 8 bit sample depth); 1 = full range (e.g. 0-255 for 8-bit sample depth).
576
+ #[ allow( dead_code) ] // See https://github.com/mozilla/mp4parse-rust/issues/340
564
577
video_full_range_flag : bool ,
565
578
/// This is not used for VP8 and VP9 . Intended for binary codec initialization data.
566
579
pub codec_init : TryVec < u8 > ,
@@ -601,6 +614,7 @@ pub struct FLACMetadataBlock {
601
614
/// Represents a FLACSpecificBox 'dfLa'
602
615
#[ derive( Debug ) ]
603
616
pub struct FLACSpecificBox {
617
+ #[ allow( dead_code) ] // See https://github.com/mozilla/mp4parse-rust/issues/340
604
618
version : u8 ,
605
619
pub blocks : TryVec < FLACMetadataBlock > ,
606
620
}
@@ -627,6 +641,7 @@ pub struct OpusSpecificBox {
627
641
/// Represent an ALACSpecificBox 'alac'
628
642
#[ derive( Debug ) ]
629
643
pub struct ALACSpecificBox {
644
+ #[ allow( dead_code) ] // See https://github.com/mozilla/mp4parse-rust/issues/340
630
645
version : u8 ,
631
646
pub data : TryVec < u8 > ,
632
647
}
0 commit comments