nihav_game = { path = "../nihav-game" }
nihav_indeo = { path = "../nihav-indeo" }
nihav_rad = { path = "../nihav-rad" }
-nihav_realmedia = { path = "../nihav-realmedia" }
\ No newline at end of file
+nihav_realmedia = { path = "../nihav-realmedia" }
+
+[dev-dependencies]
+nihav_registry = { path = "../nihav-registry" }
realmedia_register_all_demuxers(rd);
}
+#[cfg(test)]
+extern crate nihav_registry;
+
#[cfg(test)]
mod test {
use super::*;
- use nihav_core::register::get_codec_description;
+ use nihav_registry::register::get_codec_description;
#[test]
fn test_descriptions() {
[dependencies.nihav_core]
path = "../nihav-core"
+[dependencies.nihav_registry]
+path = "../nihav-registry"
+
[dependencies.nihav_codec_support]
path = "../nihav-codec-support"
features = ["h263", "mdct", "fft", "dsp_window"]
use nihav_core::demuxers::*;
-use nihav_core::register;
+use nihav_registry::register;
use nihav_core::demuxers::DemuxerError::*;
macro_rules! mktag {
extern crate nihav_core;
extern crate nihav_codec_support;
+extern crate nihav_registry;
#[cfg(feature="decoders")]
#[allow(clippy::unreadable_literal)]
#[allow(clippy::too_many_arguments)]
pub mod io;
pub mod refs;
-pub mod register;
-#[allow(clippy::unreadable_literal)]
-pub mod detect;
pub mod reorder;
pub mod scale;
pub mod soundcvt;
--- /dev/null
+[package]
+name = "nihav_registry"
+version = "0.1.0"
+authors = ["Kostya Shishkov <kostya.shishkov@gmail.com>"]
+edition = "2018"
+
+[dependencies]
+nihav_core = { path = "../nihav-core" }
//! }
//! ```
use std::io::SeekFrom;
-use crate::io::byteio::ByteReader;
+use nihav_core::io::byteio::ByteReader;
/// Format detection score.
#[derive(Debug,Clone,Copy,PartialEq)]
--- /dev/null
+//! Single place for storing information about container and codec formats.
+extern crate nihav_core;
+
+#[allow(clippy::unreadable_literal)]
+pub mod detect;
+pub mod register;
\ No newline at end of file