Lines Matching refs:Bytes
8 let empty = Bytes::from_static(&[]); in test_h264_payload()
9 let small_payload = Bytes::from_static(&[0x90, 0x90, 0x90]); in test_h264_payload()
10 let multiple_payload = Bytes::from_static(&[0x00, 0x00, 0x01, 0x90, 0x00, 0x00, 0x01, 0x90]); in test_h264_payload()
11 let large_payload = Bytes::from_static(&[ in test_h264_payload()
16 Bytes::from_static(&[0x1c, 0x80, 0x01, 0x02, 0x03]), in test_h264_payload()
17 Bytes::from_static(&[0x1c, 0x00, 0x04, 0x05, 0x06]), in test_h264_payload()
18 Bytes::from_static(&[0x1c, 0x00, 0x07, 0x08, 0x09]), in test_h264_payload()
19 Bytes::from_static(&[0x1c, 0x00, 0x10, 0x11, 0x12]), in test_h264_payload()
20 Bytes::from_static(&[0x1c, 0x40, 0x13, 0x14, 0x15]), in test_h264_payload()
66 let small_payload2 = Bytes::from_static(&[0x09, 0x00, 0x00]); in test_h264_payload()
75 let single_payload = Bytes::from_static(&[0x90, 0x90, 0x90]); in test_h264_packet_unmarshal()
77 Bytes::from_static(&[0x00, 0x00, 0x00, 0x01, 0x90, 0x90, 0x90]); in test_h264_packet_unmarshal()
79 Bytes::from_static(&[0x00, 0x00, 0x00, 0x03, 0x90, 0x90, 0x90]); in test_h264_packet_unmarshal()
81 let large_payload = Bytes::from_static(&[ in test_h264_packet_unmarshal()
85 let large_payload_avc = Bytes::from_static(&[ in test_h264_packet_unmarshal()
90 Bytes::from_static(&[0x1c, 0x80, 0x01, 0x02, 0x03]), in test_h264_packet_unmarshal()
91 Bytes::from_static(&[0x1c, 0x00, 0x04, 0x05, 0x06]), in test_h264_packet_unmarshal()
92 Bytes::from_static(&[0x1c, 0x00, 0x07, 0x08, 0x09]), in test_h264_packet_unmarshal()
93 Bytes::from_static(&[0x1c, 0x00, 0x10, 0x11, 0x12]), in test_h264_packet_unmarshal()
94 Bytes::from_static(&[0x1c, 0x40, 0x13, 0x14, 0x15]), in test_h264_packet_unmarshal()
97 let single_payload_multi_nalu = Bytes::from_static(&[ in test_h264_packet_unmarshal()
101 let single_payload_multi_nalu_unmarshaled = Bytes::from_static(&[ in test_h264_packet_unmarshal()
105 let single_payload_multi_nalu_unmarshaled_avc = Bytes::from_static(&[ in test_h264_packet_unmarshal()
110 let incomplete_single_payload_multi_nalu = Bytes::from_static(&[ in test_h264_packet_unmarshal()
121 let data = Bytes::from_static(&[]); in test_h264_packet_unmarshal()
125 let data = Bytes::from_static(&[0x00, 0x00]); in test_h264_packet_unmarshal()
132 let data = Bytes::from_static(&[0xFF, 0x00, 0x00]); in test_h264_packet_unmarshal()
197 let empty_nalu = Bytes::from_static(&[]); in test_h264_partition_head_checker_is_partition_head()
203 let single_nalu = Bytes::from_static(&[1, 0]); in test_h264_partition_head_checker_is_partition_head()
209 let stapa_nalu = Bytes::from_static(&[STAPA_NALU_TYPE, 0]); in test_h264_partition_head_checker_is_partition_head()
215 let fua_start_nalu = Bytes::from_static(&[FUA_NALU_TYPE, FU_START_BITMASK]); in test_h264_partition_head_checker_is_partition_head()
221 let fua_end_nalu = Bytes::from_static(&[FUA_NALU_TYPE, FU_END_BITMASK]); in test_h264_partition_head_checker_is_partition_head()
227 let fub_start_nalu = Bytes::from_static(&[FUB_NALU_TYPE, FU_START_BITMASK]); in test_h264_partition_head_checker_is_partition_head()
233 let fub_end_nalu = Bytes::from_static(&[FUB_NALU_TYPE, FU_END_BITMASK]); in test_h264_partition_head_checker_is_partition_head()
246 Bytes::from_static(&[ in test_h264_payloader_payload_sps_and_pps_handling()
249 Bytes::from_static(&[0x05, 0x04, 0x05]), in test_h264_payloader_payload_sps_and_pps_handling()
253 let res = pck.payload(1500, &Bytes::from_static(&[0x07, 0x00, 0x01]))?; in test_h264_payloader_payload_sps_and_pps_handling()
256 let res = pck.payload(1500, &Bytes::from_static(&[0x08, 0x02, 0x03]))?; in test_h264_payloader_payload_sps_and_pps_handling()
259 let actual = pck.payload(1500, &Bytes::from_static(&[0x05, 0x04, 0x05]))?; in test_h264_payloader_payload_sps_and_pps_handling()