//! Time info definitions for frames and packets. use crate::rational::Rational64; use std::any::Any; use std::sync::Arc; /// Timestamp information for frames and packets. #[derive(Debug, Clone, Default)] pub struct TimeInfo { /// Presentation timestamp. pub pts: Option, /// Decode timestamp. pub dts: Option, /// Duration (in timebase units). pub duration: Option, /// Timebase numerator/denominator (i.e 1/75th of a second). /// /// Its value does not vary among frames/packets, since it is /// computed and defined at stream level. pub timebase: Option, /// Timebase user private data. pub user_private: Option>, }