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 : IVideoViewInheritance
Implements
Inherited Members
Methods
CallInvoke(Delegate, params object[])
Invokes a delegate method. Not implemented.
public void CallInvoke(Delegate method, params object[] args)Parameters
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
msgstring-
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
xint-
The x coordinate.
yint-
The y coordinate.
buttonMouseButton-
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
xint-
The x coordinate.
yint-
The y coordinate.
buttonMouseButton-
The mouse button.
PushMouseMove(int, int)
Pushes a mouse move event. Not implemented.
public void PushMouseMove(int x, int y)Parameters
ResizeRoundTo(int)
Resizes the view rounded to specified value. Not implemented.
public void ResizeRoundTo(int round)Parameters
roundint-
The rounding value.
SetHandle(nint)
Sets the window handle. Not implemented.
public void SetHandle(nint handle)Parameters
handlenint-
The window handle.
ShowMessage(string)
Shows a message box. Not implemented.
public MessageBoxResult ShowMessage(string message)Parameters
messagestring-
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[]> OnJPEGFrameEvent 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> OnMouseButtonDownEvent Type
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> OnMouseButtonUpEvent Type
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