mp4_atom/moof/traf/
mod.rs1mod tfdt;
2mod tfhd;
3mod trun;
4
5pub use tfdt::*;
6pub use tfhd::*;
7pub use trun::*;
8
9use crate::*;
10
11#[derive(Debug, Clone, PartialEq, Eq, Default)]
12#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
13pub struct Traf {
14 pub tfhd: Tfhd,
15 pub tfdt: Option<Tfdt>,
16 pub trun: Option<Trun>,
17}
18
19impl Atom for Traf {
20 const KIND: FourCC = FourCC::new(b"traf");
21
22 nested! {
23 required: [ Tfhd ],
24 optional: [ Tfdt, Trun ],
25 multiple: [],
26 }
27}