MxPEG
viewer widget for early demo configurations.
More...
#include <mxcpcSimpleMxPEGViewer.h>
Inheritance diagram for mxcpcSimpleMxPEGViewer:
Public Slots | |
void | playCameraLiveFastStream (const mxcpcIPAddress &camera_ip, int camera_port, const mxcpcProxyConfiguration &camera_proxy_configuration, float fps) |
Connects to the camera specified and begins displaying the live stream. | |
void | stop (void) |
Disconnects any potential stream source asnd switches to disconnected state. | |
Signals | |
void | framerateMeasured (float fps) |
Emitted if framerate measure mode is enabled and a new framerate measure becomes available (roughly every n milliseconds with n as it was specified to setFramerateMeasureModeEnabled()). | |
Public Member Functions | |
mxcpcSimpleMxPEGViewer (QWidget *parent, mxcpcMxPEGCodecFactory *codec_factory, const QString &window_title_prefix=QString("SimpleMxPEGViewer"), int connection_timeout=2000) | |
Well, constructor. | |
~mxcpcSimpleMxPEGViewer () | |
void | addMenuItem (const QString &item_text, const QObject *receiver, const char *slot) |
Adds an item to the viewer's context menu that is raised by right-clicking into the display. | |
void | addMenuSeparator (void) |
Adds a horizontal separator to the viewer's popup menu. | |
void | setFramerateMeasureModeEnabled (bool enabled, int measure_interval_ms=10000) |
Toggles framerate measure mode. | |
Protected Member Functions | |
void | paintGL (void) |
Reimplemented. | |
void | resizeGL (int width, int height) |
Reimplemented. | |
void | mousePressEvent (QMouseEvent *e) |
Reimplemented. | |
Private Slots | |
void | processIncoming (void) |
void | processWatchdog (void) |
void | processMeasuredFramerate (float fps) |
Private Attributes | |
mxcpcMxPEGCodecFactory * | CodecFactory |
mxcpcFramewiseMxPEGDecoder * | Decoder |
mxcpcAsynchronousCameraLiveMxPEGFastStream * | FastStream |
mxcpcBufferedMxPEGVideoRenderer * | Renderer |
QTimer * | ConnectionWatchdogTimer |
int | LastDrawnFrame |
int | ConnectionTimeout |
QMenu * | Menu |
mxcpcAuthenticationDialog * | AuthenticationDialog |
mxcpcMessageDialog * | MessageDialog |
QString | WindowTitlePrefix |
int | FramerateMeasureInterval |
MxPEG
viewer widget for early demo configurations.
Definition at line 48 of file mxcpcSimpleMxPEGViewer.h.
|
Well, constructor.
Definition at line 47 of file mxcpcSimpleMxPEGViewer.cpp. |
|
Connects to the camera specified and begins displaying the live stream. If the viewer was already streaming, the old stream source is disconected properly. Definition at line 98 of file mxcpcSimpleMxPEGViewer.cpp. References mxcpcIPAddress::getIP1(), mxcpcIPAddress::getIP2(), mxcpcIPAddress::getIP3(), and mxcpcIPAddress::getIP4(). Referenced by main(). |
|
Toggles framerate measure mode. Per default, the framerate measure mode is disabled. Definition at line 215 of file mxcpcSimpleMxPEGViewer.cpp. |
|
Disconnects any potential stream source asnd switches to disconnected state. If the viewer is currently not connected to any stream source, the method has no effect. Definition at line 182 of file mxcpcSimpleMxPEGViewer.cpp. References ConnectionWatchdogTimer, Decoder, FastStream, Renderer, and WindowTitlePrefix. Referenced by processWatchdog(). |