Beispiel #1
0
 /// <summary>
 /// Gets the preferred output file extension for <paramref name="codecId"/>.
 /// </summary>
 /// <param name="codecId">the codec identifier</param>
 /// <returns>the output file extension, starts with a dot (.)</returns>
 public static string GetOutputFileExtension(this CodecID codecId)
 {
     return(codecId.GetDescription().OutputFileExtension);
 }
Beispiel #2
0
 /// <summary>
 /// Extention method to get a descriptive name for the <paramref name="codecId"/>,
 /// suitable for presentation in a user interface.
 /// </summary>
 /// <param name="codecId">the codec identifier</param>
 /// <returns>the descriptive name</returns>
 public static string GetDescriptiveName(this CodecID codecId)
 {
     return(codecId.GetDescription().DescriptiveName);
 }