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 };
}
}
+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<NAValue> { None }
+}
+
pub fn get_decoder() -> Box<dyn NADecoder + Send> {
Box::new(TMRTDecoder::new())
}