aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-core/src/frame.rs
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2020-05-31 15:14:16 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2020-05-31 15:18:57 +0200
commita0ddfb3d1ef6509bfd5cc957187f98d01c806bd8 (patch)
treea0a0ae3b289c50ca28925989fa3d7f92fadf73a2 /nihav-core/src/frame.rs
parentdab59886687a0c360a38743b9dc210e8ba269729 (diff)
downloadnihav-a0ddfb3d1ef6509bfd5cc957187f98d01c806bd8.tar.gz
core: split options into separate module
Diffstat (limited to 'nihav-core/src/frame.rs')
-rw-r--r--nihav-core/src/frame.rs41
1 files changed, 0 insertions, 41 deletions
diff --git a/nihav-core/src/frame.rs b/nihav-core/src/frame.rs
index badc7f8..4e317fe 100644
--- a/nihav-core/src/frame.rs
+++ b/nihav-core/src/frame.rs
@@ -857,47 +857,6 @@ pub const DUMMY_CODEC_INFO: NACodecInfo = NACodecInfo {
properties: NACodecTypeInfo::None,
extradata: None };
-/// Option definition.
-#[derive(Debug)]
-pub struct NAOptionDefinition {
- /// Option name.
- pub name: &'static str,
- /// Option meaning.
- pub description: &'static str,
- /// Minimal value for the option (if applicable).
- pub min_value: Option<NAValue>,
- /// Maximum value for the option (if applicable).
- pub max_value: Option<NAValue>,
-}
-
-/// Option.
-#[derive(Clone,Debug,PartialEq)]
-pub struct NAOption {
- /// Option name.
- pub name: String,
- /// Option value.
- pub value: NAValue,
-}
-
-/// A list of accepted option values.
-#[derive(Debug,Clone,PartialEq)]
-pub enum NAValue {
- /// Empty value.
- None,
- /// Boolean value.
- Bool(bool),
- /// Integer value.
- Int(i32),
- /// Long integer value.
- Long(i64),
- /// Floating point value.
- Float(f32),
- /// String value.
- String(String),
- /// Binary data value.
- Data(Arc<Vec<u8>>),
-}
-
/// A list of recognized frame types.
#[derive(Debug,Clone,Copy,PartialEq)]
#[allow(dead_code)]