/third_party/gstreamer/gstplugins_bad/tests/check/libs/ |
D | h264parser.c | 150 GstH264NalUnit nalu; in GST_START_TEST() local 155 sizeof (slice_dpa), &nalu); in GST_START_TEST() 158 assert_equals_int (nalu.type, GST_H264_NAL_SLICE_DPA); in GST_START_TEST() 168 GstH264NalUnit nalu; in GST_START_TEST() local 173 res = gst_h264_parser_identify_nalu (parser, buf, 0, buf_size, &nalu); in GST_START_TEST() 176 assert_equals_int (nalu.type, GST_H264_NAL_SLICE_IDR); in GST_START_TEST() 177 assert_equals_int (nalu.size, 20); in GST_START_TEST() 179 n = nalu.offset + nalu.size; in GST_START_TEST() 183 res = gst_h264_parser_identify_nalu (parser, buf, 0, buf_size, &nalu); in GST_START_TEST() 186 assert_equals_int (nalu.type, GST_H264_NAL_SEQ_END); in GST_START_TEST() [all …]
|
D | h265parser.c | 144 GstH265NalUnit nalu; in GST_START_TEST() local 149 res = gst_h265_parser_identify_nalu (parser, buf, 0, buf_size, &nalu); in GST_START_TEST() 152 assert_equals_int (nalu.type, GST_H265_NAL_SLICE_IDR_W_RADL); in GST_START_TEST() 153 assert_equals_int (nalu.size, buf_size / 2 - 10); /* 2 slices, 1 start code(4) and EOx(6) */ in GST_START_TEST() 155 n = nalu.offset + nalu.size; in GST_START_TEST() 159 res = gst_h265_parser_identify_nalu (parser, buf, 0, buf_size, &nalu); in GST_START_TEST() 162 assert_equals_int (nalu.type, GST_H265_NAL_EOS); in GST_START_TEST() 163 assert_equals_int (nalu.size, 2); in GST_START_TEST() 165 n = nalu.offset + nalu.size; in GST_START_TEST() 169 res = gst_h265_parser_identify_nalu (parser, buf, 0, buf_size, &nalu); in GST_START_TEST() [all …]
|
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecparsers/ |
D | gsth264parser.c | 201 gst_h264_parse_nalu_header (GstH264NalUnit * nalu) in gst_h264_parse_nalu_header() argument 203 guint8 *data = nalu->data + nalu->offset; in gst_h264_parse_nalu_header() 207 if (nalu->size < 1) in gst_h264_parse_nalu_header() 210 nalu->type = (data[0] & 0x1f); in gst_h264_parse_nalu_header() 211 nalu->ref_idc = (data[0] & 0x60) >> 5; in gst_h264_parse_nalu_header() 212 nalu->idr_pic_flag = (nalu->type == 5 ? 1 : 0); in gst_h264_parse_nalu_header() 213 nalu->header_bytes = 1; in gst_h264_parse_nalu_header() 215 nalu->extension_type = GST_H264_NAL_EXTENSION_NONE; in gst_h264_parse_nalu_header() 217 switch (nalu->type) { in gst_h264_parse_nalu_header() 220 if (nalu->size < 4) in gst_h264_parse_nalu_header() [all …]
|
D | gsth265parser.c | 233 gst_h265_parse_nalu_header (GstH265NalUnit * nalu) in gst_h265_parse_nalu_header() argument 235 guint8 *data = nalu->data + nalu->offset; in gst_h265_parse_nalu_header() 238 if (nalu->size < 2) in gst_h265_parse_nalu_header() 241 gst_bit_reader_init (&br, data, nalu->size - nalu->offset); in gst_h265_parse_nalu_header() 246 nalu->type = gst_bit_reader_get_bits_uint8_unchecked (&br, 6); in gst_h265_parse_nalu_header() 247 nalu->layer_id = gst_bit_reader_get_bits_uint8_unchecked (&br, 6); in gst_h265_parse_nalu_header() 248 nalu->temporal_id_plus1 = gst_bit_reader_get_bits_uint8_unchecked (&br, 3); in gst_h265_parse_nalu_header() 249 nalu->header_bytes = 2; in gst_h265_parse_nalu_header() 1396 const guint8 * data, guint offset, gsize size, GstH265NalUnit * nalu) in gst_h265_parser_identify_nalu_unchecked() argument 1400 memset (nalu, 0, sizeof (*nalu)); in gst_h265_parser_identify_nalu_unchecked() [all …]
|
D | gsth264parser.h | 62 #define GST_H264_IS_SVC_NALU(nalu) \ argument 63 ((nalu)->extension_type == GST_H264_NAL_EXTENSION_SVC) 73 #define GST_H264_IS_MVC_NALU(nalu) \ argument 74 ((nalu)->extension_type == GST_H264_NAL_EXTENSION_MVC) 1226 gsize size, GstH264NalUnit *nalu); 1231 gsize size, GstH264NalUnit *nalu); 1236 GstH264NalUnit *nalu); 1240 GstH264NalUnit *nalu); 1243 …4ParserResult gst_h264_parser_parse_slice_hdr (GstH264NalParser *nalparser, GstH264NalUnit *nalu, 1248 …4ParserResult gst_h264_parser_parse_subset_sps (GstH264NalParser *nalparser, GstH264NalUnit *nalu, [all …]
|
D | gsth265parser.h | 1638 GstH265NalUnit * nalu); 1645 GstH265NalUnit * nalu); 1653 GstH265NalUnit * nalu); 1657 GstH265NalUnit * nalu); 1661 GstH265NalUnit * nalu, 1666 GstH265NalUnit * nalu, 1671 GstH265NalUnit * nalu, 1677 GstH265NalUnit * nalu, 1682 GstH265NalUnit * nalu, 1701 GstH265ParserResult gst_h265_parse_vps (GstH265NalUnit * nalu, [all …]
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
D | d3d12_video_encoder_nalu_writer_h264.cpp | 242 d3d12_video_encoder_bitstream rbsp, nalu; in sps_to_nalu_bytes() local 249 if (!nalu.create_bitstream(2 * MAX_COMPRESSED_SPS)) { in sps_to_nalu_bytes() 260 if (wrap_sps_nalu(&nalu, &rbsp) <= 0u) { in sps_to_nalu_bytes() 267 uint8_t *naluBytes = nalu.get_bitstream_buffer(); in sps_to_nalu_bytes() 268 size_t naluByteSize = nalu.get_byte_count(); in sps_to_nalu_bytes() 288 d3d12_video_encoder_bitstream rbsp, nalu; in pps_to_nalu_bytes() local 294 if (!nalu.create_bitstream(2 * MAX_COMPRESSED_PPS)) { in pps_to_nalu_bytes() 306 if (wrap_pps_nalu(&nalu, &rbsp) <= 0u) { in pps_to_nalu_bytes() 313 uint8_t *naluBytes = nalu.get_bitstream_buffer(); in pps_to_nalu_bytes() 314 size_t naluByteSize = nalu.get_byte_count(); in pps_to_nalu_bytes() [all …]
|
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecs/ |
D | gsth265decoder.c | 253 gst_h265_decoder_parse_vps (GstH265Decoder * self, GstH265NalUnit * nalu) in gst_h265_decoder_parse_vps() argument 259 pres = gst_h265_parser_parse_vps (priv->parser, nalu, &vps); in gst_h265_decoder_parse_vps() 375 gst_h265_decoder_parse_sps (GstH265Decoder * self, GstH265NalUnit * nalu) in gst_h265_decoder_parse_sps() argument 382 pres = gst_h265_parse_sps (priv->parser, nalu, &sps, TRUE); in gst_h265_decoder_parse_sps() 403 gst_h265_decoder_parse_pps (GstH265Decoder * self, GstH265NalUnit * nalu) in gst_h265_decoder_parse_pps() argument 409 pres = gst_h265_parser_parse_pps (priv->parser, nalu, &pps); in gst_h265_decoder_parse_pps() 421 gst_h265_decoder_parse_sei (GstH265Decoder * self, GstH265NalUnit * nalu) in gst_h265_decoder_parse_sei() argument 428 pres = gst_h265_parser_parse_sei (priv->parser, nalu, &messages); in gst_h265_decoder_parse_sei() 634 gst_h265_decoder_parse_slice (GstH265Decoder * self, GstH265NalUnit * nalu, in gst_h265_decoder_parse_slice() argument 643 pres = gst_h265_parser_parse_slice_hdr (priv->parser, nalu, in gst_h265_decoder_parse_slice() [all …]
|
D | gsth264decoder.c | 195 GstH264NalUnit * nalu); 521 GstH264NalUnit nalu; in gst_h264_decoder_handle_frame() local 536 map.data, 0, map.size, priv->nal_length_size, &nalu); in gst_h264_decoder_handle_frame() 539 decode_ret = gst_h264_decoder_decode_nal (self, &nalu); in gst_h264_decoder_handle_frame() 542 map.data, nalu.offset + nalu.size, map.size, priv->nal_length_size, in gst_h264_decoder_handle_frame() 543 &nalu); in gst_h264_decoder_handle_frame() 547 map.data, 0, map.size, &nalu); in gst_h264_decoder_handle_frame() 553 decode_ret = gst_h264_decoder_decode_nal (self, &nalu); in gst_h264_decoder_handle_frame() 556 map.data, nalu.offset + nalu.size, map.size, &nalu); in gst_h264_decoder_handle_frame() 591 gst_h264_decoder_parse_sps (GstH264Decoder * self, GstH264NalUnit * nalu) in gst_h264_decoder_parse_sps() argument [all …]
|
/third_party/gstreamer/gstplugins_bad/gst/videoparsers/ |
D | gsth264parse.c | 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() [all …]
|
D | gsth265parse.c | 455 GstH265NalUnitType naltype, GstH265NalUnit * nalu) in gst_h265_parser_store_nal() argument 458 guint size = nalu->size, store_size; in gst_h265_parser_store_nal() 481 gst_buffer_fill (buf, 0, nalu->data + nalu->offset, size); in gst_h265_parser_store_nal() 548 gst_h265_parse_process_sei (GstH265Parse * h265parse, GstH265NalUnit * nalu) in gst_h265_parse_process_sei() argument 556 pres = gst_h265_parser_parse_sei (nalparser, nalu, &messages); in gst_h265_parse_process_sei() 714 gst_h265_parse_process_nal (GstH265Parse * h265parse, GstH265NalUnit * nalu) in gst_h265_parse_process_nal() argument 724 if (G_UNLIKELY (nalu->size < 2)) { in gst_h265_parse_process_nal() 725 GST_DEBUG_OBJECT (h265parse, "not processing nal size %u", nalu->size); in gst_h265_parse_process_nal() 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() [all …]
|
/third_party/gstreamer/gstplugins_bad/sys/nvcodec/ |
D | gstnvdec.c | 1354 GstH264NalUnitType nal_type, GstH264NalUnit * nalu) in gst_nvdec_store_h264_nal() argument 1357 guint size = nalu->size, store_size; in gst_nvdec_store_h264_nal() 1379 gst_buffer_fill (buf, sizeof (start_code), nalu->data + nalu->offset, size); in gst_nvdec_store_h264_nal() 1391 GstH264NalUnit nalu; in gst_nvdec_handle_h264_buffer() local 1404 memset (&nalu, 0, sizeof (GstH264NalUnit)); in gst_nvdec_handle_h264_buffer() 1408 map.data, nalu.offset + nalu.size, map.size, &nalu); in gst_nvdec_handle_h264_buffer() 1413 switch (nalu.type) { in gst_nvdec_handle_h264_buffer() 1418 if (nalu.type == GST_H264_NAL_SPS) { in gst_nvdec_handle_h264_buffer() 1419 pres = gst_h264_parser_parse_sps (parser, &nalu, &sps); in gst_nvdec_handle_h264_buffer() 1421 pres = gst_h264_parser_parse_subset_sps (parser, &nalu, &sps); in gst_nvdec_handle_h264_buffer() [all …]
|
D | gstnvh265dec.c | 695 params->intra_pic_flag = GST_H265_IS_NAL_TYPE_IRAP (slice->nalu.type); in gst_nv_h265_dec_start_picture() 697 h265_params->IrapPicFlag = GST_H265_IS_NAL_TYPE_IRAP (slice->nalu.type); in gst_nv_h265_dec_start_picture() 698 h265_params->IdrPicFlag = GST_H265_IS_NAL_TYPE_IDR (slice->nalu.type); in gst_nv_h265_dec_start_picture() 861 GST_LOG_OBJECT (self, "Decode slice, nalu size %u", slice->nalu.size); in gst_nv_h265_dec_decode_slice() 875 new_size = self->bitstream_buffer_offset + slice->nalu.size + 3; in gst_nv_h265_dec_decode_slice() 888 slice->nalu.data + slice->nalu.offset, slice->nalu.size); in gst_nv_h265_dec_decode_slice()
|
D | gstnvh264dec.c | 814 GST_LOG_OBJECT (self, "Decode slice, nalu size %u", slice->nalu.size); in gst_nv_h264_dec_decode_slice() 828 new_size = self->bitstream_buffer_offset + slice->nalu.size + 3; in gst_nv_h264_dec_decode_slice() 841 slice->nalu.data + slice->nalu.offset, slice->nalu.size); in gst_nv_h264_dec_decode_slice()
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_clone.c | 277 nir_alu_instr *nalu = nir_alu_instr_create(state->ns, alu->op); in clone_alu() local 278 nalu->exact = alu->exact; in clone_alu() 279 nalu->no_signed_wrap = alu->no_signed_wrap; in clone_alu() 280 nalu->no_unsigned_wrap = alu->no_unsigned_wrap; in clone_alu() 282 __clone_dst(state, &nalu->instr, &nalu->dest.dest, &alu->dest.dest); in clone_alu() 283 nalu->dest.saturate = alu->dest.saturate; in clone_alu() 284 nalu->dest.write_mask = alu->dest.write_mask; in clone_alu() 287 __clone_src(state, &nalu->instr, &nalu->src[i].src, &alu->src[i].src); in clone_alu() 288 nalu->src[i].negate = alu->src[i].negate; in clone_alu() 289 nalu->src[i].abs = alu->src[i].abs; in clone_alu() [all …]
|
D | nir_opt_if.c | 1216 nir_alu_instr *nalu = nir_alu_instr_create(b->shader, alu->op); in clone_alu_and_replace_src_defs() local 1217 nalu->exact = alu->exact; in clone_alu_and_replace_src_defs() 1219 nir_ssa_dest_init(&nalu->instr, &nalu->dest.dest, in clone_alu_and_replace_src_defs() 1223 nalu->dest.saturate = alu->dest.saturate; in clone_alu_and_replace_src_defs() 1224 nalu->dest.write_mask = alu->dest.write_mask; in clone_alu_and_replace_src_defs() 1228 nalu->src[i].src = nir_src_for_ssa(src_defs[i]); in clone_alu_and_replace_src_defs() 1229 nalu->src[i].negate = alu->src[i].negate; in clone_alu_and_replace_src_defs() 1230 nalu->src[i].abs = alu->src[i].abs; in clone_alu_and_replace_src_defs() 1231 memcpy(nalu->src[i].swizzle, alu->src[i].swizzle, in clone_alu_and_replace_src_defs() 1232 sizeof(nalu->src[i].swizzle)); in clone_alu_and_replace_src_defs() [all …]
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
D | r600_asm.c | 1263 struct r600_bytecode_alu *nalu = r600_bytecode_alu(); in r600_bytecode_add_alu_type() local 1267 if (!nalu) in r600_bytecode_add_alu_type() 1269 memcpy(nalu, alu, sizeof(struct r600_bytecode_alu)); in r600_bytecode_add_alu_type() 1297 free(nalu); in r600_bytecode_add_alu_type() 1306 if (nalu->src[i].kc_bank && nalu->src[i].kc_rel) in r600_bytecode_add_alu_type() 1312 if (nalu->src[i].rel && !bc->ar_loaded) in r600_bytecode_add_alu_type() 1315 if (nalu->dst.rel && !bc->ar_loaded) in r600_bytecode_add_alu_type() 1320 if ((r = r600_bytecode_alloc_kcache_lines(bc, nalu, type))) { in r600_bytecode_add_alu_type() 1321 free(nalu); in r600_bytecode_add_alu_type() 1326 bc->cf_last->curr_bs_head = nalu; in r600_bytecode_add_alu_type() [all …]
|
/third_party/gstreamer/gstplugins_bad/ext/smoothstreaming/ |
D | gstmssmanifest.c | 619 GstH264NalUnit nalu = { 0, }; in _gst_mss_stream_add_h264_codec_data() local 646 nalu.ref_idc = (spsinfo.data[0] & 0x60) >> 5; in _gst_mss_stream_add_h264_codec_data() 647 nalu.type = GST_H264_NAL_SPS; in _gst_mss_stream_add_h264_codec_data() 648 nalu.size = spsinfo.size - 1; in _gst_mss_stream_add_h264_codec_data() 649 nalu.data = spsinfo.data + 1; in _gst_mss_stream_add_h264_codec_data() 650 nalu.offset = 0; in _gst_mss_stream_add_h264_codec_data() 651 nalu.sc_offset = 0; in _gst_mss_stream_add_h264_codec_data() 652 nalu.valid = TRUE; in _gst_mss_stream_add_h264_codec_data() 653 nalu.header_bytes = 0; in _gst_mss_stream_add_h264_codec_data() 654 nalu.extension_type = GST_H264_NAL_EXTENSION_NONE; in _gst_mss_stream_add_h264_codec_data() [all …]
|
/third_party/gstreamer/gstplugins_bad/sys/va/ |
D | gstvah264dec.c | 332 GstH264NalUnit *nalu = &slice->nalu; in gst_va_h264_dec_decode_slice() local 339 .slice_data_size = nalu->size, in gst_va_h264_dec_decode_slice() 343 _get_slice_data_bit_offset (header, nalu->header_bytes), in gst_va_h264_dec_decode_slice() 365 sizeof (slice_param), slice->nalu.data + slice->nalu.offset, in gst_va_h264_dec_decode_slice() 366 slice->nalu.size)) { in gst_va_h264_dec_decode_slice()
|
D | gstvah265dec.c | 484 GstH265NalUnit *nalu = &slice->nalu; in gst_va_h265_dec_decode_slice() local 501 .slice_data_size = nalu->size, in gst_va_h265_dec_decode_slice() 504 .slice_data_byte_offset = _get_slice_data_byte_offset (header, nalu->header_bytes), in gst_va_h265_dec_decode_slice() 559 _replace_previous_slice (self, slice->nalu.data + slice->nalu.offset, in gst_va_h265_dec_decode_slice() 560 slice->nalu.size); in gst_va_h265_dec_decode_slice() 741 .IdrPicFlag = GST_H265_IS_NAL_TYPE_IDR (slice->nalu.type), in gst_va_h265_dec_start_picture() 742 .IntraPicFlag = GST_H265_IS_NAL_TYPE_IRAP (slice->nalu.type), in gst_va_h265_dec_start_picture()
|
/third_party/gstreamer/gstplugins_bad/sys/d3d11/ |
D | gstd3d11h265dec.cpp | 684 pic_params->IrapPicFlag = GST_H265_IS_NAL_TYPE_IRAP (slice->nalu.type); in gst_d3d11_h265_dec_start_picture() 685 pic_params->IdrPicFlag = GST_H265_IS_NAL_TYPE_IDR (slice->nalu.type); in gst_d3d11_h265_dec_start_picture() 686 pic_params->IntraPicFlag = GST_H265_IS_NAL_TYPE_IRAP (slice->nalu.type); in gst_d3d11_h265_dec_start_picture() 833 dxva_slice.SliceBytesInBuffer = slice->nalu.size + start_code_size; in gst_d3d11_h265_dec_decode_slice() 839 inner->bitstream_buffer.resize (pos + start_code_size + slice->nalu.size); in gst_d3d11_h265_dec_decode_slice() 846 slice->nalu.data + slice->nalu.offset, slice->nalu.size); in gst_d3d11_h265_dec_decode_slice()
|
D | gstd3d11h264dec.cpp | 789 dxva_slice.SliceBytesInBuffer = slice->nalu.size + start_code_size; in gst_d3d11_h264_dec_decode_slice() 795 inner->bitstream_buffer.resize (pos + start_code_size + slice->nalu.size); in gst_d3d11_h264_dec_decode_slice() 802 slice->nalu.data + slice->nalu.offset, slice->nalu.size); in gst_d3d11_h264_dec_decode_slice()
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | radeon_vcn_enc_1_2.c | 268 RADEON_ENC_BEGIN(enc->cmd.nalu); in radeon_enc_nalu_sps() 350 RADEON_ENC_BEGIN(enc->cmd.nalu); in radeon_enc_nalu_sps_hevc() 463 RADEON_ENC_BEGIN(enc->cmd.nalu); in radeon_enc_nalu_prefix() 507 RADEON_ENC_BEGIN(enc->cmd.nalu); in radeon_enc_nalu_sei() 610 RADEON_ENC_BEGIN(enc->cmd.nalu); in radeon_enc_nalu_pps() 645 RADEON_ENC_BEGIN(enc->cmd.nalu); in radeon_enc_nalu_pps_hevc() 703 RADEON_ENC_BEGIN(enc->cmd.nalu); in radeon_enc_nalu_vps() 757 RADEON_ENC_BEGIN(enc->cmd.nalu); in radeon_enc_nalu_aud_hevc() 1437 enc->cmd.nalu = RENCODE_IB_PARAM_DIRECT_OUTPUT_NALU; in radeon_enc_1_2_init()
|
D | radeon_vcn_enc_2_0.c | 232 RADEON_ENC_BEGIN(enc->cmd.nalu); in radeon_enc_nalu_sps_hevc() 335 RADEON_ENC_BEGIN(enc->cmd.nalu); in radeon_enc_nalu_pps_hevc() 475 enc->cmd.nalu = RENCODE_IB_PARAM_DIRECT_OUTPUT_NALU; in radeon_enc_2_0_init()
|
/third_party/gstreamer/gstplugins_bad/sys/v4l2codecs/ |
D | gstv4l2codech264dec.c | 709 return 8 * slice->nalu.header_bytes + slice->header.header_size in get_slice_header_bit_size() 718 gsize slice_size = slice->nalu.size; in gst_v4l2_codec_h264_dec_fill_slice_params() 1271 nal_size = sc_off + slice->nalu.size; in gst_v4l2_codec_h264_dec_decode_slice() 1285 memcpy (bitstream_data + sc_off, slice->nalu.data + slice->nalu.offset, in gst_v4l2_codec_h264_dec_decode_slice() 1286 slice->nalu.size); in gst_v4l2_codec_h264_dec_decode_slice()
|