ToolX 1.11.1 [e3f477f]
A GUI debug tool chain for diagnosing GVA systems
Loading...
Searching...
No Matches
utils.cpp 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 "streams/utils.h"
Include dependency graph for utils.cpp:

Functions

mediax::rtp::ColourspaceType colourSpaceStringFromString (QString colourspace)
 Convert the colour space string to an enum.
int colourSpaceToInt (mediax::rtp::ColourspaceType colourspace, bool vaapi)
 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.

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)