mp4_atom/moof/
mod.rs

1mod mfhd;
2mod traf;
3
4pub use mfhd::*;
5pub use traf::*;
6
7use crate::*;
8
9#[derive(Debug, Clone, PartialEq)]
10#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
11pub struct Moof {
12    pub mfhd: Mfhd,
13    pub traf: Vec<Traf>,
14}
15
16impl Atom for Moof {
17    const KIND: FourCC = FourCC::new(b"moof");
18
19    nested! {
20        required: [ Mfhd ],
21        optional: [],
22        multiple: [ Traf ],
23    }
24}