public void InitGetStartTime() { m_StateMachine.ChangeState(LightCurvesState.SelectingFrameTimes); m_StartFrameTime = DateTime.MaxValue; m_EndFrameTime = DateTime.MinValue; var avoider = new DuplicateFrameAvoider(m_VideoController, (int)m_MinFrame); int firstGoodFrame = avoider.GetFirstGoodFrameId(); m_VideoController.MoveToFrame(firstGoodFrame); TangraContext.Current.CanPlayVideo = false; TangraContext.Current.CanScrollFrames = false; m_VideoController.UpdateViews(); }
private bool IsDuplicatedFrame(int frameId) { var avoider = new DuplicateFrameAvoider((VideoController)m_VideoController, frameId); return avoider.IsDuplicatedFrame(); }
public void InitGetEndTime() { var avoider = new DuplicateFrameAvoider(m_VideoController, (int)m_MaxFrame); int lastGoodFrame = avoider.GetLastGoodFrameId(); m_VideoController.MoveToFrame(lastGoodFrame); }