MediaX v1.0.0rc7 [7e6cb74]
Video streaming for military vehicles
Loading...
Searching...
No Matches
QtRtpDepayloader.h
Go to the documentation of this file.
1//
2// Copyright (c) 2025, Astute Systems PTY LTD
3//
4// This file is part of the VivoeX project developed by Astute Systems.
5//
6// Licensed under the Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
7// License. See the LICENSE file in the project root for full license details.
8//
14
15#ifndef QT6_QTRTPDEPAYLOADER_H_
16#define QT6_QTRTPDEPAYLOADER_H_
17
18#include <QByteArray>
19#include <QObject>
20
21#include "qt6/QtCommon.h"
22#include "rtp/rtp.h"
23
24namespace mediax::qt6 {
25
27class QtRtpDepayloader : public QObject {
28 Q_OBJECT
29
30 public:
36 explicit QtRtpDepayloader(QObject *parent = nullptr);
37
43 Q_INVOKABLE virtual void setStreamInfo(const mediax::rtp::StreamInformation &stream_information) = 0;
44
50 Q_INVOKABLE virtual bool open() = 0;
51
56 Q_INVOKABLE virtual void start() = 0;
57
62 Q_INVOKABLE virtual void stop() = 0;
63
68 Q_INVOKABLE virtual void close() = 0;
69
76 Q_INVOKABLE virtual bool receive(QByteArray *frame, int timeout = 0) = 0;
77
82 Q_INVOKABLE virtual QVector<quint8> getBuffer() = 0;
83
88 Q_INVOKABLE virtual mediax::rtp::StreamState getState() const = 0;
89
90 signals:
96 void newFrame(Frame frame);
97};
98
99} // namespace mediax::qt6
100
101#endif // QT6_QTRTPDEPAYLOADER_H_
A RTP depayloader base class.
Definition QtRtpDepayloader.h:27
virtual Q_INVOKABLE mediax::rtp::StreamState getState() const =0
Get the State object.
virtual Q_INVOKABLE void setStreamInfo(const mediax::rtp::StreamInformation &stream_information)=0
Set the Stream Info object.
void newFrame(Frame frame)
Signal to process a new incoming frame.
virtual Q_INVOKABLE void start()=0
Start the RTP stream.
virtual Q_INVOKABLE void stop()=0
Stop the RTP stream.
virtual Q_INVOKABLE QVector< quint8 > getBuffer()=0
Get the Buffer object.
virtual Q_INVOKABLE bool receive(QByteArray *frame, int timeout=0)=0
Receive a frame from the RTP stream.
virtual Q_INVOKABLE void close()=0
Close the RTP stream.
virtual Q_INVOKABLE bool open()=0
Open the RTP stream.
The Qt wrappers namespace.
Definition QtRtpAv1Depayloader.cc:19
StreamState
The stream state.
Definition rtp_depayloader.h:34
RTP streaming video types.
A structure to store frames of video.
Definition QtCommon.h:21
Struct capturing all stream information.
Definition rtp_types.h:223