Table of Contents

Class JPEGCallbackVideoView

Namespace
VisioForge.Core.UI
Assembly
VisioForge.Core.dll

A video view implementation that provides JPEG frame callbacks. This class serves as a callback-based video view that can receive video frames in JPEG format and forward them to event handlers without performing any visual rendering. It implements the IVideoView interface to provide a complete video view abstraction.

public class JPEGCallbackVideoView : IVideoView

Inheritance

Implements

Inherited Members

Methods

CallInvoke(Delegate, params object[])

Invokes a delegate method. Not implemented.

public void CallInvoke(Delegate method, params object[] args)

Parameters

method Delegate

The method to invoke.

args object[]

The arguments.

CallRefresh()

Refreshes the view. Not implemented.

public void CallRefresh()

ClearUI()

Clears the UI. Not implemented.

public void ClearUI()

GetBackgroundColor()

Gets the background color.

public SKColor GetBackgroundColor()

Returns

SKColor

Always returns black.

GetHandle()

Gets the window handle.

public nint GetHandle()

Returns

nint

Always returns IntPtr.Zero.

GetInvokeRequired()

Gets whether invoke is required.

public bool GetInvokeRequired()

Returns

bool

Always returns false.

GetIsHandleCreated()

Gets whether the handle is created.

public bool GetIsHandleCreated()

Returns

bool

Always returns false.

GetSize()

Gets the size of the view.

public Size GetSize()

Returns

Size

Always returns Size(0, 0).

GetUIEngine()

Gets the UI engine type.

public VideoViewUIEngine GetUIEngine()

Returns

VideoViewUIEngine

Returns JPEGCallback.

InvokeStart()

Invokes start operation. Not implemented.

public void InvokeStart()

InvokeStartComplete()

Invokes start complete operation. Not implemented.

public void InvokeStartComplete()

InvokeStop()

Invokes stop operation. Not implemented.

public void InvokeStop()

InvokeVideoRendererUpdate()

Invokes video renderer update. Not implemented.

public void InvokeVideoRendererUpdate()

LogDialogClear()

Clears the log dialog. Not implemented.

public void LogDialogClear()

LogDialogClose()

Closes the log dialog. Not implemented.

public void LogDialogClose()

LogDialogError(string)

Logs an error message in dialog. Not implemented.

public void LogDialogError(string msg)

Parameters

msg string

The error message.

PushMouseButtonDown(int, int, MouseButton)

Pushes a mouse button down event. Not implemented.

public void PushMouseButtonDown(int x, int y, MouseButton button)

Parameters

x int

The x coordinate.

y int

The y coordinate.

button MouseButton

The mouse button.

PushMouseButtonUp(int, int, MouseButton)

Pushes a mouse button up event. Not implemented.

public void PushMouseButtonUp(int x, int y, MouseButton button)

Parameters

x int

The x coordinate.

y int

The y coordinate.

button MouseButton

The mouse button.

PushMouseMove(int, int)

Pushes a mouse move event. Not implemented.

public void PushMouseMove(int x, int y)

Parameters

x int

The x coordinate.

y int

The y coordinate.

ResizeRoundTo(int)

Resizes the view rounded to specified value. Not implemented.

public void ResizeRoundTo(int round)

Parameters

round int

The rounding value.

SetHandle(nint)

Sets the window handle. Not implemented.

public void SetHandle(nint handle)

Parameters

handle nint

The window handle.

ShowMessage(string)

Shows a message box. Not implemented.

public MessageBoxResult ShowMessage(string message)

Parameters

message string

The message to display.

Returns

MessageBoxResult

Always returns None.

OnJPEGFrame

Occurs when a new JPEG frame is available. This event is raised whenever a new video frame is received in JPEG format, providing the raw JPEG data as a byte array for custom processing.

public event EventHandler<byte[]> OnJPEGFrame

Event Type

EventHandler<byte[]>

OnMouseButtonDown

Occurs when mouse button is pressed down. This event is raised when a mouse button is pressed down on the video view.

public event EventHandler<MouseButtonEventArgs> OnMouseButtonDown

Event Type

EventHandler<MouseButtonEventArgs>

OnMouseButtonUp

Occurs when mouse button is released. This event is raised when a mouse button is released on the video view.

public event EventHandler<MouseButtonEventArgs> OnMouseButtonUp

Event Type

EventHandler<MouseButtonEventArgs>

OnMouseMoved

Occurs when mouse is moved. This event is raised when the mouse cursor is moved over the video view.

public event EventHandler<MouseMoveEventArgs> OnMouseMoved

Event Type

EventHandler<MouseMoveEventArgs>