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(); }
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); } }