X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-indeo%2Fsrc%2Fcodecs%2Findeo5.rs;h=eec603a08bde181e8ac39775ffa644f03bd3990c;hb=64e8b9711a54641d4155d01f095053233c79a9bf;hp=faa3107fd2df864b49161399828399b245731866;hpb=171860fcc4a4ba3ec28bc4b720b9f582377be4cf;p=nihav.git diff --git a/nihav-indeo/src/codecs/indeo5.rs b/nihav-indeo/src/codecs/indeo5.rs index faa3107..eec603a 100644 --- a/nihav-indeo/src/codecs/indeo5.rs +++ b/nihav-indeo/src/codecs/indeo5.rs @@ -507,7 +507,7 @@ impl Indeo5Decoder { } impl NADecoder for Indeo5Decoder { - fn init(&mut self, info: NACodecInfoRef) -> DecoderResult<()> { + fn init(&mut self, _supp: &mut NADecoderSupport, info: NACodecInfoRef) -> DecoderResult<()> { if let NACodecTypeInfo::Video(vinfo) = info.get_properties() { let w = vinfo.get_width(); let h = vinfo.get_height(); @@ -520,7 +520,7 @@ impl NADecoder for Indeo5Decoder { Err(DecoderError::InvalidData) } } - fn decode(&mut self, pkt: &NAPacket) -> DecoderResult { + fn decode(&mut self, _supp: &mut NADecoderSupport, pkt: &NAPacket) -> DecoderResult { let src = pkt.get_buffer(); let mut br = BitReader::new(src.as_slice(), src.len(), BitReaderMode::LE); @@ -662,7 +662,7 @@ const INDEO5_Q4_INTRA: &[u16; 16] = &INDEO5_QUANT4X4_INTRA; const INDEO5_Q4_INTER: &[u16; 16] = &INDEO5_QUANT4X4_INTER; const INDEO5_SCAN8X8: [&[usize; 64]; 4] = [ - &IVI_ZIGZAG, &IVI_SCAN_8X8_VER, &IVI_SCAN_8X8_HOR, &IVI_SCAN_8X8_HOR + &ZIGZAG, &IVI_SCAN_8X8_VER, &IVI_SCAN_8X8_HOR, &IVI_SCAN_8X8_HOR ]; const INDEO5_SCAN4X4: &[usize; 16] = &IVI_SCAN_4X4; @@ -711,7 +711,7 @@ const INDEO5_QSCALE4_INTER: [u8; 24] = [ 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20, 0x21, 0x22, 0x23 ]; -pub fn get_decoder() -> Box { +pub fn get_decoder() -> Box { Box::new(Indeo5Decoder::new()) }