X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-ms%2Fsrc%2Fcodecs%2Fmsvideo1.rs;h=938dc0f8ff2eae1c9a2b2c766e38357078aab47b;hb=7d57ae2f680d7a1eba7af2ee831f305b2f0f9324;hp=b7bea58439286ed50102b0787067e0e7d136c58d;hpb=4abcd84283e5d7168cc495e41cbc443710bfbd5e;p=nihav.git diff --git a/nihav-ms/src/codecs/msvideo1.rs b/nihav-ms/src/codecs/msvideo1.rs index b7bea58..938dc0f 100644 --- a/nihav-ms/src/codecs/msvideo1.rs +++ b/nihav-ms/src/codecs/msvideo1.rs @@ -192,7 +192,6 @@ impl Video1Decoder { impl NADecoder for Video1Decoder { fn init(&mut self, _supp: &mut NADecoderSupport, info: NACodecInfoRef) -> DecoderResult<()> { if let NACodecTypeInfo::Video(vinfo) = info.get_properties() { -println!("fmt {}", vinfo.get_format()); self.is_16bit = !vinfo.get_format().palette; let fmt = if !self.is_16bit { PAL8_FORMAT } else { RGB555_FORMAT }; self.width = vinfo.get_width(); @@ -278,6 +277,12 @@ if !found_pal { } } +impl NAOptionHandler for Video1Decoder { + 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(Video1Decoder::new()) }