pub fn make(&self, params: &CodecParameters, options: &DecoderOptions)
        -> Result<Box<dyn Decoder>> {

        if let Some(descriptor) = self.codecs.get(&params.codec) {
            Ok((descriptor.inst_func)(params, options)?)
        }
        else {
            unsupported_error("unsupported codec")
        }
    }
/// Searches the registry for a `Decoder` that supports the codec. If one is found, it will be
/// instantiated with the provided `CodecParameters` and returned. If a `Decoder` could not be
/// found, or the `CodecParameters` are either insufficient or invalid for the `Decoder`, an
/// error will be returned.
Searches the registry for a `Decoder` that supports the codec. If one is found, it will be
instantiated with the provided `CodecParameters` and returned.
Searches the registry for a ` Decoder ` that supports the codec . If one is found it will be instantiated with the provided ` CodecParameters ` and returned .
pub fn make(&self, params: &CodecParameters, options: &DecoderOptions)
        -> Result<Box<dyn Decoder>> {
        if let Some(descriptor) = self.codecs.get(&params.codec) {
            Ok((descriptor.inst_func)(params, options)?)
        }
        else {
            unsupported_error("unsupported codec")
        }
    }
pub fn make ( & self , params : & CodecParameters , options : & DecoderOptions ) -> Result < Box < dyn Decoder > > { if let Some ( descriptor ) = self . codecs . get ( & params . codec ) { Ok ( ( descriptor . inst_func ) ( params , options ) ? ) } else { unsupported_error ( " " ) } }
Searches the registry for a `Decoder` that supports the codec.
Searches the registry for a ` Decoder ` that supports the codec .
&self
params
&CodecParameters
options
&DecoderOptions
&self
params
&CodecParameters
options
&DecoderOptions