mp4-atom 0.10.1

A MP4/ISOBMFF atom decoder and encoder
Documentation
mod hdlr;
mod mdhd;
mod minf;

pub use hdlr::*;
pub use mdhd::*;
pub use minf::*;

use crate::*;

#[derive(Debug, Clone, PartialEq, Eq, Default)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct Mdia {
    pub mdhd: Mdhd,
    pub hdlr: Hdlr,
    pub minf: Minf,
}

impl Atom for Mdia {
    const KIND: FourCC = FourCC::new(b"mdia");

    nested! {
        required: [ Mdhd, Hdlr, Minf ],
        optional: [] ,
        multiple: [],
    }
}