MediaX v1.0.0rc7 [7e6cb74]
Video streaming for military vehicles
Loading...
Searching...
No Matches
QtRtpJpegVaapiDepayloader.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_QTRTPJPEGVAAPIDEPAYLOADER_H_
16#define QT6_QTRTPJPEGVAAPIDEPAYLOADER_H_
17
18#include <QByteArray>
19#include <QObject>
20#include <QVector>
21
22#include "jpeg/gst/rtp_jpeg_depayloader.h"
24
25namespace mediax::qt6 {
26
29 public:
35 explicit QtRtpJpegVaapiDepayloader(QObject *parent = nullptr);
36
42 Q_INVOKABLE void setStreamInfo(const mediax::rtp::StreamInformation &stream_information) final;
43
49 Q_INVOKABLE bool open() final;
50
55 Q_INVOKABLE void start() final;
56
61 Q_INVOKABLE void stop() final;
62
67 Q_INVOKABLE void close() final;
68
75 Q_INVOKABLE bool receive(QByteArray *frame, int timeout = 0) final;
76
81 Q_INVOKABLE QVector<quint8> getBuffer() final;
82
87 Q_INVOKABLE mediax::rtp::StreamState getState() const final;
88
89 private:
92};
93
94} // namespace mediax::qt6
95
96#endif // QT6_QTRTPJPEGVAAPIDEPAYLOADER_H_
RTP streaming video class for uncompressed DEF-STAN 00-82 video streams.
A RTP depayloader base class.
Definition QtRtpDepayloader.h:27
A RTP depayloader for H.265 DEF-STAN 00-82 video streams.
Definition QtRtpJpegVaapiDepayloader.h:28
Q_INVOKABLE void stop() final
Stop the RTP stream.
Definition QtRtpJpegVaapiDepayloader.cc:44
Q_INVOKABLE QVector< quint8 > getBuffer() final
Get the Buffer object.
Definition QtRtpJpegVaapiDepayloader.cc:57
mediax::rtp::jpeg::gst::vaapi::RtpJpegGstVaapiDepayloader m_depayloader
The underlying RTP H.265 depayloader.
Definition QtRtpJpegVaapiDepayloader.h:91
Q_INVOKABLE void start() final
Start the RTP stream.
Definition QtRtpJpegVaapiDepayloader.cc:42
Q_INVOKABLE bool open() final
Open the RTP stream.
Definition QtRtpJpegVaapiDepayloader.cc:40
Q_INVOKABLE bool receive(QByteArray *frame, int timeout=0) final
Receive a frame from the RTP stream.
Definition QtRtpJpegVaapiDepayloader.cc:48
Q_INVOKABLE void close() final
Close the RTP stream.
Definition QtRtpJpegVaapiDepayloader.cc:46
Q_INVOKABLE void setStreamInfo(const mediax::rtp::StreamInformation &stream_information) final
Set the Stream Info object.
Definition QtRtpJpegVaapiDepayloader.cc:23
Q_INVOKABLE mediax::rtp::StreamState getState() const final
Get the State object.
Definition QtRtpJpegVaapiDepayloader.cc:64
A RTP payloader for H.264 DEF-STAN 00-82 video streams.
Definition rtp_jpeg_depayloader.h:29
The Qt wrappers namespace.
Definition QtRtpAv1Depayloader.cc:19
StreamState
The stream state.
Definition rtp_depayloader.h:34
Struct capturing all stream information.
Definition rtp_types.h:223