Пример #1
0
 public EncodingSettings(VideoStandard videoStandard, EncodingProfile encodingProfile,
                         EncodingQuality encodingQuality, uint fr_n, uint fr_d,
                         string outputFile, bool enableAudio, bool enableTitle,
                         uint titleSize)
 {
     VideoStandard   = videoStandard;
     EncodingProfile = encodingProfile;
     EncodingQuality = encodingQuality;
     Framerate_n     = fr_n;
     Framerate_d     = fr_d;
     OutputFile      = outputFile;
     TitleSize       = titleSize;
     EnableAudio     = enableAudio;
     EnableTitle     = enableTitle;
 }
Пример #2
0
        public EncodingSettings(VideoStandard videoStandard, EncodingProfile encodingProfile,
		                         EncodingQuality encodingQuality, uint fr_n, uint fr_d,
		                         string outputFile, bool enableAudio, bool enableTitle,
		                         uint titleSize)
        {
            VideoStandard = videoStandard;
            EncodingProfile = encodingProfile;
            EncodingQuality = encodingQuality;
            Framerate_n = fr_n;
            Framerate_d = fr_d;
            OutputFile = outputFile;
            TitleSize = titleSize;
            EnableAudio = enableAudio;
            EnableTitle = enableTitle;
        }
Пример #3
0
        protected void OnAddbuttonClicked(object sender, System.EventArgs e)
        {
            TreeIter iter;

            var msg = Catalog.GetString ("Add file");
            List<string> paths = FileChooserHelper.OpenFiles (this, msg, null, null, null, null);
            foreach (string path in paths) {
                MediaFile mediaFile = Misc.DiscoverFile (path, this);
                if (mediaFile != null) {
                    AppendFile (mediaFile);
                }
            }
            CheckStatus ();

            if (Files.Count > 0) {
                maxHeight = Files.Max (f => f.VideoHeight);
                sizecombobox.GetActiveIter (out iter);
                selectedVideoStandard = stdStore.GetValue (iter, 1) as VideoStandard;
                FillStandards ();
            }
        }
Пример #4
0
        public static ListStore FillImageFormat(ComboBox formatBox, List<VideoStandard> standards,
		                                         VideoStandard def)
        {
            ListStore formatStore;
            int index = 0, active = 0;

            formatStore = new ListStore (typeof(string), typeof(VideoStandard));
            foreach (VideoStandard std in standards) {
                formatStore.AppendValues (std.Name, std);
                if (std.Equals (def))
                    active = index;
                index++;
            }
            formatBox.Model = formatStore;
            formatBox.Active = active;
            return formatStore;
        }