jvconnected.ui.models.devicepreview

class jvconnected.ui.models.devicepreview.PreviewMode(value)[source]

Bases: Enum

PreviewMode Enum

OFF = 1

OFF

VIDEO = 2

Video

WAVEFORM = 3

Waveform

class jvconnected.ui.models.devicepreview.CameraPreview(*args)[source]

Bases: QQuickPaintedItem

A video or waveform monitor as a QQuickPaintedItem

Property device: jvconnected.ui.models.device.DeviceModel

The DeviceModel instance

Property videoMode: str

The current display mode as a member of PreviewMode

async Slot setVideoMode(mode: str)[source]

Set videoMode and handle necessary task control

async capture_loop()[source]

Open the devicepreview and continuously request image frames while videoMode is VIDEO or WAVEFORM.

Each frame is then placed into a QPixmap and an update is requested via QPainter

paint(self, painter: PySide2.QtGui.QPainter)[source]