//current state
 public PreviewThreadLauncher(IVideoPlayer player, ISomeCommonEditorOperations editor)
 {
     this.player = player;
     this.editor = editor;
     mutex = new PreviewThreadMutex();
     ticker = new Timer();
     ticker.Tick += PlaybackTickerFunc;
 }
Beispiel #2
0
        //current state


        public PreviewThreadLauncher(IVideoPlayer player, ISomeCommonEditorOperations editor)
        {
            this.player  = player;
            this.editor  = editor;
            mutex        = new PreviewThreadMutex();
            ticker       = new Timer();
            ticker.Tick += PlaybackTickerFunc;
        }
        public EditOperationMoveVideo(ISomeCommonEditorOperations iEditor,
			VidkaUiStateObjects uiObjects,
			ProjectDimensions dimdim,
			IVideoEditor editor,
			IVideoPlayer videoPlayer)
            : base(iEditor, uiObjects, dimdim, editor, videoPlayer)
        {
            copyMode = false;
            keyboardMode = false;
        }
Beispiel #4
0
        private bool isStarted;         // TODO: future plan to only initialize draggy when drag index is different... will avoid flickering... however there is no information about this index without the draggy

        public EditOperationMoveVideo(ISomeCommonEditorOperations iEditor,
                                      VidkaUiStateObjects uiObjects,
                                      ProjectDimensions dimdim,
                                      IVideoEditor editor,
                                      IVideoPlayer videoPlayer)
            : base(iEditor, uiObjects, dimdim, editor, videoPlayer)
        {
            copyMode     = false;
            keyboardMode = false;
        }
        public EditOperationSelectOriginalSegment(ISomeCommonEditorOperations iEditor,
			VidkaUiStateObjects uiObjects,
			ProjectDimensions dimdim,
			IVideoEditor editor,
			IVideoPlayer videoPlayer)
            : base(iEditor, uiObjects, dimdim, editor, videoPlayer)
        {
            keyboardMode = false;
            isStarted = false;
        }
 public EditOperationSelectOriginalSegment(ISomeCommonEditorOperations iEditor,
                                           VidkaUiStateObjects uiObjects,
                                           ProjectDimensions dimdim,
                                           IVideoEditor editor,
                                           IVideoPlayer videoPlayer)
     : base(iEditor, uiObjects, dimdim, editor, videoPlayer)
 {
     keyboardMode = false;
     isStarted    = false;
 }
Beispiel #7
0
        public static void SetFrameMarker_RightOfVClipJustBefore(this ISomeCommonEditorOperations iEditor, VidkaClipVideo vclip, VidkaProj proj)
        {
            long frameMarker       = proj.GetVideoClipAbsFramePositionLeft(vclip);
            var  rightThreshFrames = proj.SecToFrame(Settings.Default.RightTrimMarkerOffsetSeconds);

            // if clip is longer than RightTrimMarkerOffsetSeconds, we can skip to end-RightTrimMarkerOffsetSeconds
            if (vclip.LengthFrameCalc > rightThreshFrames)
            {
                frameMarker += vclip.LengthFrameCalc - rightThreshFrames;
            }
            iEditor.SetFrameMarker_ShowFrameInPlayer(frameMarker);
        }
Beispiel #8
0
 public EditOperationAbstract(
     ISomeCommonEditorOperations iEditor,
     VidkaUiStateObjects uiObjects,
     ProjectDimensions dimdim,
     IVideoEditor editor,
     IVideoPlayer videoPlayer)
 {
     this.iEditor     = iEditor;
     this.uiObjects   = uiObjects;
     this.dimdim      = dimdim;
     this.editor      = editor;
     this.videoPlayer = videoPlayer;
 }
 public EditOperationTrimVideo(ISomeCommonEditorOperations iEditor,
                               VidkaUiStateObjects uiObjects,
                               ProjectDimensions dimdim,
                               IVideoEditor editor,
                               IVideoPlayer videoPlayer,
                               TrimDirection side,
                               ProjectDimensionsTimelineType timeline)
     : base(iEditor, uiObjects, dimdim, editor, videoPlayer)
 {
     this.side     = side;
     this.timeline = timeline;
     keyboardMode  = false;
 }
        public EditOperationTrimVideo(ISomeCommonEditorOperations iEditor,
			VidkaUiStateObjects uiObjects,
			ProjectDimensions dimdim,
			IVideoEditor editor,
			IVideoPlayer videoPlayer,
			TrimDirection side,
			ProjectDimensionsTimelineType timeline)
            : base(iEditor, uiObjects, dimdim, editor, videoPlayer)
        {
            this.side = side;
            this.timeline = timeline;
            keyboardMode = false;
        }
        public EditOperationAbstract(
			ISomeCommonEditorOperations iEditor,
			VidkaUiStateObjects uiObjects,
			ProjectDimensions dimdim,
			IVideoEditor editor,
			IVideoPlayer videoPlayer)
        {
            this.iEditor = iEditor;
            this.uiObjects = uiObjects;
            this.dimdim = dimdim;
            this.editor = editor;
            this.videoPlayer = videoPlayer;
        }
Beispiel #12
0
        public static void SetFrameMarker_LeftOfVClip(this ISomeCommonEditorOperations iEditor, VidkaClipVideo vclip, VidkaProj proj)
        {
            long frameMarker = proj.GetVideoClipAbsFramePositionLeft(vclip);

            iEditor.SetFrameMarker_ShowFrameInPlayer(frameMarker);
        }