diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2019-02-06 10:38:20 +0100 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2019-02-06 10:38:20 +0100 |
commit | 241e56f135c572e4bd9f33d59826f978be5e9302 (patch) | |
tree | 4c9a000ba25cd11c147b1e2d6200a2a7ebd23a31 /nihav-core/src/codecs/mod.rs | |
parent | 7d109765c123dba7bbb49573e7a1973f1c3d7777 (diff) | |
download | nihav-241e56f135c572e4bd9f33d59826f978be5e9302.tar.gz |
core: implement defaults for some objects
Diffstat (limited to 'nihav-core/src/codecs/mod.rs')
-rw-r--r-- | nihav-core/src/codecs/mod.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nihav-core/src/codecs/mod.rs b/nihav-core/src/codecs/mod.rs index 1d12883..2999cb6 100644 --- a/nihav-core/src/codecs/mod.rs +++ b/nihav-core/src/codecs/mod.rs @@ -77,6 +77,10 @@ impl HAMShuffler { } } +impl Default for HAMShuffler { + fn default() -> Self { Self { lastframe: None } } +} + #[allow(dead_code)] pub struct IPShuffler { lastframe: Option<NAVideoBuffer<u8>>, @@ -101,6 +105,10 @@ impl IPShuffler { } } +impl Default for IPShuffler { + fn default() -> Self { Self { lastframe: None } } +} + #[allow(dead_code)] pub struct IPBShuffler { lastframe: Option<NAVideoBuffer<u8>>, @@ -151,6 +159,10 @@ impl IPBShuffler { } } +impl Default for IPBShuffler { + fn default() -> Self { Self { lastframe: None, nextframe: None } } +} + #[derive(Debug,Clone,Copy,PartialEq)] pub struct MV { pub x: i16, |