using csmic;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace butterflow_ui
{
/// A butterflow wrapper. Provides interaction with the butterflow executable.
public class ButterflowWrapper : PropertyChangedAlerter
{
#region Members
/// The RegEx string for matching probed resolution.
private const string REGEX_RESOLUTION = @"Resolution\s*:\s(?\d+)x(?\d+)";
/// The RegEx string for matching the probed playback rate.
private const string REGEX_RATE = @"Rate\s*:\s(?\d+\.\d+) fps";
/// The RegEx string for detecting progress made when rendering a video.
private const string REGEX_PROGRESS = @"To write\:\s*\w*\s*\w*\,*\w*\s*(?