Home
last modified time | relevance | path

Searched refs:nal_len (Results 1 – 5 of 5) sorted by relevance

/third_party/gstreamer/gstplugins_good/gst/rtp/
Dgstrtph264pay.c737 gsize nal_len; in gst_rtp_h264_pay_parse_sprop_parameter_sets() local
743 nal_len = strlen (params[i]); in gst_rtp_h264_pay_parse_sprop_parameter_sets()
744 buf = gst_buffer_new_and_alloc (nal_len); in gst_rtp_h264_pay_parse_sprop_parameter_sets()
748 nal_len = g_base64_decode_step (params[i], nal_len, nalp, &state, &save); in gst_rtp_h264_pay_parse_sprop_parameter_sets()
750 gst_buffer_resize (buf, 0, nal_len); in gst_rtp_h264_pay_parse_sprop_parameter_sets()
752 if (!nal_len) { in gst_rtp_h264_pay_parse_sprop_parameter_sets()
1374 guint nal_len, i; in gst_rtp_h264_pay_handle_buffer() local
1462 nal_len = 0; in gst_rtp_h264_pay_handle_buffer()
1464 nal_len = (nal_len << 8) + *memory.data; in gst_rtp_h264_pay_handle_buffer()
1472 if (remaining_buffer_size >= nal_len) { in gst_rtp_h264_pay_handle_buffer()
[all …]
Dgstrtph265pay.c1445 guint nal_len, i; in gst_rtp_h265_pay_handle_buffer() local
1513 nal_len = 0; in gst_rtp_h265_pay_handle_buffer()
1515 nal_len = (nal_len << 8) + *memory.data; in gst_rtp_h265_pay_handle_buffer()
1523 if (remaining_buffer_size >= nal_len) { in gst_rtp_h265_pay_handle_buffer()
1524 GST_DEBUG_OBJECT (basepayload, "got NAL of size %u", nal_len); in gst_rtp_h265_pay_handle_buffer()
1526 nal_len = remaining_buffer_size; in gst_rtp_h265_pay_handle_buffer()
1528 nal_len); in gst_rtp_h265_pay_handle_buffer()
1532 nal_len); in gst_rtp_h265_pay_handle_buffer()
1539 if (remaining_buffer_size - nal_len <= nal_length_size) { in gst_rtp_h265_pay_handle_buffer()
1554 if (!gst_buffer_memory_advance_bytes (&memory, nal_len)) in gst_rtp_h265_pay_handle_buffer()
[all …]
Dgstrtph264depay.c839 gsize nal_len; in gst_rtp_h264_depay_setcaps() local
843 nal_len = strlen (params[i]); in gst_rtp_h264_depay_setcaps()
844 if (nal_len == 0) { in gst_rtp_h264_depay_setcaps()
848 nal = gst_buffer_new_and_alloc (nal_len); in gst_rtp_h264_depay_setcaps()
851 nal_len = in gst_rtp_h264_depay_setcaps()
852 g_base64_decode_step (params[i], nal_len, nalmap.data, &state, &save); in gst_rtp_h264_depay_setcaps()
858 gst_buffer_set_size (nal, nal_len); in gst_rtp_h264_depay_setcaps()
Dgstrtph265depay.c903 gsize nal_len; in gst_rtp_h265_depay_setcaps() local
907 nal_len = strlen (params[i]); in gst_rtp_h265_depay_setcaps()
908 if (nal_len == 0) { in gst_rtp_h265_depay_setcaps()
912 nal = gst_buffer_new_and_alloc (nal_len); in gst_rtp_h265_depay_setcaps()
915 nal_len = in gst_rtp_h265_depay_setcaps()
916 g_base64_decode_step (params[i], nal_len, nalmap.data, &state, &save); in gst_rtp_h265_depay_setcaps()
924 gst_buffer_set_size (nal, nal_len); in gst_rtp_h265_depay_setcaps()
/third_party/gstreamer/gstplugins_bad/ext/avtp/
Dgstavtpcvfpay.c283 guint nal_len = 0; in gst_avtp_cvf_pay_extract_nals() local
288 nal_len = (nal_len << 8) + data[i]; in gst_avtp_cvf_pay_extract_nals()
291 if (nal_len == 0) { in gst_avtp_cvf_pay_extract_nals()
300 if (G_UNLIKELY (size < nal_len)) { in gst_avtp_cvf_pay_extract_nals()
302 "Got incomplete NAL: NAL len %u, buffer len %zu", nal_len, size); in gst_avtp_cvf_pay_extract_nals()
303 nal_len = size; in gst_avtp_cvf_pay_extract_nals()
306 nal = gst_buffer_copy_region (buffer, GST_BUFFER_COPY_ALL, offset, nal_len); in gst_avtp_cvf_pay_extract_nals()
311 offset += nal_len; in gst_avtp_cvf_pay_extract_nals()
312 data += nal_len; in gst_avtp_cvf_pay_extract_nals()
313 size -= nal_len; in gst_avtp_cvf_pay_extract_nals()