Lines Matching refs:nalu
519 GstH264NalUnitType naltype, GstH264NalUnit * nalu) in gst_h264_parser_store_nal() argument
522 guint size = nalu->size, store_size; in gst_h264_parser_store_nal()
541 gst_buffer_fill (buf, 0, nalu->data + nalu->offset, size); in gst_h264_parser_store_nal()
621 gst_h264_parse_process_sei (GstH264Parse * h264parse, GstH264NalUnit * nalu) in gst_h264_parse_process_sei() argument
629 pres = gst_h264_parser_parse_sei (nalparser, nalu, &messages); in gst_h264_parse_process_sei()
665 h264parse->pic_timing_sei_pos = nalu->sc_offset; in gst_h264_parse_process_sei()
667 nalu->size + (nalu->offset - nalu->sc_offset); in gst_h264_parse_process_sei()
942 gst_h264_parse_process_nal (GstH264Parse * h264parse, GstH264NalUnit * nalu) in gst_h264_parse_process_nal() argument
952 if (G_UNLIKELY (nalu->size < 2)) { in gst_h264_parse_process_nal()
953 GST_DEBUG_OBJECT (h264parse, "not processing nal size %u", nalu->size); in gst_h264_parse_process_nal()
958 nal_type = nalu->type; in gst_h264_parse_process_nal()
961 nal_type, _nal_name (nal_type), nalu->size); in gst_h264_parse_process_nal()
967 pres = gst_h264_parser_parse_subset_sps (nalparser, nalu, &sps); in gst_h264_parse_process_nal()
973 pres = gst_h264_parser_parse_sps (nalparser, nalu, &sps); in gst_h264_parse_process_nal()
997 gst_h264_parser_store_nal (h264parse, sps.id, nal_type, nalu); in gst_h264_parse_process_nal()
1008 pres = gst_h264_parser_parse_pps (nalparser, nalu, &pps); in gst_h264_parse_process_nal()
1032 gst_h264_parser_store_nal (h264parse, pps.id, nal_type, nalu); in gst_h264_parse_process_nal()
1043 gst_h264_parse_process_sei (h264parse, nalu); in gst_h264_parse_process_nal()
1049 h264parse->sei_pos = nalu->sc_offset; in gst_h264_parse_process_nal()
1072 if (*(nalu->data + nalu->offset + nalu->header_bytes) & 0x80) { in gst_h264_parse_process_nal()
1079 if (nal_type == GST_H264_NAL_SLICE_EXT && !GST_H264_IS_MVC_NALU (nalu)) in gst_h264_parse_process_nal()
1082 pres = gst_h264_parser_parse_slice_hdr (nalparser, nalu, &slice, in gst_h264_parse_process_nal()
1113 h264parse->idr_pos = nalu->sc_offset; in gst_h264_parse_process_nal()
1141 pres = gst_h264_parser_parse_nal (nalparser, nalu); in gst_h264_parse_process_nal()
1152 pres = gst_h264_parser_parse_nal (nalparser, nalu); in gst_h264_parse_process_nal()
1165 nalu->data + nalu->offset, nalu->size); in gst_h264_parse_process_nal()
1174 gst_h264_parse_collect_nal (GstH264Parse * h264parse, GstH264NalUnit * nalu) in gst_h264_parse_collect_nal() argument
1176 GstH264NalUnitType nal_type = nalu->type; in gst_h264_parse_collect_nal()
1195 if (nalu->size > nalu->header_bytes) in gst_h264_parse_collect_nal()
1199 (nalu->data[nalu->offset + nalu->header_bytes] & 0x80); in gst_h264_parse_collect_nal()
1223 GstH264NalUnit nalu; in gst_h264_parse_handle_frame_packetized() local
1245 map.data, 0, map.size, nl, &nalu); in gst_h264_parse_handle_frame_packetized()
1253 GST_DEBUG_OBJECT (h264parse, "AVC nal offset %d", nalu.offset + nalu.size); in gst_h264_parse_handle_frame_packetized()
1256 gst_h264_parse_process_nal (h264parse, &nalu); in gst_h264_parse_handle_frame_packetized()
1267 nalu.offset, nalu.size); in gst_h264_parse_handle_frame_packetized()
1270 if (nl + nalu.size == left) { in gst_h264_parse_handle_frame_packetized()
1280 ret = gst_base_parse_finish_frame (parse, &tmp_frame, nl + nalu.size); in gst_h264_parse_handle_frame_packetized()
1281 left -= nl + nalu.size; in gst_h264_parse_handle_frame_packetized()
1285 map.data, nalu.offset + nalu.size, map.size, nl, &nalu); in gst_h264_parse_handle_frame_packetized()
1344 GstH264NalUnit nalu; in gst_h264_parse_handle_frame() local
1395 nalu.size = 0; in gst_h264_parse_handle_frame()
1396 nalu.offset = current_off; in gst_h264_parse_handle_frame()
1407 size, &nalu); in gst_h264_parse_handle_frame()
1410 if (nalu.sc_offset > 0) { in gst_h264_parse_handle_frame()
1411 *skipsize = nalu.sc_offset; in gst_h264_parse_handle_frame()
1429 gst_base_parse_set_ts_at_offset (parse, nalu.offset); in gst_h264_parse_handle_frame()
1435 &nalu); in gst_h264_parse_handle_frame()
1440 nalu.offset, nalu.size); in gst_h264_parse_handle_frame()
1447 nalu.size = size - nalu.offset; in gst_h264_parse_handle_frame()
1451 nalu.offset); in gst_h264_parse_handle_frame()
1455 nalu.size = size - nalu.offset; in gst_h264_parse_handle_frame()
1457 nalu.size); in gst_h264_parse_handle_frame()
1459 if (nalu.size < 2) in gst_h264_parse_handle_frame()
1481 "it contains a NAL unit of length %u", nalu.size); in gst_h264_parse_handle_frame()
1490 *skipsize = nalu.offset; in gst_h264_parse_handle_frame()
1494 nalu.size = 0; in gst_h264_parse_handle_frame()
1495 nalu.offset = nalu.sc_offset; in gst_h264_parse_handle_frame()
1505 data, nalu.offset, nalu.size); in gst_h264_parse_handle_frame()
1507 if (gst_h264_parse_collect_nal (h264parse, &nalu)) { in gst_h264_parse_handle_frame()
1511 nalu.size = 0; in gst_h264_parse_handle_frame()
1512 nalu.offset = nalu.sc_offset; in gst_h264_parse_handle_frame()
1518 if (!gst_h264_parse_process_nal (h264parse, &nalu)) { in gst_h264_parse_handle_frame()
1521 nalu.type, _nal_name (nalu.type), nalu.size); in gst_h264_parse_handle_frame()
1522 *skipsize = nalu.size; in gst_h264_parse_handle_frame()
1552 current_off = nalu.offset + nalu.size; in gst_h264_parse_handle_frame()
1561 current_off = nalu.offset + nalu.size; in gst_h264_parse_handle_frame()
1576 framesize = nalu.offset + nalu.size; in gst_h264_parse_handle_frame()
3379 GstH264NalUnit nalu; in gst_h264_parse_set_caps() local
3497 data, off, size, 2, &nalu); in gst_h264_parse_set_caps()
3503 gst_h264_parse_process_nal (h264parse, &nalu); in gst_h264_parse_set_caps()
3504 off = nalu.offset + nalu.size; in gst_h264_parse_set_caps()
3516 data, off, size, 2, &nalu); in gst_h264_parse_set_caps()
3522 gst_h264_parse_process_nal (h264parse, &nalu); in gst_h264_parse_set_caps()
3523 off = nalu.offset + nalu.size; in gst_h264_parse_set_caps()