示例#1
0
        public RenderProgressForm(SongPanel _songPanel, string file, VideoExportOptions options)
        {
            InitializeComponent();
            songPanel = _songPanel;
            Cancel    = false;
            Delegate_renderVideo delegate_renderVideo = new Delegate_renderVideo(songPanel.renderVideo);
            IAsyncResult         result = delegate_renderVideo.BeginInvoke(file, this, options, renderingFinished, delegate_renderVideo);

            ProgressText = "Render progress";
        }
示例#2
0
 internal void setOptions(VideoExportOptions options)
 {
     Options                             = options;
     sphereCb.Checked                    = options.Sphere;
     sphericalMetadataCb.Checked         = options.SphericalMetadata;
     stereoscopicCb.Checked              = options.SphericalStereo;
     resoCombo.SelectedIndex             = options.ResoIndex;
     ssFactorComboBox.SelectedIndex      = options.SsaaIndex;
     videoQualityLossCombo.SelectedIndex = options.VideoQualityLoss;
     //if (options.VideoCodec == AVCodecID.AV_CODEC_ID_H264)
     //	videoCodecCombo.SelectedIndex = 0;
     //else
     //	videoCodecCombo.SelectedIndex = 1;
     fpsUd.Value = (decimal)options.Fps;
 }