jvconnected.ui.models.devicepreview

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

Bases: enum.Enum

PreviewMode Enum

OFF = 1

OFF

VIDEO = 2

Video

WAVEFORM = 3

Waveform

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

Bases: PySide2.QtQuick.QQuickPaintedItem

A video or waveform monitor as a QQuickPaintedItem

device = <PySide2.QtCore.Property object>

The DeviceModel instance

videoMode = <PySide2.QtCore.Property object>

The current display mode as a member of PreviewMode

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]