Lines Matching refs:nalu
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()
172 assert_equals_int (nalu.type, GST_H265_NAL_SLICE_IDR_W_RADL); in GST_START_TEST()
173 assert_equals_int (nalu.size, 43); in GST_START_TEST()
175 n = nalu.offset + nalu.size; in GST_START_TEST()
179 res = gst_h265_parser_identify_nalu (parser, buf, 0, buf_size, &nalu); in GST_START_TEST()
182 assert_equals_int (nalu.type, GST_H265_NAL_EOB); in GST_START_TEST()
183 assert_equals_int (nalu.size, 2); in GST_START_TEST()
192 GstH265NalUnit nalu; in GST_START_TEST() local
201 &nalu), GST_H265_PARSER_NO_NAL_END); in GST_START_TEST()
202 assert_equals_int (nalu.type, GST_H265_NAL_SPS); in GST_START_TEST()
203 assert_equals_int (nalu.size, buf_size - 4); /* 4 for start_code */ in GST_START_TEST()
205 assert_equals_int (gst_h265_parser_parse_sps (parser, &nalu, &sps, TRUE), in GST_START_TEST()
212 &nalu), GST_H265_PARSER_NO_NAL_END); in GST_START_TEST()
213 assert_equals_int (nalu.type, GST_H265_NAL_PREFIX_SEI); in GST_START_TEST()
214 assert_equals_int (nalu.size, buf_size - 4); /* 4 for start_code size */ in GST_START_TEST()
216 assert_equals_int (gst_h265_parser_parse_sei (parser, &nalu, &messages), in GST_START_TEST()
243 GstH265NalUnit nalu; in GST_START_TEST() local
247 res = gst_h265_parser_identify_nalu (parser, buf, 0, 6, &nalu); in GST_START_TEST()
250 assert_equals_int (nalu.type, GST_H265_NAL_SLICE_IDR_W_RADL); in GST_START_TEST()
251 assert_equals_int (nalu.size, 2); in GST_START_TEST()
261 GstH265NalUnit nalu; in GST_START_TEST() local
271 res = gst_h265_parser_identify_nalu_hevc (parser, buf, 2, buf_size, 2, &nalu); in GST_START_TEST()
274 assert_equals_int (nalu.type, GST_H265_NAL_SLICE_IDR_W_RADL); in GST_START_TEST()
275 assert_equals_int (nalu.offset, 4); in GST_START_TEST()
276 assert_equals_int (nalu.size, nal_size); in GST_START_TEST()
279 res = gst_h265_parser_identify_nalu_hevc (parser, buf, 0, buf_size, 4, &nalu); in GST_START_TEST()
282 assert_equals_int (nalu.type, GST_H265_NAL_SLICE_IDR_W_RADL); in GST_START_TEST()
283 assert_equals_int (nalu.offset, 4); in GST_START_TEST()
284 assert_equals_int (nalu.size, nal_size); in GST_START_TEST()
287 res = gst_h265_parser_identify_nalu_hevc (parser, buf, 0, buf_size, 4, &nalu); in GST_START_TEST()
292 res = gst_h265_parser_identify_nalu_hevc (parser, buf, 0, buf_size, 4, &nalu); in GST_START_TEST()
297 res = gst_h265_parser_identify_nalu_hevc (parser, buf, 0, buf_size, 4, &nalu); in GST_START_TEST()
302 res = gst_h265_parser_identify_nalu_hevc (parser, buf, 0, buf_size, 4, &nalu); in GST_START_TEST()
307 res = gst_h265_parser_identify_nalu_hevc (parser, buf, 0, buf_size, 4, &nalu); in GST_START_TEST()
673 GstH265NalUnit nalu; in GST_START_TEST() local
682 sizeof (h265_vps_with_nonzero_max_layer_id), &nalu); in GST_START_TEST()
685 assert_equals_int (nalu.type, GST_H265_NAL_VPS); in GST_START_TEST()
687 res = gst_h265_parser_parse_vps (parser, &nalu, &vps); in GST_START_TEST()
718 GstH265NalUnit nalu; in GST_START_TEST() local
730 sizeof (h265_pps_with_range_extension), &nalu); in GST_START_TEST()
733 assert_equals_int (nalu.type, GST_H265_NAL_PPS); in GST_START_TEST()
735 res = gst_h265_parser_parse_pps (parser, &nalu, &pps); in GST_START_TEST()
763 GstH265NalUnit nalu; in GST_START_TEST() local
777 h265_with_scc_extension, offset, size, &nalu); in GST_START_TEST()
779 assert_equals_int (nalu.type, GST_H265_NAL_VPS); in GST_START_TEST()
780 offset = nalu.offset; in GST_START_TEST()
782 res = gst_h265_parser_parse_vps (parser, &nalu, &vps); in GST_START_TEST()
786 h265_with_scc_extension, offset, size, &nalu); in GST_START_TEST()
788 assert_equals_int (nalu.type, GST_H265_NAL_SPS); in GST_START_TEST()
789 offset = nalu.offset; in GST_START_TEST()
791 res = gst_h265_parser_parse_sps (parser, &nalu, &sps, FALSE); in GST_START_TEST()
812 h265_with_scc_extension, offset, size, &nalu); in GST_START_TEST()
814 assert_equals_int (nalu.type, GST_H265_NAL_PPS); in GST_START_TEST()
816 res = gst_h265_parser_parse_pps (parser, &nalu, &pps); in GST_START_TEST()
905 GstH265NalUnit nalu; in GST_START_TEST() local
916 G_N_ELEMENTS (h265_sei_user_data_registered), &nalu); in GST_START_TEST()
918 assert_equals_int (nalu.type, GST_H265_NAL_PREFIX_SEI); in GST_START_TEST()
920 res = gst_h265_parser_parse_sei (parser, &nalu, &messages); in GST_START_TEST()
1062 GstH265NalUnit nalu; in GST_START_TEST() local
1098 test_list[i].raw_data, 0, test_list[i].len, &nalu); in GST_START_TEST()
1100 assert_equals_int (nalu.type, GST_H265_NAL_PREFIX_SEI); in GST_START_TEST()
1102 parse_ret = gst_h265_parser_parse_sei (parser, &nalu, &msg_array); in GST_START_TEST()
1107 mem = gst_h265_create_sei_memory (nalu.layer_id, in GST_START_TEST()
1108 nalu.temporal_id_plus1, 4, msg_array); in GST_START_TEST()
1119 mem = gst_h265_create_sei_memory_hevc (nalu.layer_id, in GST_START_TEST()
1120 nalu.temporal_id_plus1, 4, msg_array); in GST_START_TEST()
1143 mem = gst_h265_create_sei_memory (nalu.layer_id, in GST_START_TEST()
1144 nalu.temporal_id_plus1, 4, msg_array); in GST_START_TEST()
1151 info.data, 0, info.size, &nalu); in GST_START_TEST()
1153 assert_equals_int (nalu.type, GST_H265_NAL_PREFIX_SEI); in GST_START_TEST()
1154 parse_ret = gst_h265_parser_parse_sei (parser, &nalu, &msg_array); in GST_START_TEST()