UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
h264_sdp.hpp
Go to the documentation of this file.
1
8/*
9 * Copyright (c) 2013-2014 Fundació i2CAT, Internet I Innovació Digital a Catalunya
10 * Copyright (c) 2013-2024 CESNET
11 * All rights reserved.
12 *
13 * Redistribution and use in source and binary forms, with or without
14 * modification, is permitted provided that the following conditions
15 * are met:
16 *
17 * 1. Redistributions of source code must retain the above copyright
18 * notice, this list of conditions and the following disclaimer.
19 *
20 * 2. Redistributions in binary form must reproduce the above copyright
21 * notice, this list of conditions and the following disclaimer in the
22 * documentation and/or other materials provided with the distribution.
23 *
24 * 3. Neither the name of CESNET nor the names of its contributors may be
25 * used to endorse or promote products derived from this software without
26 * specific prior written permission.
27 *
28 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS
29 * "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
30 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
31 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
32 * EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
33 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
34 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
35 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
37 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
38 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
39 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40 */
41
42#ifndef VIDEO_RXTX_H264_SDP_H_
43#define VIDEO_RXTX_H264_SDP_H_
44
45#include <map> // for map
46#include <memory> // for shared_ptr
47#include <string>
48
49#include "types.h" // for VIDEO_CODEC_NONE, codec_t, video_frame...
50#include "video_rxtx/rtp.hpp"
51union param_u;
52
54public:
55 h264_sdp_video_rxtx(std::map<std::string, param_u> const &);
56 ~h264_sdp_video_rxtx() override = default;
57private:
58 static void change_address_callback(void *udata, const char *address);
59 virtual void send_frame(std::shared_ptr<video_frame>) noexcept override;
60 virtual void *(*get_receiver_thread() noexcept)(void *arg) override {
61 return nullptr;
62 }
63 void set_audio_spec(const struct audio_desc *desc, int audio_rx_port,
64 int audio_tx_port, bool ipv6) override;
69
70 std::string m_saved_addr;
71};
72
73#endif // VIDEO_RXTX_H264_SDP_H_
74
struct video_desc desc
virtual void send_frame(std::shared_ptr< video_frame >) noexcept override
Definition h264_sdp.cpp:119
virtual void *(*)(void *arg) get_receiver_thread() noexcept
Definition h264_sdp.hpp:60
void sdp_add_video(codec_t codec)
Definition h264_sdp.cpp:99
h264_sdp_video_rxtx(std::map< std::string, param_u > const &)
Definition h264_sdp.cpp:73
codec_t m_sdp_configured_codec
Definition h264_sdp.hpp:66
std::string m_saved_addr
for dynamic address reconfiguration,
Definition h264_sdp.hpp:70
~h264_sdp_video_rxtx() override=default
void set_audio_spec(const struct audio_desc *desc, int audio_rx_port, int audio_tx_port, bool ipv6) override
Definition h264_sdp.cpp:183
static void change_address_callback(void *udata, const char *address)
Definition h264_sdp.cpp:85
codec_t
Definition types.h:65
@ VIDEO_CODEC_NONE
dummy color spec
Definition types.h:66