X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-duck%2Fsrc%2Fcodecs%2Ftruemotionrt.rs;h=98d885825ed367b60394d6ad73a87a9996f1da17;hb=fbf1f900e6e6da46026938f90f1eaba2034aa79a;hp=1bbcb0fd4dd8743f62dd9967e74335ff6cc84b76;hpb=ce742854b2912b880fb3d3e330042b049dac8504;p=nihav.git diff --git a/nihav-duck/src/codecs/truemotionrt.rs b/nihav-duck/src/codecs/truemotionrt.rs index 1bbcb0f..98d8858 100644 --- a/nihav-duck/src/codecs/truemotionrt.rs +++ b/nihav-duck/src/codecs/truemotionrt.rs @@ -14,6 +14,7 @@ const TMRT_DELTA_TAB: [&[i16]; 3] = [ impl TMRTDecoder { fn new() -> Self { Self::default() } + #[allow(clippy::too_many_arguments)] fn decode_plane(&self, br: &mut BitReader, dst: &mut [u8], mut off: usize, stride: usize, w: usize, h: usize, hscale: bool, dbits: u8, is_chroma: bool) -> DecoderResult<()> { let delta_tab = TMRT_DELTA_TAB[(dbits - 2) as usize]; let step = if !hscale { 1 } else { 2 }; @@ -84,6 +85,12 @@ impl NADecoder for TMRTDecoder { } } +impl NAOptionHandler for TMRTDecoder { + 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(TMRTDecoder::new()) }