/third_party/gstreamer/gstplugins_base/gst-libs/gst/rtp/ |
D | gstrtpbuffer.c | 317 gst_rtp_buffer_map (GstBuffer * buffer, GstMapFlags flags, GstRTPBuffer * rtp) in gst_rtp_buffer_map() argument 330 g_return_val_if_fail (rtp != NULL, FALSE); in gst_rtp_buffer_map() 331 g_return_val_if_fail (rtp->buffer == NULL, FALSE); in gst_rtp_buffer_map() 338 if (!gst_buffer_map_range (buffer, 0, 1, &rtp->map[0], flags)) in gst_rtp_buffer_map() 341 data = rtp->data[0] = rtp->map[0].data; in gst_rtp_buffer_map() 342 size = rtp->map[0].size; in gst_rtp_buffer_map() 365 rtp->size[0] = header_len; in gst_rtp_buffer_map() 379 if (!gst_buffer_map_range (buffer, idx, length, &rtp->map[1], flags)) in gst_rtp_buffer_map() 382 extdata = rtp->data[1] = rtp->map[1].data + skip; in gst_rtp_buffer_map() 392 if (G_UNLIKELY (rtp->map[1].size < extlen)) in gst_rtp_buffer_map() [all …]
|
D | gstrtpbuffer.h | 93 … gst_rtp_buffer_map (GstBuffer *buffer, GstMapFlags flags, GstRTPBuffer *rtp); 96 void gst_rtp_buffer_unmap (GstRTPBuffer *rtp); 99 void gst_rtp_buffer_set_packet_len (GstRTPBuffer *rtp, guint len); 102 guint gst_rtp_buffer_get_packet_len (GstRTPBuffer *rtp); 105 guint gst_rtp_buffer_get_header_len (GstRTPBuffer *rtp); 108 guint8 gst_rtp_buffer_get_version (GstRTPBuffer *rtp); 111 void gst_rtp_buffer_set_version (GstRTPBuffer *rtp, guint8 version); 114 gboolean gst_rtp_buffer_get_padding (GstRTPBuffer *rtp); 117 void gst_rtp_buffer_set_padding (GstRTPBuffer *rtp, gboolean padding); 120 void gst_rtp_buffer_pad_to (GstRTPBuffer *rtp, guint len); [all …]
|
D | meson.build | 22 'rtp-prelude.h', 23 'rtp.h', 25 install_headers(rtp_headers, subdir : 'gstreamer-1.0/gst/rtp/') 30 header_prefix : '#include <gst/rtp/rtp-prelude.h>', 33 install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst/rtp')) 50 pkg_name = 'gstreamer-rtp-1.0' 61 gst_gir_extra_args = gir_init_section + [ '--c-include=gst/rtp/rtp.h' ]
|
/third_party/gstreamer/gstplugins_bad/tests/check/elements/ |
D | ristrtpext.c | 66 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in alloc_ts_buffer() local 69 gst_rtp_buffer_map (buf, GST_MAP_READWRITE, &rtp); in alloc_ts_buffer() 70 gst_rtp_buffer_set_version (&rtp, 2); in alloc_ts_buffer() 71 gst_rtp_buffer_set_ssrc (&rtp, 12); in alloc_ts_buffer() 72 gst_rtp_buffer_set_seq (&rtp, 44); in alloc_ts_buffer() 73 gst_rtp_buffer_set_timestamp (&rtp, 55); in alloc_ts_buffer() 74 gst_rtp_buffer_set_payload_type (&rtp, 33); in alloc_ts_buffer() 75 gst_rtp_buffer_unmap (&rtp); in alloc_ts_buffer() 81 validate_ts_buffer_full (GstRTPBuffer * rtp, guint num_ts_packets, guint16 seq, in validate_ts_buffer_full() argument 84 fail_unless_equals_int (gst_rtp_buffer_get_payload_len (rtp), in validate_ts_buffer_full() [all …]
|
/third_party/gstreamer/gstplugins_good/tests/check/elements/ |
D | rtpred.c | 86 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in _new_rtp_buffer() local 88 fail_unless (gst_rtp_buffer_map (buf, GST_MAP_READ, &rtp)); in _new_rtp_buffer() 89 gst_rtp_buffer_set_marker (&rtp, marker); in _new_rtp_buffer() 90 gst_rtp_buffer_set_payload_type (&rtp, pt); in _new_rtp_buffer() 91 gst_rtp_buffer_set_seq (&rtp, seqnum); in _new_rtp_buffer() 92 gst_rtp_buffer_set_timestamp (&rtp, timestamp); in _new_rtp_buffer() 93 gst_rtp_buffer_set_ssrc (&rtp, ssrc); in _new_rtp_buffer() 94 gst_rtp_buffer_unmap (&rtp); in _new_rtp_buffer() 140 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in GST_START_TEST() local 156 fail_unless (gst_rtp_buffer_map (bufinp, GST_MAP_WRITE, &rtp)); in GST_START_TEST() [all …]
|
D | rtph265.c | 341 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in GST_START_TEST() local 349 fail_unless (gst_rtp_buffer_map (buffer, GST_MAP_WRITE, &rtp)); in GST_START_TEST() 350 gst_rtp_buffer_set_marker (&rtp, FALSE); in GST_START_TEST() 351 gst_rtp_buffer_unmap (&rtp); in GST_START_TEST() 370 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in GST_START_TEST() local 379 fail_unless (gst_rtp_buffer_map (buffer, GST_MAP_READ, &rtp)); in GST_START_TEST() 380 fail_unless (gst_rtp_buffer_get_marker (&rtp)); in GST_START_TEST() 381 seq = gst_rtp_buffer_get_seq (&rtp); in GST_START_TEST() 382 gst_rtp_buffer_unmap (&rtp); in GST_START_TEST() 389 fail_unless (gst_rtp_buffer_map (buffer, GST_MAP_WRITE, &rtp)); in GST_START_TEST() [all …]
|
D | rtph264.c | 400 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in GST_START_TEST() local 408 fail_unless (gst_rtp_buffer_map (buffer, GST_MAP_WRITE, &rtp)); in GST_START_TEST() 409 gst_rtp_buffer_set_marker (&rtp, FALSE); in GST_START_TEST() 410 gst_rtp_buffer_unmap (&rtp); in GST_START_TEST() 429 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in GST_START_TEST() local 438 fail_unless (gst_rtp_buffer_map (buffer, GST_MAP_READ, &rtp)); in GST_START_TEST() 439 fail_unless (gst_rtp_buffer_get_marker (&rtp)); in GST_START_TEST() 440 seq = gst_rtp_buffer_get_seq (&rtp); in GST_START_TEST() 441 gst_rtp_buffer_unmap (&rtp); in GST_START_TEST() 448 fail_unless (gst_rtp_buffer_map (buffer, GST_MAP_WRITE, &rtp)); in GST_START_TEST() [all …]
|
D | rtph263.c | 53 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in create_rtp_buffer() local 57 gst_rtp_buffer_map (buf, GST_MAP_WRITE, &rtp); in create_rtp_buffer() 58 gst_rtp_buffer_set_seq (&rtp, seqnum); in create_rtp_buffer() 59 gst_rtp_buffer_unmap (&rtp); in create_rtp_buffer() 158 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in GST_START_TEST() local 175 gst_rtp_buffer_map (header_buf, GST_MAP_WRITE, &rtp); in GST_START_TEST() 176 gst_rtp_buffer_set_marker (&rtp, TRUE); in GST_START_TEST() 177 memcpy (gst_rtp_buffer_get_payload (&rtp), header, sizeof (header)); in GST_START_TEST() 178 gst_rtp_buffer_unmap (&rtp); in GST_START_TEST() 203 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in GST_START_TEST() local [all …]
|
D | rtpst2022-1-fecdec.c | 31 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in make_fec_sample() local 37 fail_unless (gst_rtp_buffer_map (ret, GST_MAP_WRITE, &rtp)); in make_fec_sample() 39 data = gst_rtp_buffer_get_payload (&rtp); in make_fec_sample() 64 gst_rtp_buffer_set_payload_type (&rtp, 96); in make_fec_sample() 65 gst_rtp_buffer_set_seq (&rtp, seq); in make_fec_sample() 66 gst_rtp_buffer_set_timestamp (&rtp, ts); in make_fec_sample() 67 gst_rtp_buffer_unmap (&rtp); in make_fec_sample() 76 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in make_media_sample() local 81 gst_rtp_buffer_map (ret, GST_MAP_WRITE, &rtp); in make_media_sample() 82 gst_rtp_buffer_set_payload_type (&rtp, 33); in make_media_sample() [all …]
|
D | rtpjpeg.c | 232 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in GST_START_TEST() local 251 fail_unless (gst_rtp_buffer_map (buffer, GST_MAP_READ, &rtp)); in GST_START_TEST() 252 fail_unless (payload = gst_rtp_buffer_get_payload (&rtp)); in GST_START_TEST() 260 fail_unless (gst_rtp_buffer_get_marker (&rtp)); in GST_START_TEST() 261 gst_rtp_buffer_unmap (&rtp); in GST_START_TEST() 278 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in GST_START_TEST() local 319 fail_unless (gst_rtp_buffer_map (buffer, GST_MAP_READ, &rtp)); in GST_START_TEST() 320 fail_unless (payload = gst_rtp_buffer_get_payload (&rtp)); in GST_START_TEST() 328 fail_unless (gst_rtp_buffer_get_marker (&rtp)); in GST_START_TEST() 329 gst_rtp_buffer_unmap (&rtp); in GST_START_TEST()
|
D | rtpst2022-1-fecenc.c | 74 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in make_media_sample() local 79 gst_rtp_buffer_map (ret, GST_MAP_WRITE, &rtp); in make_media_sample() 80 gst_rtp_buffer_set_payload_type (&rtp, 33); in make_media_sample() 81 gst_rtp_buffer_set_seq (&rtp, seq); in make_media_sample() 82 gst_rtp_buffer_set_timestamp (&rtp, ts); in make_media_sample() 83 data = gst_rtp_buffer_get_payload (&rtp); in make_media_sample() 85 gst_rtp_buffer_unmap (&rtp); in make_media_sample() 95 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in pull_and_check() local 101 fail_unless (gst_rtp_buffer_map (buffer, GST_MAP_READ, &rtp)); in pull_and_check() 103 parse_header (&fec, gst_rtp_buffer_get_payload (&rtp), in pull_and_check() [all …]
|
/third_party/gstreamer/gstplugins_base/tests/check/libs/ |
D | rtp.c | 42 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in GST_START_TEST() local 52 gst_rtp_buffer_map (buf, GST_MAP_READWRITE, &rtp); in GST_START_TEST() 55 fail_unless_equals_int (gst_rtp_buffer_get_version (&rtp), 2); in GST_START_TEST() 56 fail_unless (gst_rtp_buffer_get_padding (&rtp) == TRUE); in GST_START_TEST() 57 fail_unless (gst_rtp_buffer_get_extension (&rtp) == FALSE); in GST_START_TEST() 58 fail_unless_equals_int (gst_rtp_buffer_get_csrc_count (&rtp), 0); in GST_START_TEST() 59 fail_unless (gst_rtp_buffer_get_marker (&rtp) == FALSE); in GST_START_TEST() 60 fail_unless (gst_rtp_buffer_get_payload_type (&rtp) == 0); in GST_START_TEST() 64 gst_rtp_buffer_set_version (&rtp, 3); in GST_START_TEST() 65 fail_unless_equals_int (gst_rtp_buffer_get_version (&rtp), 3); in GST_START_TEST() [all …]
|
/third_party/gstreamer/gstplugins_good/gst/rtp/ |
D | rtpulpfeccommon.c | 147 rtp_ulpfec_buffer_get_fechdr (GstRTPBuffer * rtp) in rtp_ulpfec_buffer_get_fechdr() argument 149 return (RtpUlpFecHeader *) gst_rtp_buffer_get_payload (rtp); in rtp_ulpfec_buffer_get_fechdr() 153 rtp_ulpfec_buffer_get_mask (GstRTPBuffer * rtp) in rtp_ulpfec_buffer_get_mask() argument 155 return fec_hdr_get_mask (rtp_ulpfec_buffer_get_fechdr (rtp)); in rtp_ulpfec_buffer_get_mask() 159 rtp_ulpfec_buffer_get_seq_base (GstRTPBuffer * rtp) in rtp_ulpfec_buffer_get_seq_base() argument 161 return g_ntohs (rtp_ulpfec_buffer_get_fechdr (rtp)->seq); in rtp_ulpfec_buffer_get_seq_base() 191 rtp_ulpfec_buffer_is_valid (GstRTPBuffer * rtp) in rtp_ulpfec_buffer_is_valid() argument 193 guint payload_len = gst_rtp_buffer_get_payload_len (rtp); in rtp_ulpfec_buffer_is_valid() 201 fec_hdr = rtp_ulpfec_buffer_get_fechdr (rtp); in rtp_ulpfec_buffer_is_valid() 230 rtp_buffer_to_ulpfec_bitstring (GstRTPBuffer * rtp, GArray * dst_arr, in rtp_buffer_to_ulpfec_bitstring() argument [all …]
|
D | gstrtpulpfecdec.c | 111 gst_rtp_buffer_get_seq (&RTP_FEC_MAP_INFO_NTH (userdata, a)->rtp); in _compare_fec_map_info() 113 gst_rtp_buffer_get_seq (&RTP_FEC_MAP_INFO_NTH (userdata, b)->rtp); in _compare_fec_map_info() 139 if (fec_pt == gst_rtp_buffer_get_payload_type (&info->rtp)) { in gst_rtp_ulpfec_dec_start() 140 GST_DEBUG_RTP_PACKET (self, "rtp header (fec)", &info->rtp); in gst_rtp_ulpfec_dec_start() 143 if (rtp_ulpfec_buffer_is_valid (&info->rtp)) { in gst_rtp_ulpfec_dec_start() 144 GST_DEBUG_FEC_PACKET (self, &info->rtp); in gst_rtp_ulpfec_dec_start() 148 GST_LOG_RTP_PACKET (self, "rtp header (incoming)", &info->rtp); in gst_rtp_ulpfec_dec_start() 150 if (lost_seq == gst_rtp_buffer_get_seq (&info->rtp)) { in gst_rtp_ulpfec_dec_start() 188 rtp_ulpfec_packet_mask_from_seqnum (gst_rtp_buffer_get_seq (&info->rtp), in gst_rtp_ulpfec_dec_get_media_buffers_mask() 204 if (gst_rtp_buffer_get_payload_type (&info->rtp) == recovered_pt) in gst_rtp_ulpfec_dec_is_recovered_pt_valid() [all …]
|
D | gstrtpredenc.c | 96 rtp_hist_item_init (RTPHistItem * item, GstRTPBuffer * rtp, in rtp_hist_item_init() argument 99 item->pt = gst_rtp_buffer_get_payload_type (rtp); in rtp_hist_item_init() 100 item->timestamp = gst_rtp_buffer_get_timestamp (rtp); in rtp_hist_item_init() 105 rtp_hist_item_new (GstRTPBuffer * rtp, GstBuffer * rtp_payload) in rtp_hist_item_new() argument 108 rtp_hist_item_init (item, rtp, rtp_payload); in rtp_hist_item_new() 113 rtp_hist_item_replace (RTPHistItem * item, GstRTPBuffer * rtp, in rtp_hist_item_replace() argument 117 rtp_hist_item_init (item, rtp, rtp_payload); in rtp_hist_item_replace() 220 GstRTPBuffer * rtp, RTPHistItem * redundant_block, GstBuffer * main_block) in _create_red_packet() argument 223 _alloc_red_packet_and_fill_headers (self, redundant_block, rtp); in _create_red_packet() 281 GstRTPBuffer * rtp, GstBuffer * rtp_payload, guint max_history_length) in _red_history_prepend() argument [all …]
|
D | gstrtpulpfecenc.c | 161 GST_LOG_RTP_PACKET (ctx->parent, "rtp header (incoming)", &info->rtp); in gst_rtp_ulpfec_enc_stream_ctx_start() 200 guint16 seq = gst_rtp_buffer_get_seq (&info->rtp); in gst_rtp_ulpfec_enc_stream_ctx_get_protection_parameters() 246 rtp_ulpfec_packet_mask_from_seqnum (gst_rtp_buffer_get_seq (&info->rtp), in gst_rtp_ulpfec_enc_stream_ctx_protect() 252 rtp_buffer_to_ulpfec_bitstring (&info->rtp, ctx->scratch_buf, FALSE, in gst_rtp_ulpfec_enc_stream_ctx_protect() 326 ctx, GstRTPBuffer * rtp, guint buf_max_size) in gst_rtp_ulpfec_enc_stream_ctx_prepend_to_fec_buffer() argument 335 gst_buffer_replace ((GstBuffer **) & new_head->data, rtp->buffer); in gst_rtp_ulpfec_enc_stream_ctx_prepend_to_fec_buffer() 374 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in gst_rtp_ulpfec_enc_stream_ctx_push_fec_packets() local 377 if (!gst_rtp_buffer_map (fec, GST_MAP_READWRITE, &rtp)) in gst_rtp_ulpfec_enc_stream_ctx_push_fec_packets() 381 gst_rtp_buffer_add_extension_onebyte_header (&rtp, twcc_ext_id, in gst_rtp_ulpfec_enc_stream_ctx_push_fec_packets() 384 gst_rtp_buffer_add_extension_twobytes_header (&rtp, twcc_appbits, in gst_rtp_ulpfec_enc_stream_ctx_push_fec_packets() [all …]
|
D | gstrtppcmadepay.c | 66 GstRTPBuffer * rtp); 132 gst_rtp_pcma_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp) in gst_rtp_pcma_depay_process() argument 138 marker = gst_rtp_buffer_get_marker (rtp); in gst_rtp_pcma_depay_process() 141 gst_buffer_get_size (rtp->buffer), marker, in gst_rtp_pcma_depay_process() 142 gst_rtp_buffer_get_timestamp (rtp), gst_rtp_buffer_get_seq (rtp)); in gst_rtp_pcma_depay_process() 144 len = gst_rtp_buffer_get_payload_len (rtp); in gst_rtp_pcma_depay_process() 145 outbuf = gst_rtp_buffer_get_payload_buffer (rtp); in gst_rtp_pcma_depay_process()
|
D | gstrtppcmudepay.c | 67 GstRTPBuffer * rtp); 133 gst_rtp_pcmu_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp) in gst_rtp_pcmu_depay_process() argument 139 marker = gst_rtp_buffer_get_marker (rtp); in gst_rtp_pcmu_depay_process() 142 gst_buffer_get_size (rtp->buffer), marker, in gst_rtp_pcmu_depay_process() 143 gst_rtp_buffer_get_timestamp (rtp), gst_rtp_buffer_get_seq (rtp)); in gst_rtp_pcmu_depay_process() 145 len = gst_rtp_buffer_get_payload_len (rtp); in gst_rtp_pcmu_depay_process() 146 outbuf = gst_rtp_buffer_get_payload_buffer (rtp); in gst_rtp_pcmu_depay_process()
|
D | gstrtpceltdepay.c | 71 GstRTPBuffer * rtp); 200 gst_rtp_celt_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp) in gst_rtp_celt_depay_process() argument 216 timestamp = GST_BUFFER_PTS (rtp->buffer); in gst_rtp_celt_depay_process() 220 gst_buffer_get_size (rtp->buffer), gst_rtp_buffer_get_marker (rtp), in gst_rtp_celt_depay_process() 221 gst_rtp_buffer_get_timestamp (rtp), gst_rtp_buffer_get_seq (rtp)); in gst_rtp_celt_depay_process() 227 payload = gst_rtp_buffer_get_payload (rtp); in gst_rtp_celt_depay_process() 228 payload_len = gst_rtp_buffer_get_payload_len (rtp); in gst_rtp_celt_depay_process() 253 outbuf = gst_rtp_buffer_get_payload_subbuffer (rtp, offset, size); in gst_rtp_celt_depay_process()
|
/third_party/pulseaudio/src/modules/gsettings/ |
D | pulseaudio.convert | 93 [org.freedesktop.pulseaudio.module-group:/org/freedesktop/pulseaudio/module-groups/rtp-recv/] 94 args0 = /system/pulseaudio/modules/rtp-recv/args0 95 args1 = /system/pulseaudio/modules/rtp-recv/args1 96 args2 = /system/pulseaudio/modules/rtp-recv/args2 97 args3 = /system/pulseaudio/modules/rtp-recv/args3 98 args4 = /system/pulseaudio/modules/rtp-recv/args4 99 args5 = /system/pulseaudio/modules/rtp-recv/args5 100 args6 = /system/pulseaudio/modules/rtp-recv/args6 101 args7 = /system/pulseaudio/modules/rtp-recv/args7 102 args8 = /system/pulseaudio/modules/rtp-recv/args8 [all …]
|
/third_party/gstreamer/gstplugins_good/gst/rtpmanager/ |
D | gstrtpst2022-1-fecenc.c | 256 fec_packet_update (FecPacket * fec, GstRTPBuffer * rtp) in fec_packet_update() argument 259 fec->seq_base = gst_rtp_buffer_get_seq (rtp); in fec_packet_update() 260 fec->payload_len = gst_rtp_buffer_get_payload_len (rtp); in fec_packet_update() 261 fec->xored_payload_len = gst_rtp_buffer_get_payload_len (rtp); in fec_packet_update() 262 fec->xored_pt = gst_rtp_buffer_get_payload_type (rtp); in fec_packet_update() 263 fec->xored_timestamp = gst_rtp_buffer_get_timestamp (rtp); in fec_packet_update() 264 fec->xored_marker = gst_rtp_buffer_get_marker (rtp); in fec_packet_update() 265 fec->xored_padding = gst_rtp_buffer_get_padding (rtp); in fec_packet_update() 266 fec->xored_extension = gst_rtp_buffer_get_extension (rtp); in fec_packet_update() 268 memcpy (fec->xored_payload, gst_rtp_buffer_get_payload (rtp), in fec_packet_update() [all …]
|
D | gstrtprtxreceive.c | 454 _gst_rtp_buffer_new_from_rtx (GstRTPBuffer * rtp, guint32 ssrc1, in _gst_rtp_buffer_new_from_rtx() argument 464 mem = gst_memory_copy (rtp->map[0].memory, in _gst_rtp_buffer_new_from_rtx() 465 (guint8 *) rtp->data[0] - rtp->map[0].data, rtp->size[0]); in _gst_rtp_buffer_new_from_rtx() 469 if (rtp->size[1]) { in _gst_rtp_buffer_new_from_rtx() 470 mem = gst_memory_copy (rtp->map[1].memory, in _gst_rtp_buffer_new_from_rtx() 471 (guint8 *) rtp->data[1] - rtp->map[1].data, rtp->size[1]); in _gst_rtp_buffer_new_from_rtx() 476 payload_len = rtp->size[2] - 2; in _gst_rtp_buffer_new_from_rtx() 480 if (rtp->size[2]) in _gst_rtp_buffer_new_from_rtx() 481 memcpy (map.data, (guint8 *) rtp->data[2] + 2, payload_len); in _gst_rtp_buffer_new_from_rtx() 489 if (rtp->size[3]) { in _gst_rtp_buffer_new_from_rtx() [all …]
|
D | gstrtpst2022-1-fecdec.c | 103 GstRTPBuffer * rtp, Item * item); 289 parse_header (GstRTPBuffer * rtp, Rtp2DFecHeader * fec) in parse_header() argument 293 guint8 *data = gst_rtp_buffer_get_payload (rtp); in parse_header() 294 guint len = gst_rtp_buffer_get_payload_len (rtp); in parse_header() 301 fec->marker = gst_rtp_buffer_get_marker (rtp); in parse_header() 302 fec->padding = gst_rtp_buffer_get_padding (rtp); in parse_header() 303 fec->extension = gst_rtp_buffer_get_extension (rtp); in parse_header() 402 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in xor_items() local 430 gst_rtp_buffer_map (item->buffer, GST_MAP_WRITE, &rtp); in xor_items() 432 xored = gst_rtp_buffer_get_payload (&rtp); in xor_items() [all …]
|
/third_party/gstreamer/gstplugins_bad/gst/rist/ |
D | gstristrtpext.c | 95 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in gst_rist_rtp_ext_chain() local 108 if (!gst_rtp_buffer_map (buffer, GST_MAP_READ, &rtp)) { in gst_rist_rtp_ext_chain() 114 if (gst_rtp_buffer_get_payload_type (&rtp) == GST_RTP_PAYLOAD_MP2T) { in gst_rist_rtp_ext_chain() 115 if (gst_rtp_buffer_get_payload_len (&rtp) % 188 == 0) { in gst_rist_rtp_ext_chain() 117 ts_packet_count = gst_rtp_buffer_get_payload_len (&rtp) / 188; in gst_rist_rtp_ext_chain() 118 } else if (gst_rtp_buffer_get_payload_len (&rtp) % 204 == 0) { in gst_rist_rtp_ext_chain() 120 ts_packet_count = gst_rtp_buffer_get_payload_len (&rtp) / 204; in gst_rist_rtp_ext_chain() 125 gst_rtp_buffer_unmap (&rtp); in gst_rist_rtp_ext_chain() 130 if (!gst_rtp_buffer_map (buffer, GST_MAP_READWRITE, &rtp)) { in gst_rist_rtp_ext_chain() 136 guint8 *data = gst_rtp_buffer_get_payload (&rtp); in gst_rist_rtp_ext_chain() [all …]
|
D | gstristrtpdeext.c | 99 GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; in gst_rist_rtp_deext_chain() local 121 if (!gst_rtp_buffer_map (buffer, GST_MAP_READ, &rtp)) { in gst_rist_rtp_deext_chain() 126 if (!gst_rtp_buffer_get_extension_data (&rtp, &bits, &extdata, &extlen)) { in gst_rist_rtp_deext_chain() 128 gst_rtp_buffer_unmap (&rtp); in gst_rist_rtp_deext_chain() 133 gst_rtp_buffer_unmap (&rtp); in gst_rist_rtp_deext_chain() 140 gst_rtp_buffer_unmap (&rtp); in gst_rist_rtp_deext_chain() 160 guint32 extseqnum = seqnumext_val << 16 | gst_rtp_buffer_get_seq (&rtp); in gst_rist_rtp_deext_chain() 164 gst_rtp_buffer_unmap (&rtp); in gst_rist_rtp_deext_chain() 178 payload = gst_rtp_buffer_get_payload (&rtp); in gst_rist_rtp_deext_chain() 179 plen = gst_rtp_buffer_get_payload_len (&rtp); in gst_rist_rtp_deext_chain() [all …]
|