aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-game
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2020-02-20 11:00:24 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2020-02-20 11:00:24 +0100
commitb4d5b8515e75383b4fc59ea2813c90c615d59a96 (patch)
treecf9ea1f458965eea90dff60a607dc90bf42887b3 /nihav-game
parent2b8bf9a03242bbd6e80091082a50ec13b1a95143 (diff)
downloadnihav-b4d5b8515e75383b4fc59ea2813c90c615d59a96.tar.gz
split nihav-codec-support crate from nihav-core
The former is intended just for NihAV decoders, the latter is for both NihAV crates and for the code using NihAV.
Diffstat (limited to 'nihav-game')
-rw-r--r--nihav-game/Cargo.toml4
-rw-r--r--nihav-game/src/codecs/midivid.rs1
-rw-r--r--nihav-game/src/codecs/vmd.rs1
-rw-r--r--nihav-game/src/lib.rs1
4 files changed, 7 insertions, 0 deletions
diff --git a/nihav-game/Cargo.toml b/nihav-game/Cargo.toml
index a429135..b52dabb 100644
--- a/nihav-game/Cargo.toml
+++ b/nihav-game/Cargo.toml
@@ -8,6 +8,10 @@ edition = "2018"
path = "../nihav-core"
features = []
+[dependencies.nihav_codec_support]
+path = "../nihav-codec-support"
+features = []
+
[dev-dependencies]
nihav_commonfmt = { path = "../nihav-commonfmt" }
diff --git a/nihav-game/src/codecs/midivid.rs b/nihav-game/src/codecs/midivid.rs
index df788f6..48456d6 100644
--- a/nihav-game/src/codecs/midivid.rs
+++ b/nihav-game/src/codecs/midivid.rs
@@ -1,5 +1,6 @@
use nihav_core::codecs::*;
use nihav_core::io::byteio::*;
+use nihav_codec_support::codecs::HAMShuffler;
#[derive(Default)]
struct MidividDecoder {
diff --git a/nihav-game/src/codecs/vmd.rs b/nihav-game/src/codecs/vmd.rs
index 1f4964e..987408a 100644
--- a/nihav-game/src/codecs/vmd.rs
+++ b/nihav-game/src/codecs/vmd.rs
@@ -1,5 +1,6 @@
use nihav_core::codecs::*;
use nihav_core::io::byteio::*;
+use nihav_codec_support::codecs::HAMShuffler;
use std::str::FromStr;
macro_rules! lz_op {
diff --git a/nihav-game/src/lib.rs b/nihav-game/src/lib.rs
index 20207be..a91da7b 100644
--- a/nihav-game/src/lib.rs
+++ b/nihav-game/src/lib.rs
@@ -1,4 +1,5 @@
extern crate nihav_core;
+extern crate nihav_codec_support;
mod codecs;
pub use codecs::game_register_all_codecs;