]> git.nihav.org Git - nihav.git/blobdiff - nihav-core/src/frame.rs
formats: add some helper functions and make formaton and chromaton fields public
[nihav.git] / nihav-core / src / frame.rs
index 2bfbe612d404d63cad674df3eb80fec7e2831691..cd25ca2b4857bea23bb94fa807d55a0b293a2397 100644 (file)
@@ -1,9 +1,9 @@
 use std::cmp::max;
 use std::collections::HashMap;
 use std::fmt;
-use std::rc::Rc;
-use std::cell::*;
-use crate::formats::*;
+pub use std::rc::Rc;
+pub use std::cell::*;
+pub use crate::formats::*;
 
 #[allow(dead_code)]
 #[derive(Clone,Copy,PartialEq)]
@@ -430,6 +430,10 @@ impl NACodecInfo {
     }
 }
 
+impl Default for NACodecInfo {
+    fn default() -> Self { DUMMY_CODEC_INFO }
+}
+
 impl fmt::Display for NACodecInfo {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         let edata = match self.extradata.clone() {