Searched refs:nal_len (Results 1 – 5 of 5) sorted by relevance
/third_party/gstreamer/gstplugins_good/gst/rtp/ |
D | gstrtph264pay.c | 737 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 …]
|
D | gstrtph265pay.c | 1445 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 …]
|
D | gstrtph264depay.c | 839 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()
|
D | gstrtph265depay.c | 903 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/ |
D | gstavtpcvfpay.c | 283 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()
|