|
RAVENNAKIT
|
Classes | |
| struct | ConnectionInfoField |
| A type representing the connection information (c=*) of an SDP session description. More... | |
| struct | Format |
| Holds the information of an RTP map. More... | |
| class | Group |
| Represents a group of media descriptions in an SDP message. More... | |
| class | MediaClockSource |
| The media clock source for a stream determines the timebase used to advance the RTP timestamps included in RTP packets. More... | |
| struct | OriginField |
| A type which represents the origin field (o=*) of an SDP session description. More... | |
| struct | RavennaClockDomain |
| Defines a clock source and domain. More... | |
| class | ReferenceClock |
| Specifies the reference clock as specified in RFC 7273 and AES67. More... | |
| class | SourceFilter |
| struct | TimeActiveField |
| A type representing the time field (t=*) of an SDP session description. More... | |
| struct | MediaDescription |
| A type representing a media description (m=*) as part of an SDP session description. More... | |
| struct | SessionDescription |
| A struct that represents an SDP session description as defined in RFC 8866. More... | |
Enumerations | |
| enum class | NetwType { undefined , internet } |
| enum class | AddrType { undefined , ipv4 , ipv6 , both } |
| enum class | MediaDirection { sendrecv , sendonly , recvonly , inactive } |
| enum class | FilterMode { undefined , exclude , include } |
Functions | |
| tl::expected< ConnectionInfoField, std::string > | parse_connection_info (std::string_view line) |
| Parses a connection info field from a string. | |
| std::string | to_string (const ConnectionInfoField &field) |
| Converts the connection info to a string. | |
| tl::expected< void, std::string > | validate (const ConnectionInfoField &field) |
| Validates the connection info. | |
| tl::expected< Format, std::string > | parse_format (std::string_view line) |
| Parses a format from a string. | |
| std::optional< Format > | make_audio_format (const AudioFormat &input_format) |
| std::optional< AudioFormat > | make_audio_format (const Format &input_format) |
| std::string | to_string (const Format &input_format) |
| Converts a Format to an SDP compatible string. | |
| tl::expected< Group, std::string > | parse_group (std::string_view line) |
| Parses a group line from an SDP message. | |
| std::string | to_string (const Group &input) |
| std::string | to_string (const MediaClockSource &mode) |
| Converts the media clock source to a string. | |
| const char * | to_string (MediaClockSource::ClockMode mode) |
| Converts the clock mode to a string. | |
| tl::expected< void, std::string > | validate (const MediaClockSource &clock_source) |
| Validates the media clock source. | |
| tl::expected< MediaClockSource, std::string > | parse_media_clock_source (std::string_view line) |
| Create a MediaClockSource from a string from an SDP. | |
| tl::expected< OriginField, std::string > | parse_origin (std::string_view line) |
| Parses an origin field from a string. | |
| std::string | to_string (const OriginField &field) |
| Converts the origin field to a string. | |
| tl::expected< void, std::string > | validate (const OriginField &field) |
| Validates the members of this struct. | |
| tl::expected< RavennaClockDomain, std::string > | parse_ravenna_clock_domain (std::string_view line) |
| Parses a new instance of this structure from a string. | |
| const char * | to_string (RavennaClockDomain::SyncSource source) |
| std::string | to_string (const RavennaClockDomain &ravenna_clock_domain) |
| tl::expected< void, std::string > | validate (const RavennaClockDomain &ravenna_clock_domain) |
| Validates the values of this structure. | |
| const char * | to_string (ReferenceClock::ClockSource source) |
| const char * | to_string (ReferenceClock::PtpVersion version) |
| std::string | to_string (const ReferenceClock &reference_clock) |
| Converts the reference clock to a string. | |
| tl::expected< ReferenceClock, std::string > | parse_reference_clock (std::string_view line) |
| Parses a reference clock from a string. | |
| tl::expected< void, std::string > | validate (const ReferenceClock &reference_clock) |
| Validates the state of this object. | |
| std::string | to_string (const SourceFilter &filter) |
| Converts the source filter to a string. | |
| tl::expected< SourceFilter, std::string > | parse_source_filter (std::string_view line) |
| Parses a connection info field from a string. | |
| tl::expected< void, std::string > | validate (const SourceFilter &filter) |
| Validates the source filter. | |
| tl::expected< TimeActiveField, std::string > | parse_time_active (std::string_view line) |
| Parses a time field from a string. | |
| std::string | to_string (const TimeActiveField &time_active_field) |
| Converts the time field to an SDP compatible string. | |
| tl::expected< void, std::string > | validate (const TimeActiveField &time_active_field) |
| Validates the values of this structure. | |
| const char * | to_string (const NetwType &type) |
| const char * | to_string (const AddrType &type) |
| const char * | to_string (const MediaDirection &direction) |
| const char * | to_string (const FilterMode &filter_mode) |
| tl::expected< void, std::string > | validate (const MediaDescription &media) |
| Validates the media description. | |
| std::string | to_string (const MediaDescription &media_description, const char *newline=k_sdp_crlf) |
| Converts the media description to a string. | |
| tl::expected< MediaDescription, std::string > | parse_media_description (std::string_view line) |
| Parses a media description from a string (i.e. | |
| tl::expected< int, std::string > | parse_version (std::string_view line) |
| tl::expected< SessionDescription, std::string > | parse_session_description (const std::string &sdp_text) |
| Parses an SDP session description from a string. | |
| std::optional< std::string > | to_string (const SessionDescription &session_description, const char *newline=k_sdp_crlf) |
| Converts the session description to a string. | |
Variables | |
| constexpr auto | k_sdp_ptime = "ptime" |
| constexpr auto | k_sdp_max_ptime = "maxptime" |
| constexpr auto | k_sdp_rtp_map = "rtpmap" |
| constexpr auto | k_sdp_sendrecv = "sendrecv" |
| constexpr auto | k_sdp_sendonly = "sendonly" |
| constexpr auto | k_sdp_recvonly = "recvonly" |
| constexpr auto | k_sdp_inactive = "recvonly" |
| constexpr auto | k_sdp_ts_refclk = "ts-refclk" |
| constexpr auto | k_sdp_sync_time = "sync-time" |
| constexpr auto | k_sdp_group = "group" |
| constexpr auto | k_sdp_clock_deviation = "clock-deviation" |
| constexpr auto | k_sdp_mid = "mid" |
| constexpr auto | k_sdp_inet = "IN" |
| constexpr auto | k_sdp_ipv4 = "IP4" |
| constexpr auto | k_sdp_ipv6 = "IP6" |
| constexpr auto | k_sdp_wildcard = "*" |
| constexpr auto | k_sdp_crlf = "\r\n" |
|
strong |
| Enumerator | |
|---|---|
| undefined | |
| ipv4 | |
| ipv6 | |
| both | |
Definition at line 30 of file sdp_types.hpp.
|
strong |
| Enumerator | |
|---|---|
| undefined | |
| exclude | |
| include | |
Definition at line 32 of file sdp_types.hpp.
|
strong |
| Enumerator | |
|---|---|
| sendrecv | |
| sendonly | |
| recvonly | |
| inactive | |
Definition at line 31 of file sdp_types.hpp.
|
strong |
| Enumerator | |
|---|---|
| undefined | |
| internet | |
Definition at line 29 of file sdp_types.hpp.
|
nodiscard |
|
nodiscard |
| tl::expected< ConnectionInfoField, std::string > rav::sdp::parse_connection_info | ( | std::string_view | line | ) |
Parses a connection info field from a string.
| line | The string to parse. |
|
nodiscard |
Parses a format from a string.
| line | The string to parse. |
|
nodiscard |
Parses a group line from an SDP message.
| line | The line to parse. |
|
nodiscard |
Create a MediaClockSource from a string from an SDP.
| line | The input text. |
| tl::expected< MediaDescription, std::string > rav::sdp::parse_media_description | ( | std::string_view | line | ) |
Parses a media description from a string (i.e.
the line starting with m=*). Does not parse the connection into or attributes.
| line | The string to parse. |
|
nodiscard |
Parses an origin field from a string.
| line | The string to parse. |
|
nodiscard |
Parses a new instance of this structure from a string.
| line | The string to parse. |
|
nodiscard |
Parses a reference clock from a string.
| line | The string to parse. |
|
nodiscard |
Parses an SDP session description from a string.
| sdp_text | The SDP text to parse. |
| tl::expected< SourceFilter, std::string > rav::sdp::parse_source_filter | ( | std::string_view | line | ) |
Parses a connection info field from a string.
| line | The string to parse. |
|
nodiscard |
Parses a time field from a string.
| line | The string to parse. |
|
nodiscard |
| const char * rav::sdp::to_string | ( | const AddrType & | type | ) |
| std::string rav::sdp::to_string | ( | const ConnectionInfoField & | field | ) |
Converts the connection info to a string.
| const char * rav::sdp::to_string | ( | const FilterMode & | filter_mode | ) |
|
nodiscard |
Converts a Format to an SDP compatible string.
| input_format | The input format. |
|
nodiscard |
|
nodiscard |
Converts the media clock source to a string.
|
nodiscard |
Converts the media description to a string.
| const char * rav::sdp::to_string | ( | const MediaDirection & | direction | ) |
| const char * rav::sdp::to_string | ( | const NetwType & | type | ) |
|
nodiscard |
Converts the origin field to a string.
|
nodiscard |
| ravenna_clock_domain | The ravenna clock domain. |
|
nodiscard |
Converts the reference clock to a string.
|
nodiscard |
Converts the session description to a string.
|
nodiscard |
Converts the source filter to a string.
|
nodiscard |
Converts the time field to an SDP compatible string.
|
nodiscard |
Converts the clock mode to a string.
| mode | The clock mode to convert. |
|
nodiscard |
| source | The sync source to convert. |
|
nodiscard |
| source | The clock source to convert. |
|
nodiscard |
| version | The PTP version to convert. |
|
nodiscard |
Validates the connection info.
|
nodiscard |
Validates the media clock source.
| rav::Exception | if the media clock source is invalid. |
|
nodiscard |
Validates the media description.
|
nodiscard |
Validates the members of this struct.
|
nodiscard |
Validates the values of this structure.
|
nodiscard |
Validates the state of this object.
|
nodiscard |
Validates the source filter.
|
nodiscard |
Validates the values of this structure.
|
constexpr |
Definition at line 39 of file sdp_constants.hpp.
|
constexpr |
Definition at line 45 of file sdp_constants.hpp.
|
constexpr |
Definition at line 38 of file sdp_constants.hpp.
|
constexpr |
Definition at line 35 of file sdp_constants.hpp.
|
constexpr |
Definition at line 41 of file sdp_constants.hpp.
|
constexpr |
Definition at line 42 of file sdp_constants.hpp.
|
constexpr |
Definition at line 43 of file sdp_constants.hpp.
|
constexpr |
Definition at line 30 of file sdp_constants.hpp.
|
constexpr |
Definition at line 40 of file sdp_constants.hpp.
|
constexpr |
Definition at line 29 of file sdp_constants.hpp.
|
constexpr |
Definition at line 34 of file sdp_constants.hpp.
|
constexpr |
Definition at line 31 of file sdp_constants.hpp.
|
constexpr |
Definition at line 33 of file sdp_constants.hpp.
|
constexpr |
Definition at line 32 of file sdp_constants.hpp.
|
constexpr |
Definition at line 37 of file sdp_constants.hpp.
|
constexpr |
Definition at line 36 of file sdp_constants.hpp.
|
constexpr |
Definition at line 44 of file sdp_constants.hpp.