/// <summary> /// Find the codec object using the name of the codec. /// </summary> /// <param name="name"> /// The codec name, which was used to register itself to the /// codec array. /// </param> /// <returns> /// The codec object if it was found, or null if it wasn't. /// </returns> public ICodec FindCodec(string name) { CodecFinder cf = new CodecFinder(name); ICodec ans = Codecs.Find(new Predicate <ICodec>(cf.MatchName)); return(ans); }
/// <summary> /// Find the codec object using the name of the codec. /// </summary> /// <param name="name"> /// The codec name, which was used to register itself to the /// codec array. /// </param> /// <returns> /// The codec object if it was found, or null if it wasn't. /// </returns> public ICodec FindCodec(string name) { CodecFinder cf = new CodecFinder(name); ICodec ans = Codecs.Find(new Predicate<ICodec>(cf.MatchName)); return ans; }