/** * コンストラクタ */ public WvvTrimmingView() { this.DataContext = this; this.InitializeComponent(); mSource = null; mComposition = new MediaComposition(); mExtractor = new WvvFrameExtractor2(ThumbnailHeight, ThumbnailCount); }
/** * コンストラクタ */ public WvvVideoControlPanel() { TrackingTimer = new DispatcherTimer(); TrackingTimer.Interval = TimeSpan.FromMilliseconds(10); TrackingTimer.Tick += updatePlayingPosition; mExtractor = new WvvFrameExtractor2(ThumbnailHeight, ThumbnailCount); this.DataContext = this; this.InitializeComponent(); }
public async Task <ImageStream> GetResultImageStream(int height) { try { var extractor = new WvvFrameExtractor2(height, 1); return(await extractor.ExtractSingleFrameStreamAsync(mClip, TimeSpan.FromMilliseconds(mTrimmingSlider.CurrentPosition))); } catch (Exception e) { Error.SetError(e); CmLog.error("WvvFrameSelectorView.GetResultImageStream", e); return(null); } }
public WvvFrameSelectorView() { mExtractor = new WvvFrameExtractor2(40, 30); this.DataContext = this; this.InitializeComponent(); }