UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
h264_sdp.cpp File Reference
#include "video_rxtx/h264_sdp.hpp"
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <exception>
#include <iostream>
#include "audio/audio.h"
#include "audio/types.h"
#include "debug.h"
#include "host.h"
#include "lib_common.h"
#include "messaging.h"
#include "module.h"
#include "rtp/rtp.h"
#include "transmit.h"
#include "tv.h"
#include "ug_runtime_error.hpp"
#include "utils/sdp.h"
#include "video_codec.h"
#include "video_rxtx.hpp"
Include dependency graph for h264_sdp.cpp:

Go to the source code of this file.

Macros

#define DEFAULT_SDP_COMPRESSION   "lavc:codec=MJPEG:safe"
 
#define MOD_NAME   "[vrxtx/sdp] "
 

Functions

static video_rxtx * create_video_rxtx_h264_sdp (std::map< std::string, param_u > const &params)
 
 REGISTER_MODULE (sdp, &h264_sdp_video_rxtx_info, LIBRARY_CLASS_VIDEO_RXTX, VIDEO_RXTX_ABI_VERSION)
 
static void sdp_change_address_callback (void *udata, const char *address)
 

Variables

static const struct video_rxtx_info h264_sdp_video_rxtx_info
 

Detailed Description

Macro Definition Documentation

◆ DEFAULT_SDP_COMPRESSION

#define DEFAULT_SDP_COMPRESSION   "lavc:codec=MJPEG:safe"

Definition at line 65 of file h264_sdp.cpp.

Referenced by h264_sdp_video_rxtx::send_frame().

◆ MOD_NAME

#define MOD_NAME   "[vrxtx/sdp] "

Definition at line 66 of file h264_sdp.cpp.

Function Documentation

◆ create_video_rxtx_h264_sdp()

static video_rxtx * create_video_rxtx_h264_sdp ( std::map< std::string, param_u > const & params)
static

Definition at line 195 of file h264_sdp.cpp.

◆ REGISTER_MODULE()

REGISTER_MODULE ( sdp ,
& h264_sdp_video_rxtx_info,
LIBRARY_CLASS_VIDEO_RXTX ,
VIDEO_RXTX_ABI_VERSION  )

◆ sdp_change_address_callback()

static void sdp_change_address_callback ( void * udata,
const char * address )
static

Definition at line 174 of file h264_sdp.cpp.

175{
176 const enum module_class path_sender[] = { MODULE_CLASS_AUDIO,
179 sdp_send_change_address_message((module *) udata, path_sender, address);
180}
void sdp_send_change_address_message(struct module *root, const enum module_class *path, const char *address)
Definition audio.cpp:238
module_class
Definition module.h:81
@ MODULE_CLASS_NONE
Definition module.h:82
@ MODULE_CLASS_AUDIO
Definition module.h:90
@ MODULE_CLASS_SENDER
Definition module.h:87

References MODULE_CLASS_AUDIO, MODULE_CLASS_NONE, MODULE_CLASS_SENDER, and sdp_send_change_address_message().

Referenced by h264_sdp_video_rxtx::set_audio_spec().

Here is the call graph for this function:

Variable Documentation

◆ h264_sdp_video_rxtx_info

const struct video_rxtx_info h264_sdp_video_rxtx_info
static
Initial value:
= {
"RTP standard (SDP version)",
}
static video_rxtx * create_video_rxtx_h264_sdp(std::map< std::string, param_u > const &params)
Definition h264_sdp.cpp:195

Definition at line 200 of file h264_sdp.cpp.

200 {
201 "RTP standard (SDP version)",
203};