}
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(),
}
}
];
pub fn get_decoder() -> Box<dyn NADecoder + Send> {
- Box::new(Indeo5Decoder::new())
+ Box::new(Indeo5Decoder::new(false))
+}
+
+pub fn get_decoder_scalable() -> Box<dyn NADecoder + Send> {
+ Box::new(Indeo5Decoder::new(true))
}
#[cfg(test)]