/// <summary> /// Returns a filter that specifies the given codec /// </summary> /// <param name="videoCodec">a Video Codec to find a filter for</param> /// <param name="type">The type of Filter, such as VideoDecoder, Encoder, etc</param> /// <returns>The first filter encountered that deals with the given video codec. Returns null if not found.</returns> public Filter GetFilterForCodec(VideoCodecType videoCodec, FilterType type) { foreach (Filter f in this.Filter) { if ((f.VideoCodec == videoCodec) && (f.Type == type)) { return(f); } } return(null); }
/// <summary> /// Determines if the specified codec supports adjusting the bitrate /// </summary> /// <param name="codec">codec to check</param> /// <returns>true if the codec cannot have its bitrate adjusted, false if bitrate adjustment is allowed.</returns> private bool CodecBitrateAdjustmentDisabled(VideoCodecType codec) { return((codec == VideoCodecType.MJPEG) || (codec == VideoCodecType.MJPEG2000)); }
public CodecVideo(VideoCodecType codec) : base(FormattingUtility.Library(codec.ToString())) { }
public static string Library(VideoCodecType codec) { return(Library(codec.ToString())); }
public CodecVideo(VideoCodecType codec) : base(Suffix, Formats.Library(codec)) { }