Beispiel #1
0
        protected void ProcessingOver(DrawtimeFilterOutput _dfo)
        {
            // Notify the ScreenManager that we are done.
            DelegatesPool dp = DelegatesPool.Instance();

            if (dp.VideoProcessingDone != null)
            {
                dp.VideoProcessingDone(_dfo);
            }
        }
 public override void Menu_OnClick(object sender, EventArgs e)
 {
     if (Menu.Checked)
     {
         DrawtimeFilterOutput dfo = new DrawtimeFilterOutput((int)VideoFilterType.Mosaic, false);
         ProcessingOver(dfo);
     }
     else
     {
         DrawtimeFilterOutput dfo = new DrawtimeFilterOutput((int)VideoFilterType.Mosaic, true);
         dfo.PrivateData  = new Parameters(ExtractBitmapList(m_FrameList), 16, false);
         dfo.Draw         = new DelegateDraw(Draw);
         dfo.IncreaseZoom = new DelegateIncreaseZoom(IncreaseZoom);
         dfo.DecreaseZoom = new DelegateDecreaseZoom(DecreaseZoom);
         ProcessingOver(dfo);
     }
 }
Beispiel #3
0
 public override void Menu_OnClick(object sender, EventArgs e)
 {
     if (m_Menu.Checked)
     {
         // Toggle off filter.
         DrawtimeFilterOutput dfo = new DrawtimeFilterOutput((int)VideoFilterType.Mosaic, false);
         ProcessingOver(dfo);
     }
     else
     {
         // 2010-05-19 - Do not display configuration box anymore.
         // The user can now directly scroll to change the parameter. (excep for right to left though.)
         DrawtimeFilterOutput dfo = new DrawtimeFilterOutput((int)VideoFilterType.Mosaic, true);
         dfo.PrivateData  = new Parameters(ExtractBitmapList(m_FrameList), 16, false);
         dfo.Draw         = new DelegateDraw(Draw);
         dfo.IncreaseZoom = new DelegateIncreaseZoom(IncreaseZoom);
         dfo.DecreaseZoom = new DelegateDecreaseZoom(DecreaseZoom);
         ProcessingOver(dfo);
     }
 }
Beispiel #4
0
 public void SetDrawingtimeFilterOutput(DrawtimeFilterOutput _dfo)
 {
     // A video filter just finished and is passing us its output object.
     // It is used as a communication channel between the filter and the player.
     m_PlayerScreenUI.SetDrawingtimeFilterOutput(_dfo);
 }