X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-core%2Fsrc%2Foptions.rs;h=ea5b32933ad790b5e00e5d51797e20c1b4c0132a;hb=60b9641e93c0feb263f961dec5be151b59b5939a;hp=c2f2d4d0ab2971502a0014cc744962e489001b78;hpb=8a7d01e22bc077744806be21f81898377d0726b3;p=nihav.git diff --git a/nihav-core/src/options.rs b/nihav-core/src/options.rs index c2f2d4d..ea5b329 100644 --- a/nihav-core/src/options.rs +++ b/nihav-core/src/options.rs @@ -8,6 +8,22 @@ use std::sync::Arc; use std::fmt; +/// Common name for keyframe interval option. +pub const KEYFRAME_OPTION: &'static str = "key_int"; +/// Common description for keyframe interval option. +pub const KEYFRAME_OPTION_DESC: &'static str = "Keyframe interval (0 - automatic)"; + +/// Common name for frame skipping mode. +pub const FRAME_SKIP_OPTION: &'static str = "frame_skip"; +/// Common description for frame skipping mode. +pub const FRAME_SKIP_OPTION_DESC: &'static str = "Frame skipping mode"; +/// Frame skipping option value for no skipped frames. +pub const FRAME_SKIP_OPTION_VAL_NONE: &'static str = "none"; +/// Frame skipping option value for decoding only keyframes. +pub const FRAME_SKIP_OPTION_VAL_KEYFRAME: &'static str = "keyframes"; +/// Frame skipping option value for decoding only intra frames. +pub const FRAME_SKIP_OPTION_VAL_INTRA: &'static str = "intra"; + /// A list specifying option parsing and validating errors. #[derive(Clone,Copy,Debug,PartialEq)] pub enum OptionError {