C# Class CodeTV.GraphBuilderBase

Inheritance: IDisposable, VideoControl.IVideoEventHandler, ISampleGrabberCB
Datei anzeigen Open project: dgis/CodeTV Class Usage Examples

Public Properties

Property Type Description
bobDxvaGuid System.Guid
trace System.Diagnostics.TraceSwitch

Protected Properties

Property Type Description
audioRenderer IBaseFilter
audioRendererDevice DsDevice
audioRendererDevices DsDevice>.Dictionary
currentVideoSourceSize System.Drawing.Size
currentVideoTargetRectangle System.Drawing.Rectangle
evrVideoDisplayControl CodeTV.IMFVideoDisplayControl
graphBuilder IFilterGraph2
hostingControl VideoControl
isPossibleGraphPause bool
isPossibleGraphRelease bool
isPossibleGraphRestart bool
isPossibleGraphRun bool
isPossibleGraphStop bool
isPossibleSetPosition bool
isPossibleSetSpeed bool
rot DsROTEntry
settings Settings
useEVR bool
useVideo169Mode bool
useWPF bool
videoAspectRatioFactor double
videoKeepAspectRatio bool
videoOffset System.Drawing.PointF
videoRenderer IBaseFilter
videoZoom double
videoZoomMode VideoSizeMode

Public Methods

Method Description
BuildGraph ( ) : void
Dispose ( ) : void
GetGraphState ( ) : FilterState
GraphBuilderBase ( VideoControl renderingControl ) : System
OnGraphEnded ( ) : void
OnGraphStarted ( ) : void
OnVideoEvent ( int cookies ) : void
PauseGraph ( ) : void
RunGraph ( ) : void
SaveGraph ( string filepath ) : void
StartOSD ( ) : void
StopGraph ( ) : void
StopOSD ( ) : void
VideoRefresh ( ) : void
VideoResizer ( VideoSizeMode videoZoomMode, bool keepAspectRatio, PointF offset, double zoom, double aspectRatioFactor ) : void

Protected Methods

Method Description
AddAndConnectNullRendererForWPF ( ) : void
AddHandlers ( ) : void
AddRenderers ( ) : void
AddRenderers ( IFilterGraph2 graphBuilder ) : void
ConfigureVMR9InWindowlessMode ( ) : void
ConfigureVMR9InWindowlessMode ( int numberOfStream ) : void
ConnectAllOutputFiltersFrom ( IBaseFilter fromFilter, IFilterGraph2 graph ) : void
ConnectFilters ( IBaseFilter filterIn, IBaseFilter filterOut ) : int
CreateFilter ( System.Guid category, string friendlyname ) : IBaseFilter

Enumerates all filters of the selected category and returns the IBaseFilter for the filter described in friendlyname

Decompose ( ) : void
GetBlackBands ( ) : System.Drawing.Rectangle[]
OnDisplayChangedHandler ( object sender, EventArgs e ) : void
OnPaintBackground ( object sender, PaintEventArgs e ) : bool
OnPossibleChanged ( string possible, bool isPossible ) : void
OnResizeMoveHandler ( object sender, EventArgs e ) : void
PaintBlackBands ( Graphics g ) : void
RemoveHandlers ( ) : void
ThrowExceptionForHR ( string errorText, int hr ) : void
Vmr9SetDeinterlaceMode ( int mode ) : void
WPFStop ( ) : void
WpfUpdateVideoSize ( ) : void

Private Methods

Method Description
CopyMemory ( IntPtr Destination, IntPtr Source, int Length ) : void
ISampleGrabberCB ( double sampleTime, IMediaSample mediaSample ) : int

sample callback, NOT USED.

ISampleGrabberCB ( double sampleTime, IntPtr buffer, int bufferLength ) : int

buffer callback, COULD BE FROM FOREIGN THREAD.

OnPaintHandler ( object sender, PaintEventArgs e ) : void

Method Details

AddAndConnectNullRendererForWPF() protected method

protected AddAndConnectNullRendererForWPF ( ) : void
return void

AddHandlers() protected method

protected AddHandlers ( ) : void
return void

AddRenderers() protected method

protected AddRenderers ( ) : void
return void

AddRenderers() protected method

protected AddRenderers ( IFilterGraph2 graphBuilder ) : void
graphBuilder IFilterGraph2
return void

BuildGraph() public method

public BuildGraph ( ) : void
return void

ConfigureVMR9InWindowlessMode() protected method

protected ConfigureVMR9InWindowlessMode ( ) : void
return void

ConfigureVMR9InWindowlessMode() protected method

protected ConfigureVMR9InWindowlessMode ( int numberOfStream ) : void
numberOfStream int
return void

ConnectAllOutputFiltersFrom() protected method

protected ConnectAllOutputFiltersFrom ( IBaseFilter fromFilter, IFilterGraph2 graph ) : void
fromFilter IBaseFilter
graph IFilterGraph2
return void

ConnectFilters() protected method

protected ConnectFilters ( IBaseFilter filterIn, IBaseFilter filterOut ) : int
filterIn IBaseFilter
filterOut IBaseFilter
return int

CreateFilter() protected method

Enumerates all filters of the selected category and returns the IBaseFilter for the filter described in friendlyname
protected CreateFilter ( System.Guid category, string friendlyname ) : IBaseFilter
category System.Guid Category of the filter
friendlyname string Friendly name of the filter
return IBaseFilter

Decompose() protected method

protected Decompose ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

GetBlackBands() protected method

protected GetBlackBands ( ) : System.Drawing.Rectangle[]
return System.Drawing.Rectangle[]

GetGraphState() public method

public GetGraphState ( ) : FilterState
return FilterState

GraphBuilderBase() public method

public GraphBuilderBase ( VideoControl renderingControl ) : System
renderingControl VideoControl
return System

OnDisplayChangedHandler() protected method

protected OnDisplayChangedHandler ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnGraphEnded() public method

public OnGraphEnded ( ) : void
return void

OnGraphStarted() public method

public OnGraphStarted ( ) : void
return void

OnPaintBackground() protected method

protected OnPaintBackground ( object sender, PaintEventArgs e ) : bool
sender object
e PaintEventArgs
return bool

OnPossibleChanged() protected method

protected OnPossibleChanged ( string possible, bool isPossible ) : void
possible string
isPossible bool
return void

OnResizeMoveHandler() protected method

protected OnResizeMoveHandler ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnVideoEvent() public method

public OnVideoEvent ( int cookies ) : void
cookies int
return void

PaintBlackBands() protected method

protected PaintBlackBands ( Graphics g ) : void
g System.Drawing.Graphics
return void

PauseGraph() public method

public PauseGraph ( ) : void
return void

RemoveHandlers() protected method

protected RemoveHandlers ( ) : void
return void

RunGraph() public method

public RunGraph ( ) : void
return void

SaveGraph() public method

public SaveGraph ( string filepath ) : void
filepath string
return void

StartOSD() public method

public StartOSD ( ) : void
return void

StopGraph() public method

public StopGraph ( ) : void
return void

StopOSD() public method

public StopOSD ( ) : void
return void

ThrowExceptionForHR() protected method

protected ThrowExceptionForHR ( string errorText, int hr ) : void
errorText string
hr int
return void

VideoRefresh() public method

public VideoRefresh ( ) : void
return void

VideoResizer() public method

public VideoResizer ( VideoSizeMode videoZoomMode, bool keepAspectRatio, PointF offset, double zoom, double aspectRatioFactor ) : void
videoZoomMode VideoSizeMode
keepAspectRatio bool
offset System.Drawing.PointF
zoom double
aspectRatioFactor double
return void

Vmr9SetDeinterlaceMode() protected method

protected Vmr9SetDeinterlaceMode ( int mode ) : void
mode int
return void

WPFStop() protected method

protected WPFStop ( ) : void
return void

WpfUpdateVideoSize() protected method

protected WpfUpdateVideoSize ( ) : void
return void

Property Details

audioRenderer protected_oe property

protected IBaseFilter audioRenderer
return IBaseFilter

audioRendererDevice protected_oe property

protected DsDevice audioRendererDevice
return DsDevice

audioRendererDevices protected_oe static_oe property

protected static Dictionary audioRendererDevices
return DsDevice>.Dictionary

bobDxvaGuid public_oe static_oe property

public static Guid,System bobDxvaGuid
return System.Guid

currentVideoSourceSize protected_oe property

protected Size,System.Drawing currentVideoSourceSize
return System.Drawing.Size

currentVideoTargetRectangle protected_oe property

protected Rectangle,System.Drawing currentVideoTargetRectangle
return System.Drawing.Rectangle

evrVideoDisplayControl protected_oe property

protected CodeTV.IMFVideoDisplayControl evrVideoDisplayControl
return CodeTV.IMFVideoDisplayControl

graphBuilder protected_oe property

protected IFilterGraph2 graphBuilder
return IFilterGraph2

hostingControl protected_oe property

protected VideoControl,CodeTV hostingControl
return VideoControl

isPossibleGraphPause protected_oe property

protected bool isPossibleGraphPause
return bool

isPossibleGraphRelease protected_oe property

protected bool isPossibleGraphRelease
return bool

isPossibleGraphRestart protected_oe property

protected bool isPossibleGraphRestart
return bool

isPossibleGraphRun protected_oe property

protected bool isPossibleGraphRun
return bool

isPossibleGraphStop protected_oe property

protected bool isPossibleGraphStop
return bool

isPossibleSetPosition protected_oe property

protected bool isPossibleSetPosition
return bool

isPossibleSetSpeed protected_oe property

protected bool isPossibleSetSpeed
return bool

rot protected_oe property

protected DsROTEntry rot
return DsROTEntry

settings protected_oe property

protected Settings,CodeTV settings
return Settings

trace public_oe static_oe property

public static TraceSwitch,System.Diagnostics trace
return System.Diagnostics.TraceSwitch

useEVR protected_oe property

protected bool useEVR
return bool

useVideo169Mode protected_oe property

protected bool useVideo169Mode
return bool

useWPF protected_oe property

protected bool useWPF
return bool

videoAspectRatioFactor protected_oe property

protected double videoAspectRatioFactor
return double

videoKeepAspectRatio protected_oe property

protected bool videoKeepAspectRatio
return bool

videoOffset protected_oe property

protected PointF,System.Drawing videoOffset
return System.Drawing.PointF

videoRenderer protected_oe property

protected IBaseFilter videoRenderer
return IBaseFilter

videoZoom protected_oe property

protected double videoZoom
return double

videoZoomMode protected_oe property

protected VideoSizeMode videoZoomMode
return VideoSizeMode