X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-game%2Fsrc%2Fcodecs%2Fbmv3.rs;h=cde7892fd512756f6d5de94c7f3bd55f0282dfb8;hb=49d0cbfe8fdd3c33658e8d64be24e879cb7849e1;hp=5921205498e962ea8f75493de57388373090b447;hpb=7343bcbf562a43ec64c850bfb4c4b76dd03aa420;p=nihav.git diff --git a/nihav-game/src/codecs/bmv3.rs b/nihav-game/src/codecs/bmv3.rs index 5921205..cde7892 100644 --- a/nihav-game/src/codecs/bmv3.rs +++ b/nihav-game/src/codecs/bmv3.rs @@ -110,6 +110,7 @@ impl BMV3VideoDecoder { is_intra: false, } } + #[allow(clippy::identity_op)] fn decode_frame(&mut self, br: &mut ByteReader) -> DecoderResult<()> { let mut idx = 0; loop { @@ -503,6 +504,12 @@ impl NADecoder for BMV3VideoDecoder { } } +impl NAOptionHandler for BMV3VideoDecoder { + 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_video() -> Box { Box::new(BMV3VideoDecoder::new()) @@ -526,6 +533,7 @@ impl BMV3AudioDecoder { } } +#[allow(clippy::identity_op)] fn decode_block(mode: u8, src: &[u8], dst: &mut [i16], mut pred: i16) -> i16 { let steps = &BMV_AUDIO_STEPS[mode as usize]; let mut val2 = 0; @@ -595,6 +603,12 @@ impl NADecoder for BMV3AudioDecoder { } } +impl NAOptionHandler for BMV3AudioDecoder { + 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_audio() -> Box { Box::new(BMV3AudioDecoder::new()) }