Table of Contents

Class VProcessor

Namespace
VisioForge.Core.VAP
Assembly
VisioForge.Core.dll
public class VProcessor : IDisposable

Inheritance

Implements

Inherited Members

Constructors

VProcessor(BaseContext)

Initializes a new instance of the VisioForge.Core.VAP.VProcessor class.

public VProcessor(BaseContext context)

Parameters

context BaseContext

The context.

Methods

Dispose(bool)

Disposes the resources used by the VisioForge.Core.VAP.VProcessor class.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

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

width int

The width of the video frame.

height int

The height of the video frame.

stride int

The stride of the video frame.

filter string

The filter to be applied.

parameters string

The parameters for the filter.

useHardware bool

If set to true, use hardware acceleration.

Returns

bool

true if initialization is successful, false otherwise.

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

width int

The width of the video frame.

height int

The height of the video frame.

stride int

The stride of the video frame.

data nint

The pointer to the video frame data.

Returns

bool

true if the frame is processed successfully, false otherwise.

Exceptions

ObjectDisposedException

Thrown if the processor is disposed.

ProcessFrame(VideoFrameX)

Processes a video frame.

public bool ProcessFrame(VideoFrameX videoFrame)

Parameters

videoFrame VideoFrameX

The video frame to process.

Returns

bool

true if the frame is processed successfully, false otherwise.

UpdateFilterParameters(string, string)

Update filter parameters.

public bool UpdateFilterParameters(string name, string value)

Parameters

name string

The name.

value string

The value.

Returns

bool

true if successful, false otherwise.