[dependencies.nihav_codec_support]
path = "../nihav-codec-support"
-features = ["h263", "mdct", "fft", "dsp_window", "vq"]
+features = ["h263", "mdct", "fft", "vq"]
[dev-dependencies]
nihav_realmedia = { path = "../nihav-realmedia", default-features=false, features = ["all_demuxers"] }
#[cfg(feature="decoder_zmbv")]
mod zmbv;
-#[cfg(feature="decoder_aac")]
-#[allow(clippy::manual_memcpy)]
-#[allow(clippy::useless_let_if_seq)]
-mod aac;
#[cfg(feature="decoder_atrac3")]
#[allow(clippy::identity_op)]
#[allow(clippy::useless_let_if_seq)]
DecoderInfo { name: "ac3", get_decoder: ts102366::get_decoder },
#[cfg(feature="decoder_atrac3")]
DecoderInfo { name: "atrac3", get_decoder: atrac3::get_decoder },
-#[cfg(feature="decoder_aac")]
- DecoderInfo { name: "aac", get_decoder: aac::get_decoder },
];
/// Registers all available codecs provided by this crate.
[dependencies.nihav_codec_support]
path = "../nihav-codec-support"
-features = ["qmf"]
+features = ["qmf", "fft", "mdct", "dsp_window"]
[dev-dependencies]
nihav_flash = { path = "../nihav-flash", default-features=false, features = ["all_demuxers"] }
all_video_decoders = []
-all_audio_decoders = ["decoder_mpa"]
+all_audio_decoders = ["decoder_aac", "decoder_mpa"]
+decoder_aac = ["decoders"]
decoder_mpa = ["decoders"]
use nihav_core::codecs::RegisteredDecoders;
use nihav_core::demuxers::RegisteredDemuxers;
use nihav_codec_support::test::dec_video::test_decode_audio;
- use crate::generic_register_all_decoders;
+ use crate::mpeg_register_all_decoders;
use nihav_realmedia::realmedia_register_all_demuxers;
#[test]
fn test_aac() {
let mut dmx_reg = RegisteredDemuxers::new();
realmedia_register_all_demuxers(&mut dmx_reg);
let mut dec_reg = RegisteredDecoders::new();
- generic_register_all_decoders(&mut dec_reg);
+ mpeg_register_all_decoders(&mut dec_reg);
// let file = "assets/RV/rv40_weighted_mc.rmvb";
let file = "assets/RV/rv40_weighted_mc_2.rmvb";
($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(DecoderError::InvalidData); } };
}
+#[cfg(feature="decoder_aac")]
+#[allow(clippy::manual_memcpy)]
+#[allow(clippy::useless_let_if_seq)]
+mod aac;
#[cfg(feature="decoder_mpa")]
#[allow(clippy::excessive_precision)]
mod mpegaudio;
const DECODERS: &[DecoderInfo] = &[
+#[cfg(feature="decoder_aac")]
+ DecoderInfo { name: "aac", get_decoder: aac::get_decoder },
#[cfg(feature="decoder_mpa")]
DecoderInfo { name: "mp3", get_decoder: mpegaudio::get_decoder_mp3 },
];