Пример #1
0
 /// <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);
 }
Пример #2
0
 /// <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));
 }
Пример #3
0
 public CodecVideo(VideoCodecType codec)
     : base(FormattingUtility.Library(codec.ToString()))
 {
 }
Пример #4
0
 public static string Library(VideoCodecType codec)
 {
     return(Library(codec.ToString()));
 }
Пример #5
0
 public CodecVideo(VideoCodecType codec)
     : base(FormattingUtility.Library(codec.ToString()))
 {
 }
Пример #6
0
 public CodecVideo(VideoCodecType codec)
     : base(Suffix, Formats.Library(codec))
 {
 }
Пример #7
0
 public CodecVideo(VideoCodecType codec)
     : base(Suffix, Formats.Library(codec))
 {
 }