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); }
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); } }
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); }
public static IFrameStream Create(IFrameStream baseStream, ReInterlaceMode mode) { return(new ReInterlacingVideoStream(baseStream, mode)); }