X-Git-Url: https://git.nihav.org/?p=nihav.git;a=blobdiff_plain;f=nihav-indeo%2Fsrc%2Fcodecs%2Findeo5.rs;fp=nihav-indeo%2Fsrc%2Fcodecs%2Findeo5.rs;h=ec23981857dfeaf5dbd767289619296ac818d6bb;hp=0115b2a0bb601d72550482dbefa23997b3d4a63c;hb=f7686373872ed8a9378dbde734d6f6220ed64aef;hpb=e01d4987aa11af424461a7c0e6f2a4d82a458fc5 diff --git a/nihav-indeo/src/codecs/indeo5.rs b/nihav-indeo/src/codecs/indeo5.rs index 0115b2a..ec23981 100644 --- a/nihav-indeo/src/codecs/indeo5.rs +++ b/nihav-indeo/src/codecs/indeo5.rs @@ -499,10 +499,10 @@ struct Indeo5Decoder { } impl Indeo5Decoder { - fn new() -> Self { + fn new(scalable: bool) -> Self { Indeo5Decoder { info: NACodecInfo::new_dummy(), - dec: IVIDecoder::new(), + dec: IVIDecoder::new(scalable), ip: Indeo5Parser::new(), } } @@ -723,7 +723,11 @@ const INDEO5_QSCALE4_INTER: [u8; 24] = [ ]; pub fn get_decoder() -> Box { - Box::new(Indeo5Decoder::new()) + Box::new(Indeo5Decoder::new(false)) +} + +pub fn get_decoder_scalable() -> Box { + Box::new(Indeo5Decoder::new(true)) } #[cfg(test)]