Edit

Share via


VideoDevice Class

Definition

The communications channel to a video device.

public abstract class VideoDevice : IDisposable
type VideoDevice = class
    interface IDisposable
Public MustInherit Class VideoDevice
Implements IDisposable
Inheritance
VideoDevice
Implements

Constructors

VideoDevice()

Properties

DevicePath

Path to video resources located on the platform.

ImageBufferPoolingEnabled

true if this VideoDevice should pool the image buffers used. when set to true the consumer must return the image buffers to the ArrayPool<T> Shared instance

IsCapturing

Returns true if the device is already capturing.

IsOpen

Returns true if the connection to the device is already open.

Settings

The connection settings of the video device.

Methods

Capture()

Capture a picture from the video device.

Capture(String)

Capture a picture from the video device.

CaptureContinuous()

The continuous capture stream

CaptureContinuous(CancellationToken)

The continuous capture stream

Create(VideoConnectionSettings)

Create a communications channel to a video device running on Unix.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(Boolean)

Releases the unmanaged resources used by the VideoDevice and optionally releases the managed resources.

GetPixelFormatResolutions(PixelFormat)

Get all the resolutions supported by the specified pixel format.

GetPixelFormatResolutions(VideoPixelFormat)

Get all the resolutions supported by the specified pixel format.

GetSupportedPixelFormats()

Get all the pixel formats supported by the device.

GetVideoDeviceValue(VideoDeviceValueType)

Query controls value from the video device.

Nv12ToRgb(Stream, ValueTuple<UInt32,UInt32>)

Convert NV12(YUV420) to RGB format.

RgbToBitmap(ValueTuple<UInt32,UInt32>, Color[], PixelFormat)

Convert RGB format to bitmap

RgbToBitmap(ValueTuple<UInt32,UInt32>, Color[], PixelFormat)

Convert RGB format to bitmap

StartCaptureContinuous()

Start continuous capture

StopCaptureContinuous()

Stop the continuous capture

YuvToRgb(Stream)

Convert YUV(YUV444) to RGB format.

YuyvToRgb(Stream)

Convert YUYV(YUV422) to RGB format.

Yv12ToRgb(Stream, ValueTuple<UInt32,UInt32>)

Convert YV12(YUV420) to RGB format.

Events

NewImageBufferReady

Event for a new image buffer ready

Applies to