示例#1
0
 /**
  * コンストラクタ
  */
 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();
        }
示例#3
0
 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);
     }
 }
示例#4
0
 public WvvFrameSelectorView()
 {
     mExtractor       = new WvvFrameExtractor2(40, 30);
     this.DataContext = this;
     this.InitializeComponent();
 }