ToolX 1.11.1 [e3f477f]
A GUI debug tool chain for diagnosing GVA systems
Loading...
Searching...
No Matches
utils.h File Reference

Session Announcement Protocol (SDP) implementation for listening to announcements of stream data. The SAP packet contains the Session Description Protocol (SDP). More...

#include <QString>
#include "rtp/rtp.h"
#include "common/datatypes.h"
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

mediax::rtp::ColourspaceType colourSpaceStringFromString (QString colourspace)
 Convert the colour space string to an enum.
int colourSpaceToInt (mediax::rtp::ColourspaceType colourspace, bool vaapi=false)
 Convert the colour space to a stream format ID.
mediax::rtp::ColourspaceType intToColourSpace (int colourspace)
 Convert a stream format ID to a colour space.
bool isVaapiH264Format (int colourspace)
 Check if a stream format ID selects the VAAPI H.264 encoder.
QString ColourspaceTypeToQString (mediax::rtp::ColourspaceType colourspace)
 Convert the colour space to a string.

Variables

constexpr int kFormatH264OpenH264 = 4
 Stream format IDs: the index of the RTP table Encoding drop down, the colourspace column of CSV files and of the saved settings. 0 to 3 are RGB24, YCbCr, Mono8 and Mono16.
constexpr int kFormatH264Vaapi = 5
constexpr int kFormatH265 = 6
constexpr int kFormatJpeg = 7
constexpr int kFormatAv1 = 8

Detailed Description

Session Announcement Protocol (SDP) implementation for listening to announcements of stream data. The SAP packet contains the Session Description Protocol (SDP).

Function Documentation

◆ colourSpaceStringFromString()

mediax::rtp::ColourspaceType colourSpaceStringFromString ( QString colourspace)

Convert the colour space string to an enum.

Parameters
colourspaceThe text representation of the colour space
Returns
mediax::rtp::ColourspaceType the colour space enum

◆ colourSpaceToInt()

int colourSpaceToInt ( mediax::rtp::ColourspaceType colourspace,
bool vaapi = false )

Convert the colour space to a stream format ID.

Parameters
colourspacethe colour space to convert
vaapifor H.264, true to select the VAAPI encoder instead of OpenH264
Returns
int

◆ ColourspaceTypeToQString()

QString ColourspaceTypeToQString ( mediax::rtp::ColourspaceType colourspace)

Convert the colour space to a string.

Parameters
colourspace
Returns
QString the string representation of the colour space

◆ intToColourSpace()

mediax::rtp::ColourspaceType intToColourSpace ( int colourspace)

Convert a stream format ID to a colour space.

Parameters
colourspacethe stream format ID to convert
Returns
mediax::rtp::ColourspaceType

◆ isVaapiH264Format()

bool isVaapiH264Format ( int colourspace)

Check if a stream format ID selects the VAAPI H.264 encoder.

Parameters
colourspacethe stream format ID
Returns
true for H.264 (VAAPI)