C# Class MediaPortal.Player.VMR9Util

Inheritance: IDisposable
Show file Open project: MediaPortal/MediaPortal-1 Class Usage Examples

Public Properties

Property Type Description
MadVrRenderTargetVMR9 Surface
finished System.Threading.AutoResetEvent
g_vmr9 VMR9Util

Protected Properties

Property Type Description
PlaneSceneMadvrTimer System.DateTime
UseEVRMadVRForTV bool
UseMadVideoRenderer bool
UseMadVideoRenderer3D bool
playbackTimer System.DateTime

Public Methods

Method Description
AddVMR9 ( IGraphBuilder graphBuilder ) : bool

Add VMR9 filter to graph and configure it

Dispose ( ) : void

removes the vmr9 filter from the graph and free up all unmanaged resources

EVRProvidePlaybackRate ( double rate ) : void

Notifies EVR presenter about the playback rate changes

EVRSetDVDMenuState ( bool isInDVDMenu ) : void

Notifies EVR presenter if the DVD menu is active

Enable ( bool onOff ) : void
EnableEVRStatsDrawing ( bool enable ) : void

Enables EVR internal stats drawing

GetEVRVideoFPS ( int fpsSource ) : double
GetVideoWindows ( Rectangle &rSource, Rectangle &rDest ) : void
MadVrRepeatFrame ( ) : void

Send call to repeat frame for madVR

Process ( ) : void
ProcessMadVrOsd ( ) : void
RegisterOsd ( ) : void

Register madVR OSD callback

Repaint ( ) : void

repaints the last frame

ResetEVRStats ( ) : void

Resets EVR internal stats

RestoreGuiForMadVr ( ) : void
SaveBitmap ( Bitmap bitmap, bool show, bool transparent, float alphaValue ) : bool
SceneMadVr ( ) : void
SetDeinterlaceMode ( ) : void
SetDeinterlacePrefs ( ) : void
SetMpFullscreenWindow ( ) : void

Set MP Window for madVR when using 3D Trick

SetRepaint ( ) : void
ShutdownMadVr ( ) : void
StartMadVrPaused ( ) : void

Register madVR StartMadVrPaused

StartMediaCtrl ( IMediaControl mediaCtrl ) : int
UpdateEVRDisplayFPS ( ) : void

Gets EVR frame rate Get video FPS - returns FPS from filter graph if 'getReported' is true, otherwise returns FPS estimated from video timestamps

VMR9Util ( ) : System

Constructor

Vmr9MediaCtrl ( IMediaControl mediaCtrl ) : void
WindowsMessageMp ( ) : void

Register madVR WindowsMessageMP

Private Methods

Method Description
EVRDrawStats ( bool enable ) : void
EVRGetVideoFPS ( int fpsSource ) : double
EVRNotifyDVDMenuState ( bool pIsInMenu ) : void
EVRNotifyRateChange ( double pRate ) : void
EVRResetStatCounters ( ) : void
EVRUpdateDisplayFPS ( ) : void
EvrDeinit ( ) : void
EvrInit ( IVMR9PresentCallback callback, uint dwD3DDevice, IBaseFilter &vmr9Filter, uint monitor, int monitorIdx, bool disVsyncCorr, bool disMparCorr ) : bool
MadDeinit ( ) : void
MadInit ( IVMR9PresentCallback callback, int width, int height, uint dwD3DDevice, uint parent, IBaseFilter &madFilter, IMediaControl mPMediaControl ) : bool
MadStopping ( ) : void
MadVrPaused ( bool paused ) : void
MadVrRepeatFrameSend ( ) : void
Vmr9Deinit ( ) : void
Vmr9Init ( IVMR9PresentCallback callback, uint dwD3DDevice, IBaseFilter vmr9Filter, uint monitor ) : bool
Vmr9SetDeinterlaceMode ( Int16 mode ) : void
Vmr9SetDeinterlacePrefs ( uint dwMethod ) : void

Method Details

AddVMR9() public method

Add VMR9 filter to graph and configure it
public AddVMR9 ( IGraphBuilder graphBuilder ) : bool
graphBuilder IGraphBuilder
return bool

Dispose() public method

removes the vmr9 filter from the graph and free up all unmanaged resources
public Dispose ( ) : void
return void

EVRProvidePlaybackRate() public method

Notifies EVR presenter about the playback rate changes
public EVRProvidePlaybackRate ( double rate ) : void
rate double
return void

EVRSetDVDMenuState() public method

Notifies EVR presenter if the DVD menu is active
public EVRSetDVDMenuState ( bool isInDVDMenu ) : void
isInDVDMenu bool
return void

Enable() public method

public Enable ( bool onOff ) : void
onOff bool
return void

EnableEVRStatsDrawing() public method

Enables EVR internal stats drawing
public EnableEVRStatsDrawing ( bool enable ) : void
enable bool
return void

GetEVRVideoFPS() public method

public GetEVRVideoFPS ( int fpsSource ) : double
fpsSource int
return double

GetVideoWindows() public method

public GetVideoWindows ( Rectangle &rSource, Rectangle &rDest ) : void
rSource System.Drawing.Rectangle
rDest System.Drawing.Rectangle
return void

MadVrRepeatFrame() public method

Send call to repeat frame for madVR
public MadVrRepeatFrame ( ) : void
return void

Process() public method

public Process ( ) : void
return void

ProcessMadVrOsd() public method

public ProcessMadVrOsd ( ) : void
return void

RegisterOsd() public method

Register madVR OSD callback
public RegisterOsd ( ) : void
return void

Repaint() public method

repaints the last frame
public Repaint ( ) : void
return void

ResetEVRStats() public method

Resets EVR internal stats
public ResetEVRStats ( ) : void
return void

RestoreGuiForMadVr() public method

public RestoreGuiForMadVr ( ) : void
return void

SaveBitmap() public method

public SaveBitmap ( Bitmap bitmap, bool show, bool transparent, float alphaValue ) : bool
bitmap System.Drawing.Bitmap
show bool
transparent bool
alphaValue float
return bool

SceneMadVr() public method

public SceneMadVr ( ) : void
return void

SetDeinterlaceMode() public method

public SetDeinterlaceMode ( ) : void
return void

SetDeinterlacePrefs() public method

public SetDeinterlacePrefs ( ) : void
return void

SetMpFullscreenWindow() public method

Set MP Window for madVR when using 3D Trick
public SetMpFullscreenWindow ( ) : void
return void

SetRepaint() public method

public SetRepaint ( ) : void
return void

ShutdownMadVr() public method

public ShutdownMadVr ( ) : void
return void

StartMadVrPaused() public method

Register madVR StartMadVrPaused
public StartMadVrPaused ( ) : void
return void

StartMediaCtrl() public method

public StartMediaCtrl ( IMediaControl mediaCtrl ) : int
mediaCtrl IMediaControl
return int

UpdateEVRDisplayFPS() public method

Gets EVR frame rate Get video FPS - returns FPS from filter graph if 'getReported' is true, otherwise returns FPS estimated from video timestamps
public UpdateEVRDisplayFPS ( ) : void
return void

VMR9Util() public method

Constructor
public VMR9Util ( ) : System
return System

Vmr9MediaCtrl() public method

public Vmr9MediaCtrl ( IMediaControl mediaCtrl ) : void
mediaCtrl IMediaControl
return void

WindowsMessageMp() public method

Register madVR WindowsMessageMP
public WindowsMessageMp ( ) : void
return void

Property Details

MadVrRenderTargetVMR9 public property

public Surface MadVrRenderTargetVMR9
return Surface

PlaneSceneMadvrTimer protected property

protected DateTime,System PlaneSceneMadvrTimer
return System.DateTime

UseEVRMadVRForTV protected property

protected bool UseEVRMadVRForTV
return bool

UseMadVideoRenderer protected property

protected bool UseMadVideoRenderer
return bool

UseMadVideoRenderer3D protected property

protected bool UseMadVideoRenderer3D
return bool

finished public static property

public static AutoResetEvent,System.Threading finished
return System.Threading.AutoResetEvent

g_vmr9 public static property

public static VMR9Util,MediaPortal.Player g_vmr9
return VMR9Util

playbackTimer protected property

protected DateTime,System playbackTimer
return System.DateTime