libgpac
Documentation of the core library of GPAC
in_rtp.c File Reference
#include "in_rtp.h"
+ Include dependency graph for in_rtp.c:

Macros

#define OFFS(_n)   #_n, offsetof(GF_RTPIn, _n)
 

Functions

static void rtpin_reset (GF_RTPIn *ctx, Bool is_finalized)
 
static GF_FilterProbeScore rtpin_probe_url (const char *url, const char *mime)
 
void rtpin_satip_get_server_ip (const char *sURL, char *Server)
 
static GF_Err rtpin_configure_pid (GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
 
static void gf_rtp_switch_quality (GF_RTPIn *rtp, Bool switch_up)
 
static void rtpin_check_setup (GF_RTPInStream *stream)
 
static Bool rtpin_process_event (GF_Filter *filter, const GF_FilterEvent *evt)
 
static void rtpin_rtsp_flush (GF_RTPInRTSP *session, Bool reset_only)
 
static GF_Err rtpin_process (GF_Filter *filter)
 
void rtpin_do_authenticate (GF_RTPIn *ctx)
 
static GF_Err rtpin_initialize (GF_Filter *filter)
 
static void rtpin_finalize (GF_Filter *filter)
 
static const char * rtpin_probe_data (const u8 *data, u32 size, GF_FilterProbeScore *score)
 
const GF_FilterRegister * rtpin_register (GF_FilterSession *session)
 

Variables

static const GF_FilterCapability RTPInCaps []
 
static const GF_FilterArgs RTPInArgs []
 
GF_FilterRegister RTPInRegister
 

Macro Definition Documentation

◆ OFFS

#define OFFS (   _n)    #_n, offsetof(GF_RTPIn, _n)

Function Documentation

◆ rtpin_reset()

static void rtpin_reset ( GF_RTPIn ctx,
Bool  is_finalized 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rtpin_probe_url()

static GF_FilterProbeScore rtpin_probe_url ( const char *  url,
const char *  mime 
)
static

◆ rtpin_satip_get_server_ip()

void rtpin_satip_get_server_ip ( const char *  sURL,
char *  Server 
)
+ Here is the caller graph for this function:

◆ rtpin_configure_pid()

static GF_Err rtpin_configure_pid ( GF_Filter *  filter,
GF_FilterPid *  pid,
Bool  is_remove 
)
static
+ Here is the call graph for this function:

◆ gf_rtp_switch_quality()

static void gf_rtp_switch_quality ( GF_RTPIn rtp,
Bool  switch_up 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rtpin_check_setup()

static void rtpin_check_setup ( GF_RTPInStream *  stream)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rtpin_process_event()

static Bool rtpin_process_event ( GF_Filter *  filter,
const GF_FilterEvent *  evt 
)
static
+ Here is the call graph for this function:

◆ rtpin_rtsp_flush()

static void rtpin_rtsp_flush ( GF_RTPInRTSP *  session,
Bool  reset_only 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rtpin_process()

static GF_Err rtpin_process ( GF_Filter *  filter)
static
+ Here is the call graph for this function:

◆ rtpin_do_authenticate()

void rtpin_do_authenticate ( GF_RTPIn ctx)
+ Here is the caller graph for this function:

◆ rtpin_initialize()

static GF_Err rtpin_initialize ( GF_Filter *  filter)
static
+ Here is the call graph for this function:

◆ rtpin_finalize()

static void rtpin_finalize ( GF_Filter *  filter)
static
+ Here is the call graph for this function:

◆ rtpin_probe_data()

static const char* rtpin_probe_data ( const u8 data,
u32  size,
GF_FilterProbeScore score 
)
static

◆ rtpin_register()

const GF_FilterRegister* rtpin_register ( GF_FilterSession *  session)
+ Here is the call graph for this function:

Variable Documentation

◆ RTPInCaps

const GF_FilterCapability RTPInCaps[]
static
Initial value:
=
{
{0},
CAP_STRING(GF_CAPS_OUTPUT, GF_PROP_PID_MIME, "video/mpeg-2|video/mp2t|video/mpeg"),
}
@ GF_STREAM_TEXT
Definition: constants.h:82
@ GF_STREAM_OD
Definition: constants.h:58
@ GF_STREAM_AUDIO
Definition: constants.h:66
@ GF_STREAM_SCENE
Definition: constants.h:62
@ GF_STREAM_ENCRYPTED
Definition: constants.h:102
@ GF_STREAM_FILE
Definition: constants.h:104
@ GF_STREAM_METADATA
Definition: constants.h:100
@ GF_STREAM_VISUAL
Definition: constants.h:64
#define GF_CAPS_OUTPUT
Definition: filters.h:2232
#define CAP_UINT(_f, _a, _b)
Definition: filters.h:2172
#define GF_CAPS_INPUT_STATIC
Definition: filters.h:2224
#define CAP_STRING(_f, _a, _b)
Definition: filters.h:2194
@ GF_PROP_PID_STREAM_TYPE
Definition: filters.h:1112
@ GF_PROP_PID_FILE_EXT
Definition: filters.h:1190
@ GF_PROP_PID_MIME
Definition: filters.h:1189

◆ RTPInArgs

const GF_FilterArgs RTPInArgs[]
static

◆ RTPInRegister

GF_FilterRegister RTPInRegister
Initial value:
= {
.name = "rtpin",
GF_FS_SET_HELP("This filter handles SDP/RTSP/RTP input reading. It supports:\n"
"- SDP file reading\n"
"- RTP direct url through `rtp://` protocol scheme\n"
"- RTSP session processing through `rtsp://` and `satip://` protocol schemes\n"
" \n"
"The filter produces either PIDs with media frames, or file PIDs with multiplexed data (e.g. MPEG-2 TS)."
" \n"
"The filter will use:\n"
"- RTSP over HTTP tunnel if server port is 80 or 8080 or if protocol scheme is `rtsph://`.\n"
"- RTSP over TLS if server port is 322 or if protocol scheme is `rtsps://`.\n"
"- RTSP over HTTPS tunnel if server port is 443 and if protocol scheme is `rtsph://`.\n"
" \n"
"The filter will attempt reconnecting in TLS mode after two consecutive initial connection failures.\n"
)
.private_size = sizeof(GF_RTPIn),
.initialize = rtpin_initialize,
.finalize = rtpin_finalize,
.configure_pid = rtpin_configure_pid,
.process = rtpin_process,
.process_event = rtpin_process_event,
.probe_url = rtpin_probe_url,
.probe_data = rtpin_probe_data,
.hint_class_type = GF_FS_CLASS_NETWORK_IO
}
#define GF_FS_SET_HELP(_help)
Definition: filters.h:2372
#define SETCAPS(__struct)
Definition: filters.h:2364
@ GF_FS_CLASS_NETWORK_IO
Definition: filters.h:2449
attribute Array args
Definition: jsf.idl:24
static GF_Err rtpin_initialize(GF_Filter *filter)
Definition: in_rtp.c:777
static Bool rtpin_process_event(GF_Filter *filter, const GF_FilterEvent *evt)
Definition: in_rtp.c:283
static const GF_FilterArgs RTPInArgs[]
Definition: in_rtp.c:942
static GF_Err rtpin_configure_pid(GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
Definition: in_rtp.c:131
static GF_FilterProbeScore rtpin_probe_url(const char *url, const char *mime)
Definition: in_rtp.c:47
static const char * rtpin_probe_data(const u8 *data, u32 size, GF_FilterProbeScore *score)
Definition: in_rtp.c:905
static void rtpin_finalize(GF_Filter *filter)
Definition: in_rtp.c:884
static GF_Err rtpin_process(GF_Filter *filter)
Definition: in_rtp.c:447
static const GF_FilterCapability RTPInCaps[]
Definition: in_rtp.c:923
Definition: in_rtp.h:63