X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-core%2Fsrc%2Foptions.rs;h=ea5b32933ad790b5e00e5d51797e20c1b4c0132a;hb=60b9641e93c0feb263f961dec5be151b59b5939a;hp=846a948701f2a1d044541ed84a1713c14b900fc6;hpb=ee0ca773d99115f67d776735bcad168e1993d2e8;p=nihav.git diff --git a/nihav-core/src/options.rs b/nihav-core/src/options.rs index 846a948..ea5b329 100644 --- a/nihav-core/src/options.rs +++ b/nihav-core/src/options.rs @@ -13,6 +13,17 @@ 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 {