Class VProcessor
- Namespace
- VisioForge.Core.VAP
- Assembly
- VisioForge.Core.dll
public class VProcessor : IDisposableInheritance
Implements
Inherited Members
Constructors
VProcessor(BaseContext)
Initializes a new instance of the VisioForge.Core.VAP.VProcessor class.
public VProcessor(BaseContext context)Parameters
contextBaseContext-
The context.
Methods
Dispose(bool)
Disposes the resources used by the VisioForge.Core.VAP.VProcessor class.
protected virtual void Dispose(bool disposing)Parameters
disposingbool-
If set to
true, dispose managed resources.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()~VProcessor()
Finalizes an instance of the VisioForge.Core.VAP.VProcessor class.
protected ~VProcessor()Init(int, int, int, string, string, bool)
Initializes the video processor with the specified parameters.
public bool Init(int width, int height, int stride, string filter, string parameters, bool useHardware)Parameters
widthint-
The width of the video frame.
heightint-
The height of the video frame.
strideint-
The stride of the video frame.
filterstring-
The filter to be applied.
parametersstring-
The parameters for the filter.
useHardwarebool-
If set to
true, use hardware acceleration.
Returns
- bool
-
trueif initialization is successful,falseotherwise.
Exceptions
- InvalidOperationException
-
Failed to create video processor instance
ProcessFrame(int, int, int, nint)
Processes a video frame.
public bool ProcessFrame(int width, int height, int stride, nint data)Parameters
widthint-
The width of the video frame.
heightint-
The height of the video frame.
strideint-
The stride of the video frame.
datanint-
The pointer to the video frame data.
Returns
- bool
-
trueif the frame is processed successfully,falseotherwise.
Exceptions
- ObjectDisposedException
-
Thrown if the processor is disposed.
ProcessFrame(VideoFrameX)
Processes a video frame.
public bool ProcessFrame(VideoFrameX videoFrame)Parameters
videoFrameVideoFrameX-
The video frame to process.
Returns
- bool
-
trueif the frame is processed successfully,falseotherwise.
UpdateFilterParameters(string, string)
Update filter parameters.
public bool UpdateFilterParameters(string name, string value)Parameters
Returns
- bool
-
trueif successful,falseotherwise.