Go to the source code of this file.
| typedef struct rtcp_sender_t rtcp_sender_t |
| typedef struct rtsp_stream_id_t rtsp_stream_id_t |
| typedef struct rtsp_stream_t rtsp_stream_t |
| void CloseRTCP | ( | rtcp_sender_t * | rtcp | ) |
References rtcp_sender_t::handle, rtcp_sender_t::length, net_Close, NTPtime64(), rtcp_sender_t::payload, SetQWBE, and SetWBE.
Referenced by rtp_del_sink().
| rtcp_sender_t* OpenRTCP | ( | vlc_object_t * | obj, | |
| int | rtp_fd, | |||
| int | proto, | |||
| bool | mux | |||
| ) |
References AF_UNSPEC, rtcp_sender_t::bytes, rtcp_sender_t::counter, dst, rtcp_sender_t::handle, rtcp_sender_t::length, net_Close, net_GetPeerAddress(), net_GetSockAddress(), net_OpenDgram, NI_MAXNUMERICHOST, NTPtime64(), rtcp_sender_t::packets, rtcp_sender_t::payload, SetQWBE, SetWBE, SOL_IP, src, and vlc_dup().
Referenced by rtp_add_sink().
| int rtp_add_sink | ( | sout_stream_id_t * | id, | |
| int | fd, | |||
| bool | rtcp_mux, | |||
| uint16_t * | seq | |||
| ) |
References INSERT_ELEM, sout_stream_id_t::lock_sink, msg_Err, OpenRTCP(), sout_stream_id_t::p_stream, rtp_sink_t::rtcp, sout_stream_id_t::sinkc, sout_stream_id_t::sinkv, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_OBJECT, and VLC_SUCCESS.
Referenced by Add(), rtp_listen_thread(), and RtspHandler().
| uint32_t rtp_compute_ts | ( | const sout_stream_id_t * | id, | |
| int64_t | i_pts | |||
| ) |
References CLOCK_FREQ, and sout_stream_id_t::i_clock_rate.
Referenced by Add(), rtp_packetize_common(), and RtspHandler().
| void rtp_del_sink | ( | sout_stream_id_t * | id, | |
| int | fd | |||
| ) |
References CloseRTCP(), sout_stream_id_t::lock_sink, net_Close, REMOVE_ELEM, rtp_sink_t::rtcp, rtp_sink_t::rtp_fd, sout_stream_id_t::sinkc, sout_stream_id_t::sinkv, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by Del(), RtspClientDel(), RtspDelId(), RtspHandler(), and ThreadSend().
| uint16_t rtp_get_seq | ( | sout_stream_id_t * | id | ) |
References sout_stream_id_t::lock_sink, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by RtspHandler().
| int64_t rtp_get_ts | ( | const sout_stream_t * | p_stream | ) |
References sout_stream_sys_t::i_npt_zero, sout_stream_sys_t::i_pts_zero, sout_stream_sys_t::lock_ts, mdate(), sout_stream_t::p_sys, vlc_mutex_lock(), vlc_mutex_unlock(), and VLC_TS_INVALID.
Referenced by RtspHandler().
| size_t rtp_mtu | ( | const sout_stream_id_t * | id | ) |
Referenced by rtp_packetize_ac3(), rtp_packetize_amr(), rtp_packetize_g726(), rtp_packetize_h263(), rtp_packetize_h264_nal(), rtp_packetize_mp4a(), rtp_packetize_mp4a_latm(), rtp_packetize_mpa(), rtp_packetize_mpv(), rtp_packetize_split(), rtp_packetize_spx(), rtp_packetize_swab(), rtp_packetize_t140(), and rtp_set_ptime().
| int rtp_packetize_ac3 | ( | sout_stream_id_t * | , | |
| block_t * | ||||
| ) |
References __MIN, block_Alloc(), i, block_t::i_buffer, block_t::i_dts, block_t::i_length, block_t::i_pts, block_t::p_buffer, rtp_mtu(), rtp_packetize_common(), rtp_packetize_send(), and VLC_SUCCESS.
Referenced by Add().
| int rtp_packetize_amr | ( | sout_stream_id_t * | , | |
| block_t * | ||||
| ) |
References __MIN, block_Alloc(), i, block_t::i_buffer, block_t::i_dts, block_t::i_length, block_t::i_pts, block_t::p_buffer, rtp_mtu(), rtp_packetize_common(), rtp_packetize_send(), VLC_SUCCESS, and VLC_TS_INVALID.
Referenced by Add().
| void rtp_packetize_common | ( | sout_stream_id_t * | id, | |
| block_t * | out, | |||
| int | b_marker, | |||
| int64_t | i_pts | |||
| ) |
References sout_stream_id_t::b_ts_init, block_t::i_buffer, sout_stream_sys_t::i_npt_zero, sout_stream_id_t::i_payload_type, sout_stream_sys_t::i_pts_offset, sout_stream_sys_t::i_pts_zero, sout_stream_id_t::i_sequence, sout_stream_sys_t::lock_ts, block_t::p_buffer, rtp_compute_ts(), sout_stream_id_t::ssrc, vlc_mutex_lock(), vlc_mutex_unlock(), and VLC_TS_INVALID.
Referenced by AccessOutGrabberWriteBuffer(), rtp_packetize_ac3(), rtp_packetize_amr(), rtp_packetize_g726(), rtp_packetize_h263(), rtp_packetize_h264_nal(), rtp_packetize_mp4a(), rtp_packetize_mp4a_latm(), rtp_packetize_mpa(), rtp_packetize_mpv(), rtp_packetize_split(), rtp_packetize_spx(), rtp_packetize_swab(), and rtp_packetize_t140().
| int rtp_packetize_g726_16 | ( | sout_stream_id_t * | , | |
| block_t * | ||||
| ) |
| int rtp_packetize_g726_24 | ( | sout_stream_id_t * | , | |
| block_t * | ||||
| ) |
| int rtp_packetize_g726_32 | ( | sout_stream_id_t * | , | |
| block_t * | ||||
| ) |
| int rtp_packetize_g726_40 | ( | sout_stream_id_t * | , | |
| block_t * | ||||
| ) |
| int rtp_packetize_h263 | ( | sout_stream_id_t * | , | |
| block_t * | ||||
| ) |
References __MIN, block_Alloc(), i, block_t::i_buffer, block_t::i_dts, block_t::i_length, block_t::i_pts, block_t::p_buffer, RTP_H263_HEADER_SIZE, RTP_H263_PAYLOAD_START, rtp_mtu(), rtp_packetize_common(), rtp_packetize_send(), SetWBE, VLC_EGENERIC, VLC_SUCCESS, and VLC_TS_INVALID.
Referenced by Add().
| int rtp_packetize_h264 | ( | sout_stream_id_t * | , | |
| block_t * | ||||
| ) |
References block_t::i_buffer, block_t::i_dts, block_t::i_length, block_t::i_pts, block_t::p_buffer, rtp_packetize_h264_nal(), VLC_SUCCESS, and VLC_TS_INVALID.
Referenced by Add().
| int rtp_packetize_mp4a | ( | sout_stream_id_t * | , | |
| block_t * | ||||
| ) |
References __MIN, block_Alloc(), i, block_t::i_buffer, block_t::i_dts, block_t::i_length, block_t::i_pts, block_t::p_buffer, rtp_mtu(), rtp_packetize_common(), rtp_packetize_send(), SetWBE, VLC_SUCCESS, and VLC_TS_INVALID.
Referenced by Add().
| int rtp_packetize_mp4a_latm | ( | sout_stream_id_t * | , | |
| block_t * | ||||
| ) |
References __MIN, block_Alloc(), i, block_t::i_buffer, block_t::i_dts, block_t::i_length, block_t::i_pts, block_t::p_buffer, rtp_mtu(), rtp_packetize_common(), rtp_packetize_send(), VLC_SUCCESS, and VLC_TS_INVALID.
Referenced by Add().
| int rtp_packetize_mpa | ( | sout_stream_id_t * | , | |
| block_t * | ||||
| ) |
References __MIN, block_Alloc(), i, block_t::i_buffer, block_t::i_dts, block_t::i_length, block_t::i_pts, block_t::p_buffer, rtp_mtu(), rtp_packetize_common(), rtp_packetize_send(), SetWBE, and VLC_SUCCESS.
Referenced by Add().
| int rtp_packetize_mpv | ( | sout_stream_id_t * | , | |
| block_t * | ||||
| ) |
References __MIN, block_Alloc(), i, block_t::i_buffer, block_t::i_dts, block_t::i_length, block_t::i_pts, block_t::p_buffer, rtp_mtu(), rtp_packetize_common(), rtp_packetize_send(), SetDWBE, VLC_SUCCESS, and VLC_TS_INVALID.
Referenced by Add().
| void rtp_packetize_send | ( | sout_stream_id_t * | id, | |
| block_t * | out | |||
| ) |
References block_FifoPut(), and sout_stream_id_t::p_fifo.
Referenced by AccessOutGrabberWriteBuffer(), rtp_packetize_ac3(), rtp_packetize_amr(), rtp_packetize_g726(), rtp_packetize_h263(), rtp_packetize_h264_nal(), rtp_packetize_mp4a(), rtp_packetize_mp4a_latm(), rtp_packetize_mpa(), rtp_packetize_mpv(), rtp_packetize_split(), rtp_packetize_spx(), rtp_packetize_swab(), and rtp_packetize_t140().
| int rtp_packetize_split | ( | sout_stream_id_t * | , | |
| block_t * | ||||
| ) |
References __MIN, block_Alloc(), i, block_t::i_buffer, block_t::i_dts, block_t::i_length, block_t::i_pts, block_t::p_buffer, rtp_mtu(), rtp_packetize_common(), rtp_packetize_send(), VLC_SUCCESS, and VLC_TS_INVALID.
Referenced by Add().
| int rtp_packetize_spx | ( | sout_stream_id_t * | , | |
| block_t * | ||||
| ) |
References block_Alloc(), block_t::i_buffer, block_t::i_dts, block_t::i_length, block_t::i_pts, block_t::p_buffer, rtp_mtu(), rtp_packetize_common(), rtp_packetize_send(), VLC_SUCCESS, and VLC_TS_INVALID.
Referenced by Add().
| int rtp_packetize_swab | ( | sout_stream_id_t * | , | |
| block_t * | ||||
| ) |
References __MIN, block_Alloc(), i, block_t::i_buffer, block_t::i_dts, block_t::i_length, block_t::i_pts, block_t::p_buffer, rtp_mtu(), rtp_packetize_common(), rtp_packetize_send(), swab(), VLC_SUCCESS, and VLC_TS_INVALID.
Referenced by Add().
| int rtp_packetize_t140 | ( | sout_stream_id_t * | , | |
| block_t * | ||||
| ) |
References block_Alloc(), block_t::i_buffer, block_t::i_dts, block_t::i_length, block_t::i_pts, block_t::p_buffer, rtp_mtu(), rtp_packetize_common(), rtp_packetize_send(), and VLC_SUCCESS.
Referenced by Add().
| rtsp_stream_id_t* RtspAddId | ( | rtsp_stream_t * | rtsp, | |
| sout_stream_id_t * | sid, | |||
| uint32_t | ssrc, | |||
| const char * | dst, | |||
| int | ttl, | |||
| unsigned | loport, | |||
| unsigned | hiport | |||
| ) |
References rtsp_stream_id_t::dst, rtsp_stream_t::host, HTTPD_MSG_DESCRIBE, HTTPD_MSG_GETPARAMETER, HTTPD_MSG_PAUSE, HTTPD_MSG_PLAY, HTTPD_MSG_SETUP, HTTPD_MSG_TEARDOWN, httpd_UrlCatch(), httpd_UrlNewUnique(), msg_Dbg, rtsp_stream_t::owner, rtsp_stream_t::psz_path, RtspAppendTrackPath(), RtspCallbackId(), and rtsp_stream_t::track_id.
Referenced by Add(), and SDPHandleUrl().
| char* RtspAppendTrackPath | ( | rtsp_stream_id_t * | id, | |
| const char * | base | |||
| ) |
References asprintf(), and rtsp_stream_id_t::track_id.
Referenced by RtspAddId(), RtspHandler(), and SDPGenerate().
| void RtspDelId | ( | rtsp_stream_t * | rtsp, | |
| rtsp_stream_id_t * | ||||
| ) |
References rtsp_strack_t::fd, httpd_UrlDelete(), i, rtsp_strack_t::id, rtsp_stream_t::lock, REMOVE_ELEM, rtp_del_sink(), rtsp_stream_t::sessionc, rtsp_stream_t::sessionv, rtsp_stream_id_t::sout_id, rtsp_session_t::trackc, rtsp_session_t::trackv, rtsp_stream_id_t::url, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by Del().
| rtsp_stream_t* RtspSetup | ( | sout_stream_t * | p_stream, | |
| const vlc_url_t * | url | |||
| ) |
References rtsp_stream_t::host, httpd_HostNew(), HTTPD_MSG_DESCRIBE, HTTPD_MSG_GETPARAMETER, HTTPD_MSG_PAUSE, HTTPD_MSG_PLAY, HTTPD_MSG_SETUP, HTTPD_MSG_TEARDOWN, httpd_UrlCatch(), httpd_UrlNewUnique(), vlc_url_t::i_port, rtsp_stream_t::lock, msg_Dbg, rtsp_stream_t::owner, rtsp_stream_t::port, vlc_url_t::psz_host, vlc_url_t::psz_path, rtsp_stream_t::psz_path, RtspCallback(), RtspUnsetup(), rtsp_stream_t::sessionc, rtsp_stream_t::sessionv, strdup(), rtsp_stream_t::track_id, rtsp_stream_t::url, vlc_mutex_init(), and VLC_OBJECT.
Referenced by SDPHandleUrl().
| void RtspUnsetup | ( | rtsp_stream_t * | rtsp | ) |
| char* SDPGenerate | ( | sout_stream_t * | p_stream, | |
| const char * | rtsp_url | |||
| ) |
References AUDIO_ES, sout_stream_sys_t::es, sout_stream_id_t::fd, i, sout_stream_id_t::i_bitrate, sout_stream_id_t::i_cat, sout_stream_id_t::i_channels, sout_stream_id_t::i_clock_rate, sout_stream_sys_t::i_es, sout_stream_id_t::i_payload_type, sout_stream_id_t::i_port, IPPROTO_DCCP, IPPROTO_UDPLITE, sout_stream_id_t::listen, sout_stream_sys_t::lock_es, sout_stream_t::p_sys, sout_stream_sys_t::proto, sout_stream_sys_t::psz_destination, sout_stream_id_t::psz_enc, sout_stream_id_t::psz_fmtp, sout_stream_sys_t::rtcp_mux, rtp_sink_t::rtp_fd, sout_stream_id_t::rtsp_id, RtspAppendTrackPath(), sdp_AddAttribute(), sdp_AddMedia(), sout_stream_id_t::sinkv, SPU_ES, unlikely, VIDEO_ES, vlc_mutex_lock(), vlc_mutex_unlock(), and vlc_sdp_Start().
| void SendRTCP | ( | rtcp_sender_t *restrict | rtcp, | |
| const block_t * | rtp | |||
| ) |
References GetDWBE, block_t::i_buffer, NTPtime64(), block_t::p_buffer, SetDWBE, and SetQWBE.
Referenced by ThreadSend().
1.5.6