Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AdvancedViewModel"/> class.
        /// </summary>
        /// <param name="windowManager">
        /// The window manager.
        /// </param>
        /// <param name="userSettingService">
        /// The user Setting Service.
        /// </param>
        public AdvancedViewModel(IWindowManager windowManager, IUserSettingService userSettingService)
        {
            X264Presets = EnumHelper<x264Preset>.GetEnumList();
            X264Profiles = EnumHelper<x264Profile>.GetEnumList();
            X264Tunes = EnumHelper<x264Tune>.GetEnumList();

            this.x264Preset = x264Preset.None;
            this.x264Profile = x264Profile.None;
            this.x264Tune = x264Tune.None;
        }
Example #2
0
 /// <summary>
 /// Set the currently selected encoder.
 /// </summary>
 /// <param name="encoder">
 /// The Video Encoder.
 /// </param>
 public void SetEncoder(VideoEncoder encoder)
 {
     if (encoder == VideoEncoder.X264)
     {
         this.DisplayX264Options = true;
     }
     else
     {
         this.x264Preset = x264Preset.None;
         this.x264Profile = x264Profile.None;
         this.x264Tune = x264Tune.None;
         this.DisplayX264Options = false;
     }
 }