private void DiscardRenderer() { if (m_render != null) { m_render.Dispose(); m_render = null; } }
private void InitRenderer() { Invoke((Action)delegate { m_render = new D3D9Renderer(this.Handle); }); m_render.RegisterDeviceLostCallback(null, OnDeviceRestored); m_render.CreateVideoSurface(m_format.Width, m_format.Height, PixelFormat.YV12, m_source.SAR.Ratio); }
private void CreateRenderer() { DiscardRenderer(); m_render = new D3D9Renderer(IntPtr.Zero); m_render.DisplayMode = VideoDisplayMode.KeepAspectRatio; }