MediaX v1.0.0rc7 [7e6cb74]
Video streaming for military vehicles
Loading...
Searching...
No Matches
sap_utils.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//
14
15#ifndef SAP_SAP_UTILS_H_
16#define SAP_SAP_UTILS_H_
17
18#include <string>
19
20#include "rtp/rtp_types.h"
21#include "sap/sap_listener.h"
22
24namespace mediax::sap {
25
32::mediax::rtp::StreamInformation SapToStreamInformation(const SdpMessage& sdp_message);
33
41mediax::rtp::ColourspaceType SamplingToColourspaceType(std::string_view sampling, uint32_t bits_per_pixel);
42
49std::string GetSdpColourspace(mediax::rtp::ColourspaceType colourspace);
50
51#endif // SAP_SAP_UTILS_H_
52
53} // namespace mediax::sap
ColourspaceType
Supported colour spaces.
Definition rtp_types.h:102
The Session Announcment Protocol (SAP)/ Session Description Protocol (SDP) namespace.
Definition sap_announcer.cc:35
mediax::rtp::ColourspaceType SamplingToColourspaceType(std::string_view sampling, uint32_t bits_per_pixel)
Convert a string to a ColourspaceType.
Definition sap_utils.cc:35
std::string GetSdpColourspace(mediax::rtp::ColourspaceType colourspace)
Get the Sdp Colourspace object.
Definition sap_utils.cc:47
::mediax::rtp::StreamInformation SapToStreamInformation(const SdpMessage &sdp_message)
Convert the SDP message to a StreamInformation object.
Definition sap_utils.cc:23
RTP streaming video types.
Session Announcement Protocol (SDP) implementation for listening to announcements of stream data....
Struct capturing all stream information.
Definition rtp_types.h:223