X-Git-Url: https://git.nihav.org/?p=nihav.git;a=blobdiff_plain;f=nihav-indeo%2Fsrc%2Fcodecs%2Findeo2.rs;h=32e54f854c3b10bd7a2d222b3b882a65d76f99fe;hp=14d3c0ae8a45329e299f6a32c7294bc80446b73a;hb=78fb6560c73965d834b215fb0b49505ae5443288;hpb=ce742854b2912b880fb3d3e330042b049dac8504 diff --git a/nihav-indeo/src/codecs/indeo2.rs b/nihav-indeo/src/codecs/indeo2.rs index 14d3c0a..32e54f8 100644 --- a/nihav-indeo/src/codecs/indeo2.rs +++ b/nihav-indeo/src/codecs/indeo2.rs @@ -187,7 +187,7 @@ impl CodebookDescReader for IR2CodeReader { struct Indeo2Decoder { info: NACodecInfoRef, cb: Codebook, - frmmgr: HAMShuffler, + frmmgr: HAMShuffler, } impl Indeo2Decoder { @@ -365,6 +365,12 @@ impl NADecoder for Indeo2Decoder { } } +impl NAOptionHandler for Indeo2Decoder { + fn get_supported_options(&self) -> &[NAOptionDefinition] { &[] } + fn set_options(&mut self, _options: &[NAOption]) { } + fn query_option_value(&self, _name: &str) -> Option { None } +} + pub fn get_decoder() -> Box { Box::new(Indeo2Decoder::new()) } @@ -374,14 +380,14 @@ mod test { use nihav_core::codecs::RegisteredDecoders; use nihav_core::demuxers::RegisteredDemuxers; use nihav_codec_support::test::dec_video::*; - use crate::indeo_register_all_codecs; + use crate::indeo_register_all_decoders; use nihav_commonfmt::generic_register_all_demuxers; #[test] fn test_indeo2() { let mut dmx_reg = RegisteredDemuxers::new(); generic_register_all_demuxers(&mut dmx_reg); let mut dec_reg = RegisteredDecoders::new(); - indeo_register_all_codecs(&mut dec_reg); + indeo_register_all_decoders(&mut dec_reg); test_decoding("avi", "indeo2", "assets/Indeo/laser05.avi", Some(10), &dmx_reg, &dec_reg, ExpectedTestResult::MD5Frames(vec![