C# Class CodeTV.GraphBuilderBase

Inheritance: IDisposable, VideoControl.IVideoEventHandler, ISampleGrabberCB
Afficher le fichier Open project: dgis/CodeTV Class Usage Examples

Méthodes publiques

Свойство Type Description
bobDxvaGuid System.Guid
trace System.Diagnostics.TraceSwitch

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

protected AddAndConnectNullRendererForWPF ( ) : void
Résultat void

AddHandlers() protected méthode

protected AddHandlers ( ) : void
Résultat void

AddRenderers() protected méthode

protected AddRenderers ( ) : void
Résultat void

AddRenderers() protected méthode

protected AddRenderers ( IFilterGraph2 graphBuilder ) : void
graphBuilder IFilterGraph2
Résultat void

BuildGraph() public méthode

public BuildGraph ( ) : void
Résultat void

ConfigureVMR9InWindowlessMode() protected méthode

protected ConfigureVMR9InWindowlessMode ( ) : void
Résultat void

ConfigureVMR9InWindowlessMode() protected méthode

protected ConfigureVMR9InWindowlessMode ( int numberOfStream ) : void
numberOfStream int
Résultat void

ConnectAllOutputFiltersFrom() protected méthode

protected ConnectAllOutputFiltersFrom ( IBaseFilter fromFilter, IFilterGraph2 graph ) : void
fromFilter IBaseFilter
graph IFilterGraph2
Résultat void

ConnectFilters() protected méthode

protected ConnectFilters ( IBaseFilter filterIn, IBaseFilter filterOut ) : int
filterIn IBaseFilter
filterOut IBaseFilter
Résultat int

CreateFilter() protected méthode

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
Résultat IBaseFilter

Decompose() protected méthode

protected Decompose ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetBlackBands() protected méthode

protected GetBlackBands ( ) : System.Drawing.Rectangle[]
Résultat System.Drawing.Rectangle[]

GetGraphState() public méthode

public GetGraphState ( ) : FilterState
Résultat FilterState

GraphBuilderBase() public méthode

public GraphBuilderBase ( VideoControl renderingControl ) : System
renderingControl VideoControl
Résultat System

OnDisplayChangedHandler() protected méthode

protected OnDisplayChangedHandler ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

OnGraphEnded() public méthode

public OnGraphEnded ( ) : void
Résultat void

OnGraphStarted() public méthode

public OnGraphStarted ( ) : void
Résultat void

OnPaintBackground() protected méthode

protected OnPaintBackground ( object sender, PaintEventArgs e ) : bool
sender object
e PaintEventArgs
Résultat bool

OnPossibleChanged() protected méthode

protected OnPossibleChanged ( string possible, bool isPossible ) : void
possible string
isPossible bool
Résultat void

OnResizeMoveHandler() protected méthode

protected OnResizeMoveHandler ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

OnVideoEvent() public méthode

public OnVideoEvent ( int cookies ) : void
cookies int
Résultat void

PaintBlackBands() protected méthode

protected PaintBlackBands ( Graphics g ) : void
g System.Drawing.Graphics
Résultat void

PauseGraph() public méthode

public PauseGraph ( ) : void
Résultat void

RemoveHandlers() protected méthode

protected RemoveHandlers ( ) : void
Résultat void

RunGraph() public méthode

public RunGraph ( ) : void
Résultat void

SaveGraph() public méthode

public SaveGraph ( string filepath ) : void
filepath string
Résultat void

StartOSD() public méthode

public StartOSD ( ) : void
Résultat void

StopGraph() public méthode

public StopGraph ( ) : void
Résultat void

StopOSD() public méthode

public StopOSD ( ) : void
Résultat void

ThrowExceptionForHR() protected méthode

protected ThrowExceptionForHR ( string errorText, int hr ) : void
errorText string
hr int
Résultat void

VideoRefresh() public méthode

public VideoRefresh ( ) : void
Résultat void

VideoResizer() public méthode

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
Résultat void

Vmr9SetDeinterlaceMode() protected méthode

protected Vmr9SetDeinterlaceMode ( int mode ) : void
mode int
Résultat void

WPFStop() protected méthode

protected WPFStop ( ) : void
Résultat void

WpfUpdateVideoSize() protected méthode

protected WpfUpdateVideoSize ( ) : void
Résultat void

Property Details

audioRenderer protected_oe property

protected IBaseFilter audioRenderer
Résultat IBaseFilter

audioRendererDevice protected_oe property

protected DsDevice audioRendererDevice
Résultat DsDevice

audioRendererDevices protected_oe static_oe property

protected static Dictionary audioRendererDevices
Résultat DsDevice>.Dictionary

bobDxvaGuid public_oe static_oe property

public static Guid,System bobDxvaGuid
Résultat System.Guid

currentVideoSourceSize protected_oe property

protected Size,System.Drawing currentVideoSourceSize
Résultat System.Drawing.Size

currentVideoTargetRectangle protected_oe property

protected Rectangle,System.Drawing currentVideoTargetRectangle
Résultat System.Drawing.Rectangle

evrVideoDisplayControl protected_oe property

protected CodeTV.IMFVideoDisplayControl evrVideoDisplayControl
Résultat CodeTV.IMFVideoDisplayControl

graphBuilder protected_oe property

protected IFilterGraph2 graphBuilder
Résultat IFilterGraph2

hostingControl protected_oe property

protected VideoControl,CodeTV hostingControl
Résultat VideoControl

isPossibleGraphPause protected_oe property

protected bool isPossibleGraphPause
Résultat bool

isPossibleGraphRelease protected_oe property

protected bool isPossibleGraphRelease
Résultat bool

isPossibleGraphRestart protected_oe property

protected bool isPossibleGraphRestart
Résultat bool

isPossibleGraphRun protected_oe property

protected bool isPossibleGraphRun
Résultat bool

isPossibleGraphStop protected_oe property

protected bool isPossibleGraphStop
Résultat bool

isPossibleSetPosition protected_oe property

protected bool isPossibleSetPosition
Résultat bool

isPossibleSetSpeed protected_oe property

protected bool isPossibleSetSpeed
Résultat bool

rot protected_oe property

protected DsROTEntry rot
Résultat DsROTEntry

settings protected_oe property

protected Settings,CodeTV settings
Résultat Settings

trace public_oe static_oe property

public static TraceSwitch,System.Diagnostics trace
Résultat System.Diagnostics.TraceSwitch

useEVR protected_oe property

protected bool useEVR
Résultat bool

useVideo169Mode protected_oe property

protected bool useVideo169Mode
Résultat bool

useWPF protected_oe property

protected bool useWPF
Résultat bool

videoAspectRatioFactor protected_oe property

protected double videoAspectRatioFactor
Résultat double

videoKeepAspectRatio protected_oe property

protected bool videoKeepAspectRatio
Résultat bool

videoOffset protected_oe property

protected PointF,System.Drawing videoOffset
Résultat System.Drawing.PointF

videoRenderer protected_oe property

protected IBaseFilter videoRenderer
Résultat IBaseFilter

videoZoom protected_oe property

protected double videoZoom
Résultat double

videoZoomMode protected_oe property

protected VideoSizeMode videoZoomMode
Résultat VideoSizeMode