Esempio n. 1
0
        public bool ChangeReInterlaceMode(ReInterlaceMode mode)
        {
            if (Mode != mode)
            {
                Mode = mode;
                if (mode == ReInterlaceMode.SwapFields)
                {
                    TangraContext.Current.ReInterlacingMode = "FieldSwap";
                }
                else if (mode == ReInterlaceMode.ShiftOneField)
                {
                    TangraContext.Current.ReInterlacingMode = "FieldShift";
                    m_ShiftMode = 0;
                }
                else if (mode == ReInterlaceMode.SwapAndShiftOneField)
                {
                    TangraContext.Current.ReInterlacingMode = "FieldSwapAndShift";
                    m_ShiftMode = 1;
                }
                else
                {
                    TangraContext.Current.ReInterlacingMode = null;
                    m_ShiftMode = 0;
                }

                return(true);
            }

            return(false);
        }
Esempio n. 2
0
        private void btnClose_Click(object sender, EventArgs e)
        {
            ReInterlaceMode mode = ReInterlaceMode.None;

            if (rbReInterlaceNon.Checked)
            {
                mode = ReInterlaceMode.None;
            }
            else if (rbReInterlaceSwapFields.Checked)
            {
                mode = ReInterlaceMode.SwapFields;
            }
            else if (rbReInterlaceShiftForward.Checked)
            {
                mode = ReInterlaceMode.ShiftOneField;
            }
            else if (rbReInterlaceShiftAndSwap.Checked)
            {
                mode = ReInterlaceMode.SwapAndShiftOneField;
            }

            if (m_ReInterlacedStream.ChangeReInterlaceMode(mode))
            {
                m_VideoController.RefreshCurrentFrame();
            }

            DialogResult = DialogResult.OK;
            Close();
        }
Esempio n. 3
0
        private void ReInterlacedModeChanged(object sender, EventArgs e)
        {
            ReInterlaceMode mode = ReInterlaceMode.None;

            if (rbReInterlaceNon.Checked)
            {
                mode = ReInterlaceMode.None;
            }
            else if (rbReInterlaceSwapFields.Checked)
            {
                mode = ReInterlaceMode.SwapFields;
            }
            else if (rbReInterlaceShiftForward.Checked)
            {
                mode = ReInterlaceMode.ShiftOneField;
            }
            else if (rbReInterlaceShiftAndSwap.Checked)
            {
                mode = ReInterlaceMode.SwapAndShiftOneField;
            }

            if (m_ReInterlacedStream.ChangeReInterlaceMode(mode))
            {
                FrameAdjustmentsPreview.Instance.ReInterlace(mode);
            }
        }
Esempio n. 4
0
        public void ReInterlace(ReInterlaceMode newMode)
        {
            m_UseReInterlacedMode = newMode != ReInterlaceMode.None;

            Update();
        }
 private ReInterlacingVideoStream(IFrameStream baseStream, ReInterlaceMode mode)
 {
     m_BaseStream = baseStream;
     ChangeReInterlaceMode(mode);
 }
        public bool ChangeReInterlaceMode(ReInterlaceMode mode)
        {
            if (Mode != mode)
            {
                Mode = mode;
                if (mode == ReInterlaceMode.SwapFields)
                    TangraContext.Current.ReInterlacingMode = "FieldSwap";
                else if (mode == ReInterlaceMode.ShiftOneField)
                {
                    TangraContext.Current.ReInterlacingMode = "FieldShift";
                    m_ShiftMode = 0;
                }
                else if (mode == ReInterlaceMode.SwapAndShiftOneField)
                {
                    TangraContext.Current.ReInterlacingMode = "FieldSwapAndShift";
                    m_ShiftMode = 1;
                }
                else
                {
                    TangraContext.Current.ReInterlacingMode = null;
                    m_ShiftMode = 0;
                }

                return true;
            }

            return false;
        }
 public static IFrameStream Create(IFrameStream baseStream, ReInterlaceMode mode)
 {
     return new ReInterlacingVideoStream(baseStream, mode);
 }
Esempio n. 8
0
        public void ReInterlace(ReInterlaceMode newMode)
        {
            m_UseReInterlacedMode = newMode != ReInterlaceMode.None;

            Update();
        }
Esempio n. 9
0
 private ReInterlacingVideoStream(IFrameStream baseStream, ReInterlaceMode mode)
 {
     m_BaseStream = baseStream;
     ChangeReInterlaceMode(mode);
 }
Esempio n. 10
0
 public static IFrameStream Create(IFrameStream baseStream, ReInterlaceMode mode)
 {
     return(new ReInterlacingVideoStream(baseStream, mode));
 }