Пример #1
0
        public void ShowAdvanced()
        {
            AviExportAdvancedComponent component = new AviExportAdvancedComponent(_availableCodecs);

            component.SelectedCodec     = _selectedCodec;
            component.Quality           = _quality;
            component.UseDefaultQuality = UseDefaultQuality;

            if (ApplicationComponentExitCode.Accepted != LaunchAsDialog(this.Host.DesktopWindow, component, SR.TitleAdvancedOptions))
            {
                return;
            }

            _selectedCodec    = component.SelectedCodec;
            _quality          = component.Quality;
            UseDefaultQuality = component.UseDefaultQuality;

            SaveAdvancedSettings();
        }
Пример #2
0
        private void LoadSettings()
        {
            AviExportSettings settings = AviExportSettings.Default;

            _exportOption = (ExportOption)settings.ExportOption;
            _frameRate    = settings.FrameRate;

            _selectedCodec = Avi.Codec.GetInstalledCodec(settings.PreferredCodecFccCode);

            _availableCodecs.AddRange(GetAvailiableCodecs());
            if (!_availableCodecs.Contains(_selectedCodec))
            {
                _selectedCodec = Avi.Codec.Find(GetInputFormat(), null);                 //use whatever the OS provides.
            }
            _quality          = settings.Quality;
            UseDefaultQuality = settings.UseDefaultQuality;

            _sizeMode        = settings.SizeMode;
            _backgroundColor = settings.BackgroundColor;
        }
Пример #3
0
 internal AviCodecInfo(Avi.Codec codec)
 {
     _codec = codec;
 }