![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|


Go to the source code of this file.
Functions | |
| void | audio_tx_send (struct tx *tx_session, struct rtp *rtp_session, const audio_frame2 *buffer) |
| void | audio_tx_send_standard (struct tx *tx, struct rtp *rtp_session, const audio_frame2 *buffer) |
| void | format_audio_header (const class audio_frame2 *frame, int channel, int buffer_idx, uint32_t *audio_hdr) |
| void | format_video_header (struct video_frame *frame, int tile_idx, int buffer_idx, uint32_t *hdr) |
| int | tx_get_buffer_id (struct tx *tx_session) |
| struct tx * | tx_init (struct module *parent, unsigned mtu, enum tx_media_type media_type, const char *fec, const char *encryption, long long bitrate) |
| void | tx_send (struct tx *tx_session, struct video_frame *frame, struct rtp *rtp_session) |
| void | tx_send_h264 (struct tx *tx_session, struct video_frame *frame, struct rtp *rtp_session) |
| void | tx_send_jpeg (struct tx *tx_session, struct video_frame *frame, struct rtp *rtp_session) |
| void audio_tx_send | ( | struct tx * | tx_session, |
| struct rtp * | rtp_session, | ||
| const audio_frame2 * | buffer ) |
Definition at line 799 of file transmit.cpp.
References audio_tx_send_chan(), tx::buffer, fec_check_messages(), audio_frame2::get_channel_count(), get_local_mediatime(), get_local_mediatime_offset(), audio_frame2::get_timestamp(), tx::mult_count, and rtp_has_receiver().
Referenced by audio_sender_thread(), and state_audio_mixer::worker().

| void audio_tx_send_standard | ( | struct tx * | tx, |
| struct rtp * | rtp_session, | ||
| const audio_frame2 * | buffer ) |
audio_tx_send_standard - Send interleaved channels from the audio_frame2, as the mulaw and A-law standards (dynamic or std PT).
Definition at line 958 of file transmit.cpp.
References AC_ALAW, AC_MP3, AC_MULAW, AC_OPUS, audio_frame2::get_channel_count(), audio_frame2::get_codec(), audio_frame2::get_data(), audio_frame2::get_data_len(), audio_frame2::get_duration(), audio_frame2::get_sample_rate(), get_std_audio_local_mediatime(), get_time_in_ns(), kHz8, tx::mtu, offset, PT_DynRTP_Type97, PT_ITU_T_G711_PCMA, PT_ITU_T_G711_PCMU, PT_MPA, remux_channel(), rtp_send_ctrl(), rtp_send_data(), tx::tmp_packet, ts, and validate_std_audio().
Referenced by audio_sender_thread().

| void format_audio_header | ( | const class audio_frame2 * | frame, |
| int | channel, | ||
| int | buffer_idx, | ||
| uint32_t * | audio_hdr ) |
| void format_video_header | ( | struct video_frame * | frame, |
| int | tile_idx, | ||
| int | buffer_idx, | ||
| uint32_t * | hdr ) |
Definition at line 445 of file transmit.cpp.
References video_frame::color_spec, tile::data_len, format_interl_fps_hdr_row(), video_frame::fps, frame, get_fourcc(), tile::height, video_frame::interlacing, video_frame::tiles, and tile::width.
Referenced by rs::encode(), and tx_send_base().

| int tx_get_buffer_id | ( | struct tx * | tx_session | ) |
Returns buffer ID to be sent with next tx_send() call
Definition at line 1240 of file transmit.cpp.
References tx::buffer.
| struct tx * tx_init | ( | struct module * | parent, |
| unsigned | mtu, | ||
| enum tx_media_type | media_type, | ||
| const char * | fec, | ||
| const char * | encryption, | ||
| long long | bitrate ) |
| void tx_send | ( | struct tx * | tx_session, |
| struct video_frame * | frame, | ||
| struct rtp * | rtp_session ) |
Definition at line 407 of file transmit.cpp.
References tx::buffer, FALSE, fec_check_messages(), FEC_NONE, tx::fec_scheme, video_frame::flags, video_frame::fragment, frame, video_frame::frame_fragment_id, get_local_mediatime(), get_local_mediatime_offset(), video_frame::last_fragment, tx::last_frame_fragment_id, tx::last_ts, tile::offset, video_frame::tile_count, video_frame::timestamp, TIMESTAMP_VALID, TRUE, ts, tx_send_base(), and vf_get_tile().
Referenced by ultragrid_rtp_video_rxtx::send_frame_async().

| void tx_send_h264 | ( | struct tx * | tx, |
| struct video_frame * | frame, | ||
| struct rtp * | rtp_session ) |
H.264 standard transmission
Definition at line 1057 of file transmit.cpp.
References tile::data, tile::data_len, error_msg, FEC_NONE, tx::fec_scheme, video_frame::fragment, frame, get_std_video_local_mediatime(), tx::mtu, PT_DynRTP_Type96, rtp_send_data(), rtp_send_data_hdr(), rtpenc_get_next_nal(), start(), video_frame::tile_count, video_frame::tiles, and ts.
Referenced by h264_rtp_video_rxtx::configure_rtsp_server_video(), and h264_sdp_video_rxtx::send_frame().

| void tx_send_jpeg | ( | struct tx * | tx_session, |
| struct video_frame * | frame, | ||
| struct rtp * | rtp_session ) |
Definition at line 1168 of file transmit.cpp.
References jpeg_rtp_data::data, tile::data, tile::data_len, exit_uv(), FEC_NONE, tx::fec_scheme, video_frame::fragment, frame, get_std_video_local_mediatime(), jpeg_rtp_data::height, jpeg_get_rtp_hdr_data(), LOG_LEVEL_ERROR, log_msg(), tx::mtu, PT_JPEG, jpeg_rtp_data::q, jpeg_rtp_data::quantization_tables, jpeg_rtp_data::restart_interval, rtp_is_ipv6(), rtp_send_data_hdr(), video_frame::tile_count, video_frame::tiles, ts, jpeg_rtp_data::type, and jpeg_rtp_data::width.
Referenced by h264_rtp_video_rxtx::configure_rtsp_server_video(), and h264_sdp_video_rxtx::send_frame().
