C# Class MediaPortal.FrameGrabber

Provides functionality for grabbing the next video frame handed by the VMR to MediaPortal.
Exibir arquivo Open project: MediaPortal/MediaPortal-1 Class Usage Examples

Public Methods

Method Description
Clean ( ) : void

Suggests that the FrameGrabber releases resources.

GetCurrentImage ( ) : Bitmap

Grabs the next frame of video obtained from the VMR9 and return it as an RGB image

GetInstance ( ) : FrameGrabber
OnFrame ( Int16 width, Int16 height, Int16 arWidth, Int16 arHeight, uint pSurface, FrameSource FrameSource ) : void

Callback that gives the framegrabber a chance to grab the frame

OnFrameGUI ( ) : void

Callback that gives the framegrabber a chance to grab a GUI frame

OnFrameGUI ( Surface surface ) : void

Callback that gives the framegrabber a chance to grab a GUI frame

Private Methods

Method Description
FrameGrabber ( ) : System
VideoSurfaceToRGBSurface ( IntPtr src, IntPtr dst ) : void

Method Details

Clean() public method

Suggests that the FrameGrabber releases resources.
public Clean ( ) : void
return void

GetCurrentImage() public method

Grabs the next frame of video obtained from the VMR9 and return it as an RGB image
public GetCurrentImage ( ) : Bitmap
return System.Drawing.Bitmap

GetInstance() public static method

public static GetInstance ( ) : FrameGrabber
return FrameGrabber

OnFrame() public method

Callback that gives the framegrabber a chance to grab the frame
public OnFrame ( Int16 width, Int16 height, Int16 arWidth, Int16 arHeight, uint pSurface, FrameSource FrameSource ) : void
width System.Int16
height System.Int16
arWidth System.Int16
arHeight System.Int16
pSurface uint
FrameSource FrameSource
return void

OnFrameGUI() public method

Callback that gives the framegrabber a chance to grab a GUI frame
public OnFrameGUI ( ) : void
return void

OnFrameGUI() public method

Callback that gives the framegrabber a chance to grab a GUI frame
public OnFrameGUI ( Surface surface ) : void
surface Surface
return void