ToolX 1.11.1 [e3f477f]
A GUI debug tool chain for diagnosing GVA systems
Loading...
Searching...
No Matches
qt_av1_vaapi_depayloader.h
Go to the documentation of this file.
1//
2// Copyright (c) 2026, Astute Systems PTY LTD
3//
4// This file is part of the VivoeX project developed by Astute Systems.
5//
6// License. See the LICENSE file in the project root for full license details.
7//
12
13#ifndef STREAMS_QT_AV1_VAAPI_DEPAYLOADER_H
14#define STREAMS_QT_AV1_VAAPI_DEPAYLOADER_H
15
16#ifdef VAAPI_SUPPORTED
17
18# include <QByteArray>
19# include <QObject>
20# include <QVector>
21
22# include <cstdint>
23
24# include "av1/vaapi/rtp_av1_vaapi_depayloader.h"
25# include "qt6/QtRtpDepayloader.h"
26
27namespace toolx::streams {
28
33class QtRtpVaapiAv1Depayloader : public mediax::qt6::QtRtpDepayloader
34{
35public:
39 explicit QtRtpVaapiAv1Depayloader(QObject *parent = nullptr);
40
44 void setStreamInfo(const mediax::rtp::StreamInformation &stream_information) final;
45
49 bool open() final;
50
52 void start() final;
53
55 void stop() final;
56
58 void close() final;
59
65 bool receive(QByteArray *frame, std::int32_t timeout = 0) final;
66
70 QVector<quint8> getBuffer() final;
71
75 mediax::rtp::StreamState getState() const final;
76
77private:
79 mediax::rtp::av1::vaapi::RtpAv1VaapiDepayloader m_depayloader;
80};
81
82} // namespace toolx::streams
83
84#endif // VAAPI_SUPPORTED
85
86#endif // STREAMS_QT_AV1_VAAPI_DEPAYLOADER_H