A RTP SAP transmitter helper class.
More...
#include <rtp_sap_wrapper.h>
|
| RtpSapTransmit (std::string_view hostname, uint16_t port, std::string_view session_name, uint16_t height, uint16_t width, uint16_t framerate, std::string_view encoding) |
| Construct a new Rtp Sap Transmit object.
|
|
std::vector< uint8_t > & | GetBuffer () |
| Get the frame buffer, resized and ready to use.
|
|
std::vector< uint8_t > & | GetBuffer (uint32_t width, uint32_t height, ::mediax::rtp::ColourspaceType encoding) |
| Get the frame buffer, resized and ready to use.
|
|
std::vector< uint8_t > & | GetBufferTestPattern (uint32_t pattern=0) |
| Get the frame buffer containing a pre-defined test pattern.
|
|
std::vector< uint8_t > & | GetBufferTestPattern (uint32_t height, uint32_t width, ::mediax::rtp::ColourspaceType encoding, uint32_t pattern=0) |
| This function can be called directly with explicit arguments.
|
|
| ~RtpSapTransmit () |
| Destroy the Rtp Sap Transmit object.
|
|
void | Transmit (uint8_t *data, size_t size) |
| The frame transmit function, this will transmit the frame over RTP at the required frequency.
|
|
template<typename T>
class mediax::RtpSapTransmit< T >
A RTP SAP transmitter helper class.
◆ RtpSapTransmit()
template<typename T >
mediax::RtpSapTransmit< T >::RtpSapTransmit |
( |
std::string_view |
hostname, |
|
|
uint16_t |
port, |
|
|
std::string_view |
session_name, |
|
|
uint16_t |
height, |
|
|
uint16_t |
width, |
|
|
uint16_t |
framerate, |
|
|
std::string_view |
encoding |
|
) |
| |
|
inline |
Construct a new Rtp Sap Transmit object.
- Parameters
-
hostname | The IPV4 multicast address |
port | The IPV4 multicast port |
session_name | The name of the stream |
height | The height of the stream |
width | The width of the stream |
framerate | The framerate of the stream |
encoding | The encoding of the stream, the valid options are:
- "YUV422" for RTP uncompressed only
- "RGB24" for RTP uncompressed only
- "MONO8" for RTP uncompressed only
- "MONO16" for RTP uncompressed only
- "JPEG" for RTP JPEG modes only
- "H264" for RTP H.264 modes only
- "H265" for RTP H.265 modes only
- "AV1" for RTP AV1 modes only
|
◆ GetBuffer() [1/2]
Get the frame buffer, resized and ready to use.
- Returns
- vector<uint8_t>&
◆ GetBuffer() [2/2]
Get the frame buffer, resized and ready to use.
- Returns
- vector<uint8_t>&
◆ GetBufferTestPattern() [1/2]
This function can be called directly with explicit arguments.
- Parameters
-
height | The pattern width |
width | The pattern height |
encoding | The return buffer encoding |
pattern | The pattern to generate |
◆ GetBufferTestPattern() [2/2]
Get the frame buffer containing a pre-defined test pattern.
List of test patterns supported
- 0=EBU Colour Bars
- 1=Colour Bars
- 2=Grey Scale Bars
- 3=Checkered
- 4=Red
- 5=Green
- 6=Blue
- 7=Black
- 8=White
- 9=White Noise
- 10=Bouncing Ball
- Parameters
-
pattern | The test pattern generate from the list above, see rtp_utils.h |
- Returns
- std::vector<uint8_t>&
◆ Transmit()
The frame transmit function, this will transmit the frame over RTP at the required frequency.
- Parameters
-
data | The RGB frame data |
size | The size of the RGB frame data |
The documentation for this class was generated from the following file: