示例#1
0
        public async Task DoExport(ISequence sequence, string outFormat, IProgress <ExportProgressStatus> progress = null)
        {
            string fileType;

            _exporting  = true;
            _cancelling = false;

            if ((sequence != null) && (_exportFileTypes.TryGetValue(outFormat, out fileType)))
            {
                if (_writers.TryGetValue(fileType, out _output))
                {
                    _generator = new SequenceIntervalGenerator(UpdateInterval, sequence);
                    //WriteControllerInfo(sequence);
                    await Task.Factory.StartNew(() => ProcessExport(progress));
                }
            }
        }
示例#2
0
文件: Export.cs 项目: thorhs/vixen
        public void DoExport(ISequence sequence, string outFormat)
        {
            string fileType;

            _exporting  = true;
            _cancelling = false;

            if ((sequence != null) && (_exportFileTypes.TryGetValue(outFormat, out fileType)))
            {
                if (_writers.TryGetValue(fileType, out _output))
                {
                    _generator = new SequenceIntervalGenerator(UpdateInterval, sequence);
                    WriteControllerInfo(sequence);
                    Task.Factory.StartNew(ProcessExport);
                }
            }
        }
示例#3
0
文件: Export.cs 项目: robness/Vixen
        public async Task DoExport(ISequence sequence, string outFormat, bool enableCompression, IProgress <ExportProgressStatus> progress = null, bool matchAudioName = false)
        {
            string fileType;

            _exporting  = true;
            _cancelling = false;

            if ((sequence != null) && (_exportFileTypes.TryGetValue(outFormat, out fileType)))
            {
                if (_writers.TryGetValue(outFormat, out _output))
                {
                    if (_output.CanCompress)
                    {
                        _output.EnableCompression = enableCompression;
                    }
                    _generator = new SequenceIntervalGenerator(UpdateInterval, sequence);
                    //WriteControllerInfo(sequence);
                    await Task.Factory.StartNew(() => ProcessExport(progress, matchAudioName));
                }
            }
        }