MediaX v1.0.0rc7 [7e6cb74]
Video streaming for military vehicles
Loading...
Searching...
No Matches
rtph264_payloader.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//
13
14#ifndef H264_VAAPI_RTPH264_PAYLOADER_H_
15#define H264_VAAPI_RTPH264_PAYLOADER_H_
16
17#include <gst/gst.h>
18
19#include "rtp/rtp_payloader.h"
20
22
30
36
48 void SetStreamInfo(std::string_view name, ColourspaceType encoding, uint32_t height, uint32_t width,
49 uint32_t framerate, std::string_view hostname, const uint32_t portno) override;
50
57 bool Open() final;
58
63 void Close() final;
64
72 int Transmit(uint8_t *rgbframe, bool blocking = true) final;
73
78 void Start() final;
79
84 void Stop() final;
85
86 private:
88 GstElement *pipeline_;
89};
90
91} // namespace mediax::rtp::h264::vaapi
92
93#endif // H264_VAAPI_RTPH264_PAYLOADER_H_
Manage an RTP stream.
Definition rtp_payloader.h:30
A RTP payloader for H.264 DEF-STAN 00-82 video streams.
Definition rtph264_payloader.h:24
bool Open() final
Open the RTP stream.
~RtpH264VaapiPayloader() final
Destroy the Rtp H.264 Payloader object.
int Transmit(uint8_t *rgbframe, bool blocking=true) final
GstElement * pipeline_
The Gstreamer pipeline.
Definition rtph264_payloader.h:88
void Start() final
Stop the stream, can be quickly re-started.
void Close() final
Close the RTP stream.
void SetStreamInfo(std::string_view name, ColourspaceType encoding, uint32_t height, uint32_t width, uint32_t framerate, std::string_view hostname, const uint32_t portno) override
Set the Stream Info object.
RtpH264VaapiPayloader()
Construct a new Rtp H.264 Payloader object.
The MediaX Intel Video Accelleration API (VAAPI) namespace.
Definition rtph264_depayloader.cc:24
ColourspaceType
Supported colour spaces.
Definition rtp_types.h:102
RTP streaming video class for uncompressed DEF-STAN 00-82 video streams.