+impl fmt::Display for NAFrame {
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ let (w, h) = self.get_dimensions(0);
+ let mut foo = format!("frame type {} size {}x{}", self.ftype, w, h);
+ if let Some(pts) = self.pts { foo = format!("{} pts {}", foo, pts); }
+ if let Some(dts) = self.dts { foo = format!("{} dts {}", foo, dts); }
+ if let Some(dur) = self.duration { foo = format!("{} duration {}", foo, dur); }
+ if self.key { foo = format!("{} kf", foo); }
+ write!(f, "[{}]", foo)
+ }
+}