Home
last modified time | relevance | path

Searched refs:nal_type (Results 1 – 25 of 27) sorted by relevance

12

/third_party/gstreamer/gstplugins_good/gst/rtp/
Dgstrtph265pay.c931 gboolean marker, guint mtu, guint8 nal_type, const guint8 * nal_header,
935 gboolean marker, guint8 nal_type, const guint8 * nal_header, int size);
1017 guint8 nal_type; in gst_rtp_h265_pay_payload_nal() local
1035 nal_type = (nal_header[0] >> 1) & 0x3f; in gst_rtp_h265_pay_payload_nal()
1038 " pts=%" GST_TIME_FORMAT, size, nal_type, GST_TIME_ARGS (pts)); in gst_rtp_h265_pay_payload_nal()
1043 if ((nal_type == GST_H265_NAL_SLICE_TRAIL_N) in gst_rtp_h265_pay_payload_nal()
1044 || (nal_type == GST_H265_NAL_SLICE_TRAIL_R) in gst_rtp_h265_pay_payload_nal()
1045 || (nal_type == GST_H265_NAL_SLICE_TSA_N) in gst_rtp_h265_pay_payload_nal()
1046 || (nal_type == GST_H265_NAL_SLICE_TSA_R) in gst_rtp_h265_pay_payload_nal()
1047 || (nal_type == GST_H265_NAL_SLICE_STSA_N) in gst_rtp_h265_pay_payload_nal()
[all …]
Dgstrtph264pay.c926 guint8 nal_header, nal_type; in gst_rtp_h264_pay_payload_nal() local
934 nal_type = nal_header & 0x1f; in gst_rtp_h264_pay_payload_nal()
938 switch (nal_type) { in gst_rtp_h264_pay_payload_nal()
944 nal_type); in gst_rtp_h264_pay_payload_nal()
953 size, nal_type, GST_TIME_ARGS (pts)); in gst_rtp_h264_pay_payload_nal()
964 if (nal_type == IDR_TYPE_ID && rtph264pay->spspps_interval > 0) { in gst_rtp_h264_pay_payload_nal()
996 } else if (nal_type == IDR_TYPE_ID && rtph264pay->spspps_interval == -1) { in gst_rtp_h264_pay_payload_nal()
1262 guint8 nal_type; in gst_rtp_h264_pay_payload_nal_bundle() local
1266 nal_type = nal_header & 0x1f; in gst_rtp_h264_pay_payload_nal_bundle()
1275 if (nal_type == AUD_TYPE_ID) { in gst_rtp_h264_pay_payload_nal_bundle()
[all …]
Dgstrtph265depay.c1091 gint nal_type; in gst_rtp_h265_depay_handle_nal() local
1101 nal_type = (map.data[4] >> 1) & 0x3f; in gst_rtp_h265_depay_handle_nal()
1103 nal_type, marker); in gst_rtp_h265_depay_handle_nal()
1105 keyframe = NAL_TYPE_IS_KEY (nal_type); in gst_rtp_h265_depay_handle_nal()
1111 if (NAL_TYPE_IS_PARAMETER_SET (nal_type)) { in gst_rtp_h265_depay_handle_nal()
1142 if (NAL_TYPE_IS_CODED_SLICE_SEGMENT (nal_type)) { in gst_rtp_h265_depay_handle_nal()
1148 } else if ((nal_type >= 32 && nal_type <= 35) in gst_rtp_h265_depay_handle_nal()
1149 || nal_type == 39 || (nal_type >= 41 && nal_type <= 44) in gst_rtp_h265_depay_handle_nal()
1150 || (nal_type >= 48 && nal_type <= 55)) { in gst_rtp_h265_depay_handle_nal()
Dgstrtph264depay.c992 gint nal_type; in gst_rtp_h264_depay_handle_nal() local
1002 nal_type = map.data[4] & 0x1f; in gst_rtp_h264_depay_handle_nal()
1003 GST_DEBUG_OBJECT (rtph264depay, "handle NAL type %d", nal_type); in gst_rtp_h264_depay_handle_nal()
1005 keyframe = NAL_TYPE_IS_KEY (nal_type); in gst_rtp_h264_depay_handle_nal()
1011 if (nal_type == 7 || nal_type == 8) { in gst_rtp_h264_depay_handle_nal()
1049 if (nal_type == 1 || nal_type == 2 || nal_type == 5) { in gst_rtp_h264_depay_handle_nal()
1056 } else if (nal_type >= 6 && nal_type <= 9) { in gst_rtp_h264_depay_handle_nal()
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecparsers/
Dgsth265parser.h53 #define GST_H265_IS_NAL_TYPE_IDR(nal_type) \ argument
54 ((nal_type) == GST_H265_NAL_SLICE_IDR_W_RADL || (nal_type) == GST_H265_NAL_SLICE_IDR_N_LP)
64 #define GST_H265_IS_NAL_TYPE_IRAP(nal_type) \ argument
65 ((nal_type) >= GST_H265_NAL_SLICE_BLA_W_LP && (nal_type) <= RESERVED_IRAP_NAL_TYPE_MAX)
75 #define GST_H265_IS_NAL_TYPE_BLA(nal_type) \ argument
76 ((nal_type) >= GST_H265_NAL_SLICE_BLA_W_LP && (nal_type) <= GST_H265_NAL_SLICE_BLA_N_LP)
86 #define GST_H265_IS_NAL_TYPE_CRA(nal_type) \ argument
87 ((nal_type) == GST_H265_NAL_SLICE_CRA_NUT)
97 #define GST_H265_IS_NAL_TYPE_RADL(nal_type) \ argument
98 ((nal_type) == GST_H265_NAL_SLICE_RADL_N || (nal_type) == GST_H265_NAL_SLICE_RADL_R)
[all …]
Dgsth265parser.c2746 guint8 nal_type, NalReader * nr, GstH265SEIMessage * sei) in gst_h265_parser_parse_sei_message() argument
2777 if (nal_type == GST_H265_NAL_PREFIX_SEI) { in gst_h265_parser_parse_sei_message()
2817 } else if (nal_type == GST_H265_NAL_SUFFIX_SEI) { in gst_h265_parser_parse_sei_message()
/third_party/ffmpeg/libavformat/
Dhevc.c647 static void nal_unit_parse_header(GetBitContext *gb, uint8_t *nal_type) in nal_unit_parse_header() argument
651 *nal_type = get_bits(gb, 6); in nal_unit_parse_header()
661 uint8_t nal_type, int ps_array_completeness, in hvcc_array_add_nal_unit() argument
670 if (hvcc->array[index].NAL_unit_type == nal_type) in hvcc_array_add_nal_unit()
698 array->NAL_unit_type = nal_type; in hvcc_array_add_nal_unit()
707 if (nal_type == HEVC_NAL_VPS || nal_type == HEVC_NAL_SPS || nal_type == HEVC_NAL_PPS) in hvcc_array_add_nal_unit()
719 uint8_t nal_type; in hvcc_add_nal_unit() local
733 nal_unit_parse_header(&gbc, &nal_type); in hvcc_add_nal_unit()
740 switch (nal_type) { in hvcc_add_nal_unit()
746 ret = hvcc_array_add_nal_unit(nal_buf, nal_size, nal_type, in hvcc_add_nal_unit()
[all …]
Drtpdec_hevc.c185 int tid, lid, nal_type; in hevc_handle_packet() local
210 nal_type = (buf[0] >> 1) & 0x3f; in hevc_handle_packet()
228 if (nal_type > 50) { in hevc_handle_packet()
229 av_log(ctx, AV_LOG_ERROR, "Unsupported (HEVC) NAL type (%d)\n", nal_type); in hevc_handle_packet()
233 switch (nal_type) { in hevc_handle_packet()
311 len, nal_type); in hevc_handle_packet()
Davc.c145 uint8_t nal_type; in ff_isom_write_avcc() local
148 nal_type = buf[0] & 0x1f; in ff_isom_write_avcc()
150 if (nal_type == 7) { /* SPS */ in ff_isom_write_avcc()
158 } else if (nal_type == 8) { /* PPS */ in ff_isom_write_avcc()
166 } else if (nal_type == 13) { /* SPS_EXT */ in ff_isom_write_avcc()
Drtpdec_h264.c289 uint8_t fu_indicator, fu_header, start_bit, nal_type, nal; in h264_handle_packet_fu_a() local
299 nal_type = fu_header & 0x1f; in h264_handle_packet_fu_a()
300 nal = fu_indicator & 0xe0 | nal_type; in h264_handle_packet_fu_a()
307 nal_counters[nal_type & nal_mask]++; in h264_handle_packet_fu_a()
Drtpenc_h264_hevc.c125 uint8_t nal_type = (buf[0] >> 1) & 0x3F; in nal_send() local
155 s->buf[2] = nal_type; in nal_send()
Dsdp.c188 uint8_t nal_type; in extradata2psets() local
191 nal_type = *r & 0x1f; in extradata2psets()
193 if (nal_type != 7 && nal_type != 8) { /* Only output SPS and PPS */ in extradata2psets()
Dmpegts.c482 …uint8_t nal_type = (data[i + DRM_LEGACY_LEN] >> DRM_SHIFT_LEFT_NUM) & DRM_H265_VIDEO_NAL_TYPE_UMAS… in mpegts_drm_find_hevc_cei_nal_unit() local
483 av_log(NULL, AV_LOG_DEBUG, "nal type=%x\n", nal_type); in mpegts_drm_find_hevc_cei_nal_unit()
484 …if (nal_type <= DRM_H265_VIDEO_END_NAL_TYPE) { // nal type: 0 ~ 31 are slice nal units and reserve… in mpegts_drm_find_hevc_cei_nal_unit()
488 } else if (nal_type == 39) { // 39: SEI nal unit in mpegts_drm_find_hevc_cei_nal_unit()
514 uint8_t nal_type = data[i + DRM_LEGACY_LEN] & DRM_H264_VIDEO_NAL_TYPE_UMASK_NUM; in mpegts_drm_find_h264_cei_nal_unit() local
515 av_log(NULL, AV_LOG_DEBUG, "nal type=%x\n", nal_type); in mpegts_drm_find_h264_cei_nal_unit()
516 if ((nal_type >= DRM_H264_VIDEO_START_NAL_TYPE) && (nal_type <= DRM_H264_VIDEO_END_NAL_TYPE)) { in mpegts_drm_find_h264_cei_nal_unit()
520 } else if ((nal_type == 39) || (nal_type == 6)) { // 39 or 6 is SEI nal unit tag in mpegts_drm_find_h264_cei_nal_unit()
/third_party/ffmpeg/libavcodec/
Dh2645_parse.c216 static const char *hevc_nal_unit_name(int nal_type) in hevc_nal_unit_name() argument
218 av_assert0(nal_type >= 0 && nal_type < 64); in hevc_nal_unit_name()
219 return hevc_nal_type_name[nal_type]; in hevc_nal_unit_name()
257 static const char *h264_nal_unit_name(int nal_type) in h264_nal_unit_name() argument
259 av_assert0(nal_type >= 0 && nal_type < 32); in h264_nal_unit_name()
260 return h264_nal_type_name[nal_type]; in h264_nal_unit_name()
Dvideotoolboxenc.c1550 static int is_post_sei_nal_type(int nal_type){ in is_post_sei_nal_type() argument
1551 return nal_type != H264_NAL_SEI && in is_post_sei_nal_type()
1552 nal_type != H264_NAL_SPS && in is_post_sei_nal_type()
1553 nal_type != H264_NAL_PPS && in is_post_sei_nal_type()
1554 nal_type != H264_NAL_AUD; in is_post_sei_nal_type()
1566 int nal_type; in find_sei_end() local
1575 nal_type = *nal_data & 0x1F; in find_sei_end()
1576 if (nal_type != H264_NAL_SEI) in find_sei_end()
1764 uint8_t nal_type; in copy_replace_length_codes() local
1791 &nal_type); in copy_replace_length_codes()
[all …]
Dlibuavs3d.c200 if (frm_dec->nal_type == NAL_SEQ_HEADER) { in libuavs3d_decode_frame()
/third_party/gstreamer/gstplugins_bad/ext/avtp/
Dgstavtpcvfdepay.c404 guint8 nal_header, nal_type; in gst_avtp_cvf_depay_get_nal_type() local
409 nal_type = nal_header & NAL_TYPE_MASK; in gst_avtp_cvf_depay_get_nal_type()
411 return nal_type; in gst_avtp_cvf_depay_get_nal_type()
510 guint8 nri, guint8 nal_type) in gst_avtp_cvf_depay_process_last_fragment() argument
544 map_nal.data[4] = (nri << 5) | nal_type; in gst_avtp_cvf_depay_process_last_fragment()
570 guint8 fu_header, fu_indicator, nal_type, start, end, nri; in gst_avtp_cvf_depay_handle_fu_a() local
590 nal_type = fu_header & NAL_TYPE_MASK; in gst_avtp_cvf_depay_handle_fu_a()
595 "Fragment header - type: %u start: %u end: %u", nal_type, start, end); in gst_avtp_cvf_depay_handle_fu_a()
638 offset, nalu_size, nri, nal_type); in gst_avtp_cvf_depay_handle_fu_a()
Dgstavtpcvfpay.c329 guint8 nal_header, nal_type; in gst_avtp_cvf_pay_is_nal_vcl() local
332 nal_type = nal_header & NAL_TYPE_MASK; in gst_avtp_cvf_pay_is_nal_vcl()
334 return nal_type >= FIRST_NAL_VCL_TYPE && nal_type <= LAST_NAL_VCL_TYPE; in gst_avtp_cvf_pay_is_nal_vcl()
342 guint8 nal_header, nal_type, nal_nri, fu_indicator, fu_header; in gst_avtpcvpay_fragment_nal() local
378 nal_type = nal_header & NAL_TYPE_MASK; in gst_avtpcvpay_fragment_nal()
383 ((*last_fragment == TRUE) << END_SHIFT) | nal_type; in gst_avtpcvpay_fragment_nal()
/third_party/gstreamer/gstplugins_bad/tests/check/elements/
Davtpcvfdepay.c71 nal_type (GstBuffer * buffer) in nal_type() function
73 guint8 nal_type; in nal_type() local
75 gst_buffer_extract (buffer, 4, &nal_type, 1); in nal_type()
76 return nal_type & 0x1f; in nal_type()
676 fail_unless_equals_uint64 (nal_type (nal), 4); in GST_START_TEST()
761 fail_unless_equals_uint64 (nal_type (nal), 7); in GST_START_TEST()
767 fail_unless_equals_uint64 (nal_type (nal), 7); in GST_START_TEST()
840 fail_unless_equals_uint64 (nal_type (nal), 1); in GST_START_TEST()
913 fail_unless_equals_uint64 (nal_type (nal), 2); in GST_START_TEST()
1016 fail_unless_equals_uint64 (nal_type (nal), 2); in GST_START_TEST()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/videoparsers/
Dgsth265parse.c539 _nal_name (GstH265NalUnitType nal_type) in _nal_name() argument
541 if (nal_type <= GST_H265_NAL_SUFFIX_SEI) in _nal_name()
542 return nal_names[nal_type]; in _nal_name()
719 guint nal_type; in gst_h265_parse_process_nal() local
730 nal_type = nalu->type; in gst_h265_parse_process_nal()
733 nal_type, _nal_name (nal_type), nalu->size); in gst_h265_parse_process_nal()
734 switch (nal_type) { in gst_h265_parse_process_nal()
758 gst_h265_parser_store_nal (h265parse, vps.id, nal_type, nalu); in gst_h265_parse_process_nal()
795 gst_h265_parser_store_nal (h265parse, sps.id, nal_type, nalu); in gst_h265_parse_process_nal()
831 gst_h265_parser_store_nal (h265parse, pps.id, nal_type, nalu); in gst_h265_parse_process_nal()
[all …]
Dgsth264parse.c579 _nal_name (GstH264NalUnitType nal_type) in _nal_name() argument
581 if (nal_type <= GST_H264_NAL_SLICE_DEPTH) in _nal_name()
582 return nal_names[nal_type]; in _nal_name()
944 guint nal_type; in gst_h264_parse_process_nal() local
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()
963 switch (nal_type) { in gst_h264_parse_process_nal()
997 gst_h264_parser_store_nal (h264parse, sps.id, nal_type, nalu); in gst_h264_parse_process_nal()
1032 gst_h264_parser_store_nal (h264parse, pps.id, nal_type, nalu); 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()
[all …]
/third_party/gstreamer/gstplugins_good/tests/check/elements/
Drtph265.c1089 guint nal_type = ((0x7e & payload[nal_hdr_idx]) >> 1); in GST_START_TEST() local
1091 fail_unless (nal_type == GST_H265_NAL_VPS); in GST_START_TEST()
1093 fail_unless (nal_type == GST_H265_NAL_SPS); in GST_START_TEST()
1095 fail_unless (nal_type == GST_H265_NAL_PPS); in GST_START_TEST()
1097 fail_unless (nal_type == GST_H265_NAL_SLICE_IDR_N_LP); in GST_START_TEST()
/third_party/gstreamer/gstplugins_bad/sys/nvcodec/
Dgstnvdec.c1354 GstH264NalUnitType nal_type, GstH264NalUnit * nalu) in gst_nvdec_store_h264_nal() argument
1360 if (nal_type == GST_H264_NAL_SPS || nal_type == GST_H264_NAL_SUBSET_SPS) { in gst_nvdec_store_h264_nal()
1364 } else if (nal_type == GST_H264_NAL_PPS) { in gst_nvdec_store_h264_nal()
1487 GstH265NalUnitType nal_type, GstH265NalUnit * nalu) in gst_nvdec_store_h265_nal() argument
1493 if (nal_type == GST_H265_NAL_VPS) { in gst_nvdec_store_h265_nal()
1497 } else if (nal_type == GST_H265_NAL_SPS) { in gst_nvdec_store_h265_nal()
1501 } else if (nal_type == GST_H265_NAL_PPS) { in gst_nvdec_store_h265_nal()
/third_party/gstreamer/gstplugins_bad/gst/mpegtsdemux/
Dtsdemux.c493 …guint8 nal_type = (data[i + DRM_LEGACY_LEN] >> DRM_SHIFT_LEFT_NUM) & DRM_H265_VIDEO_NAL_TYPE_UMASK… in gst_ts_demux_drm_find_hevc_cei_nal_unit() local
494 GST_DEBUG ("nal type=%x\n", nal_type); in gst_ts_demux_drm_find_hevc_cei_nal_unit()
495 …if (nal_type <= DRM_H265_VIDEO_END_NAL_TYPE) { // nal type: 0 ~ 31 are slice nal units and reserve… in gst_ts_demux_drm_find_hevc_cei_nal_unit()
499 } else if (nal_type == 39) { // 39: SEI nal unit in gst_ts_demux_drm_find_hevc_cei_nal_unit()
526 guint8 nal_type = data[i + DRM_LEGACY_LEN] & DRM_H264_VIDEO_NAL_TYPE_UMASK_NUM; in gst_ts_demux_drm_find_h264_cei_nal_unit() local
527 GST_DEBUG ("nal type=%x\n", nal_type); in gst_ts_demux_drm_find_h264_cei_nal_unit()
528 if ((nal_type >= DRM_H264_VIDEO_START_NAL_TYPE) && (nal_type <= DRM_H264_VIDEO_END_NAL_TYPE)) { in gst_ts_demux_drm_find_h264_cei_nal_unit()
532 } else if ((nal_type == 39) || (nal_type == 6)) { // 39 or 6 is SEI nal unit tag in gst_ts_demux_drm_find_h264_cei_nal_unit()
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecs/
Dgsth265decoder.c1054 nal_is_ref (guint8 nal_type) in nal_is_ref() argument
1057 switch (nal_type) { in nal_is_ref()

12